@extends('layouts.location') @section('title', 'Dashboard') @section('page-title', 'User Dashboard') @push('styles') @endpush @section('content')
Account

{{ Auth::user()->name }}

ASN Uploads
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 shown include the value in the `status` column of `asn_uploads` (e.g., inward, pending, approved). If empty, it's grouped under "unknown".
Monthwise SO Uploads
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.
{{--
{{ ... }}
Short SO (Pickings on Hold)
@if(isset($shortSOs) && $shortSOs->count())
@foreach($shortSOs as $so) @endforeach
SO No Box Items Dimension Weight Status Action
{{ $so->so_no }} {{ $so->box }} @if(is_array($so->items)) {{ implode(', ', $so->items) }} @else {{ $so->items }} @endif {{ $so->dimension }} {{ $so->weight }} {{ $so->status }}
@csrf
@else
No pickings on hold found.
@endif
--}} @endsection @push('scripts') @endpush