@if ($item) @if ($movements->isEmpty()) @else
@foreach ($movements as $movement) @endforeach
Date Type Qty Balance after Unit cost Value Batch Reference By
{{ $movement->moved_at?->format('d M Y H:i') ?? '—' }} {{ $movement->quantity > 0 ? '+' : '' }}{{ number_format($movement->quantity) }} {{ number_format($movement->balance_after) }} {{ money($movement->unit_cost, false) }} {{ money($movement->total_value, false) }} {{ $movement->batch?->batch_number ?? '—' }} {{ $movement->reference_number ?? '—' }} {{ $movement->performedBy?->name ?? '—' }}
@if ($movements->hasPages())
{{ $movements->links() }}
@endif @endif
@else
Items tracked
{{ number_format($items->total()) }}
Quantity on hand
{{ number_format($totals->quantity) }}
Stock value
{{ money($totals->value) }}
@if (request()->has('q')) Clear @endif
@if ($items->isEmpty()) @else
@foreach ($items as $row) @endforeach
Item Type Unit Balance Unit cost Value Last movement
{{ $row->name }}
{{ $row->code }}
{{ $row->unit }} {{ number_format($row->balance_after) }} {{ money($row->unit_cost, false) }} {{ money($row->balance_after * (float) $row->unit_cost, false) }}
{{ \Illuminate\Support\Carbon::parse($row->moved_at)->format('d M Y') }}
@if ($items->hasPages())
{{ $items->links() }}
@endif @endif
@endif