@extends('layouts.app') @section('title', 'POSM Depletion Jobs') @section('content')
| 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 }} | |
| No data to display | |||||||