@extends('layouts.app') @section('title', $inventory->reference) @section('content')
← {{ __('Back') }}

{{ $inventory->reference }}

{{ $inventory->store?->name }} · {{ $inventory->created_at->format('d/m/Y H:i') }}

@if ($inventory->notes)

{{ $inventory->notes }}

@endif
{{ __(ucfirst($inventory->status)) }}
@foreach ($inventory->items as $item) @endforeach
{{ __('Product') }}{{ __('Batch') }} {{ __('Expiration') }}{{ __('Quantity') }}{{ __('Purchase price') }}
{{ $item->product?->name }} {{ $item->batch_number }} {{ $item->expiration_date?->format('d/m/Y') ?? '—' }} {{ $item->quantity }} {{ money($item->purchase_price) }}
@if ($inventory->status === 'draft')
@csrf

{{ __('Validating books every counted line into stock. This cannot be undone.') }}

@else

{{ __('Validated on :date', ['date' => $inventory->validated_at?->format('d/m/Y H:i')]) }}

@endif
@endsection