@extends('frontend.user.layouts.main') @section('title', $page_title??'') @section('content')

Bookings

@php $today_date = today()->format('Y-m-d') @endphp @forelse($bookings as $row)
@if($row->payment_status == 1) @endif @if($row->payment_status == 0) Pay Now @endif @if(!$row->driver_id) @endif
@if($row->complete_at)
@endif
Amount
{{ config('constants.currency_symbol') }} {{number_format($row->amount)}}
Booking Status
{{($row->status==1 || $row->status==0) && $row->payment_status==1?"In Progress":($row->status==2?'Completed':'Pending')}}
Payment Medium
{{ucfirst($row->payment_method)}}
Payment Status
{{$row->payment_status==1?'Paid':'Unpaid'}}
Booking Date
{{ date('D d M Y',strtotime($row->created_at))??''}}
Service Required
{{$row->truck_type->name??''}} Ton
PickUp Location
{{ucfirst($row->pickup)}}
Dropp Off Location
{{ucfirst($row->dropoff)}}
Pick Up Floor
{{$row->pickup_floor??''}}
Drop Off Floor
{{$row->drop_off_floor??''}}
Delivery Date
{{$row->date}} {{$row->time}}
Distance
{{$row->distance}} KM
Lift Available
{{ $row->is_lift_available==1?'Yes':'No' }}
@if($row->driver)
Driver Detail:
Name
{{ucfirst($row->driver->name)}}
Phone
{{ucfirst($row->driver->phone)}}
@endif @if($row->item_images && count($row->item_images))
Images
@foreach($row->item_images as $img) @endforeach
@endif @if($row->audio)
Voice Note
@endif
@forelse($row->items ?? [] as $index => $item) @empty @endforelse
Sr. No. Item Quantity
{{ $index + 1 }} {{ $item['name'] ?? '-' }} {{ $item['qty'] ?? 0 }}
No items found
@if($row->driver)
Driver Detail:
Name
{{ucfirst($row->driver->name)}}
Phone
{{ucfirst($row->driver->phone)}}
@else
Driver Not Assigned Yet
@endif
Booking ID Service Amount Date Action
{{$row->uid}} {{-- {{$row->uid}} --}} {{ $row->truck_type->name }} SAR {{ number_format($row->amount,2) }} {{ date('d-m-Y',strtotime($row->created_at))??'' }} Download Invoice
@include('frontend.partials.queries',['booking'=>$row])
@php $stars = $row->rating? $row->rating->rating:'' @endphp @csrf
★ ★ ★ ★ ★
@if(!$row->rating)
@endif
@empty
No Booking
@endforelse {{$bookings->links()}}
@endsection @push('footer-scripts') @endpush