@extends('layouts.app') @section('title', 'POSM Depletion Jobs') @section('content')
@yield('title')

Clear
@forelse($depletions as $depletion) @empty @endforelse
ID Job No Date Created By Status QR Status Shipment Status Actions
{{ $depletion->id }} {{ $depletion->job_no }} {{ $depletion->created_at->format('Y-m-d') }} {{ $depletion->user->name ?? 'System' }} @php $statusClass = match(strtolower($depletion->status)) { 'pending' => 'bg-soft-warning', 'approved' => 'bg-soft-success', 'completed' => 'bg-soft-primary', default => 'bg-soft-secondary' }; @endphp {{ ucfirst($depletion->status) }} {{ $depletion->qr_status }} @php $shipmentClass = match(strtolower($depletion->shipment_status)) { 'received', 'delivered' => 'success', 'partially delivered' => 'info', 'approved_for_dispatch', 'ready_to_dispatch', 'dispatched' => 'primary', 'pending' => 'warning', default => 'secondary' }; $shipmentText = strtolower($depletion->shipment_status) === 'received' ? 'Received to Distribution Point' : str_replace('_', ' ', ucfirst($depletion->shipment_status)); @endphp {{ $shipmentText }}
{{-- View Details --}} {{-- Assign Data --}} @if ($depletion->qr_status == 'Printed') @endif @if ($depletion->qr_status == 'Pending') @endif
No data to display
Showing {{ $depletions->firstItem() ?? 0 }} to {{ $depletions->lastItem() ?? 0 }} of {{ $depletions->total() }} entries
{{ $depletions->appends(request()->query())->links() }}
@endsection @push('js') @endpush