@extends('layouts.location') @section('title', 'Inventory Dashboard') @section('page-title', 'Inventory Dashboard') @section('content')
ASN Uploads (Inventory)
Month: {{ $selectedMonth ?? ($asnSummary['date'] ?? date('Y-m')) }}
@php $labels = array_keys($asnSummary['by_status'] ?? []); $pcs = []; $inward = []; $transfer = []; $access = []; foreach ($labels as $st) { $row = $asnSummary['by_status'][$st] ?? ['pcs'=>0,'inward_qty'=>0,'transfer_qty'=>0,'access_qty'=>0]; $pcs[] = (int)($row['pcs'] ?? 0); $inward[] = (int)($row['inward_qty'] ?? 0); $transfer[] = (int)($row['transfer_qty'] ?? 0); $access[] = (int)($row['access_qty'] ?? 0); } @endphp
Totals
  • PCS {{ $asnSummary['totals']['pcs'] ?? 0 }}
  • Inward Qty {{ $asnSummary['totals']['inward_qty'] ?? 0 }}
  • Transfer Qty {{ $asnSummary['totals']['transfer_qty'] ?? 0 }}
  • Access Qty {{ $asnSummary['totals']['access_qty'] ?? 0 }}
Statuses come from the `status` column of `asn_uploads` (e.g., inward, pending, approved). Empty values are grouped under "unknown".
Monthwise SO Uploads (Inventory)
Month: {{ $selectedMonth ?? date('Y-m') }}
Shows daily totals in the selected month from `sales_order_items` for this location: distinct SO count, item rows count, and total quantity.
@endsection @push('scripts') @endpush