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

Tomorrow Orders

@if ($isSunday)

Tomorrow is Sunday

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

No deliveries are scheduled for Sunday. The delivery team will have a 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 Alternate Contact No Order Instruction Payment Status Address Executive Package Package Expiry Date Status
{{ $customer->Fname }} {{ $customer->Lname }} {{ $customer->Phone }} {{ $customer->Phone2 }} {{ $customer->Details }} @if ((int) $customer->PaidStatus === 1) Paid @else Unpaid @endif {{ $customer->Address }} {!! $row->executive_name ? e($row->executive_name) : "Not Assigned" !!} {{ $row->package ? $row->package->Name.' ('.$row->package->Amount.')' : '' }} {!! $pkgStatus !!} {{ $date->format('d/m/Y') }} Pending
@endif @endsection @push('scripts') @endpush