@extends('admin.layouts.app') @section('title', 'Today Pending Orders') @push('styles') @endpush @section('content')

Today Pending Orders

@if ($isSunday)

Sunday - Delivery Off

Today is {{ $date->format('l, d F Y') }}

No deliveries are scheduled on Sundays. Enjoy your day off!

Deliveries will resume on {{ $date->copy()->addDay()->format('l, d F Y') }}
@else
@foreach ($orders as $row) @php $customer = $row->customer; $validity = $customer->Validity; if (empty($validity)) { $pkgStatus = "No Package"; } elseif ($validity->toDateString() >= $date->toDateString()) { $pkgStatus = "".$validity->format('d-M-Y').""; } else { $pkgStatus = "".$validity->format('d-M-Y')." (Expired)"; } @endphp @endforeach
Customer Name Contact No Address Executive Package Expiry Date Status
{{ $customer->Fname }} {{ $customer->Lname }} {{ $customer->Phone }} {{ $customer->Address }} {!! $row->executive_name ? e($row->executive_name) : "Not Assigned" !!} {!! $pkgStatus !!} {{ $date->format('d/m/Y') }} Pending
@endif @endsection @push('scripts') @endpush