@if(count($bookingData)>0) @foreach ($bookingData as $booking) @php $bookingDate = date('F d, Y', strtotime($booking->date)); $createdDate = date('d F, Y', strtotime($booking->created_at)); $createdTime = date('h:i A',strtotime($booking->created_at)); $bookingstatus = $booking->booking_status; @endphp @endforeach @php @endphp @else @endif
# Booking Id Learner Pickup Address Total Payable Amount Created Date Booking Status
{{$booking->id}} {{ucwords($booking->learner_name)}}
ID: {{$booking->lid}}
Phone: {{$booking->lphone}}
Email: {{$booking->uemail}}
{{$booking->address_line1}} {{'$'.$booking->total_payable_amount}} {{$createdDate}}
{{$createdTime}}
@if($bookingstatus=='0'){{"New"}} @elseif ($bookingstatus=='1'){{"Completed"}} @elseif ($bookingstatus=='2'){{"Assigned"}} @elseif ($bookingstatus=='3'){{"Pending"}} @elseif ($bookingstatus=='4'){{"Incomplete"}} @elseif ($bookingstatus=='5'){{"Approved"}} @elseif ($bookingstatus=='8'){{"Confirmed"}} @elseif ($bookingstatus=='7'){{"On Going"}} @elseif ($bookingstatus=='6'){{"Cancelled"}} @endif
No booking found!
{{$bookingData->links()}}