@extends('layouts.app') @section('title', 'Depletion Plan Status Report') @section('content')
Depletion Plan Status Report
@forelse($jobs as $job) @empty @endforelse
Job Number Created Date Plan Status Shipment Status QR Status Actions
{{ $job->job_no }}
{{ $job->created_at->format('d M, Y') }}
{{ $job->created_at->format('h:i A') }}
@php $statusClass = match ($job->status) { 'approved' => 'success', 'rejected' => 'danger', 'pending' => 'warning', default => 'secondary', }; @endphp {{ ucfirst($job->status) }} @php $shipmentClass = match (strtolower($job->shipment_status)) { 'received', 'delivered' => 'success', 'partially delivered' => 'info', 'approved_for_dispatch', 'ready_to_dispatch', 'dispatched' => 'primary', 'pending' => 'warning', default => 'secondary', }; $shipmentText = strtolower($job->shipment_status) === 'received' ? 'Received to Distribution Point' : str_replace('_', ' ', ucfirst($job->shipment_status)); @endphp {{ $shipmentText }} @if ($job->qr_status == 'Printed') Printed @else Pending @endif

No depletion records found.

Showing {{ $jobs->firstItem() ?? 0 }} to {{ $jobs->lastItem() ?? 0 }} of {{ $jobs->total() }} records
{{ $jobs->appends(request()->query())->links() }}
@endsection @push('js') @endpush