Daily IN / OUT History
Filter by Date + Warehouse • Print ready • International UI
@include('general.valert')
{{-- Filters --}}
{{-- Summary --}}
{{-- Tabs --}}
Total IN Qty
{{ number_format($totalInQty, 2) }}
Rows: {{ $ins->count() }}
Total OUT Qty
{{ number_format($totalOutQty, 2) }}
Rows: {{ $outs->count() }}
{{-- IN TABLE --}}
{{-- OUT TABLE --}}
{{-- quick debug (remove later) --}}
{{-- | # | Category | Sub | Unit | Weight | Qty | Warehouse | Date |
|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} | {{ $row->category->title_ps ?? $row->category->title_en ?? '-' }} | {{ $row->sub_category->title_ps ?? $row->sub_category->title_en ?? '-' }} | {{ $row->unit->title_ps ?? $row->unit->title_en ?? '-' }} | {{ $row->weight->title_ps ?? $row->weight->title_en ?? '-' }} | {{ number_format((float)$row->qty, 2) }} | {{ $row->location->name_ps ?? $row->location->name_en ?? ($row->location_id ? 'Loc#'.$row->location_id : '-') }} | {{ $row->date ?? '-' }} |
| No IN records for this date | |||||||
| # | Bill/Invoice | Category | Sub | Unit | Weight | Qty | Warehouse | Date |
|---|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} | {{-- bill_id safe --}}{{ $row->bill_id ?? $row->invoice_number ?? ('#'.$row->id) }} | {{-- these may not exist in your model, so we make it SAFE --}}{{ $row->category->title_ps ?? $row->category->title_en ?? ($row->cat_id ?? '-') }} | {{ $row->sub_category->title_ps ?? $row->sub_category->title_en ?? ($row->sub_cat_id ?? '-') }} | {{ $row->unit->title_ps ?? $row->unit->title_en ?? ($row->unit_id ?? '-') }} | {{ $row->weight->title_ps ?? $row->weight->title_en ?? ($row->weight_id ?? '-') }} | {{-- qty sometimes named quantity --}}{{ number_format((float)($row->qty ?? $row->quantity ?? 0), 2) }} | {{ $row->location->name_ps ?? $row->location->name_en ?? ($row->location_id ? 'Loc#'.$row->location_id : '-') }} | {{-- date fallback --}}{{ $row->date ?? optional($row->created_at)->format('Y-m-d') ?? '-' }} |
| No OUT records for this date | ||||||||
DEBUG: outs={{ $outs->count() }} | ins={{ $ins->count() }}
--}}