@extends('frontend.master') @section('content')

Search Transporter Availability

Home → Transporter Availability

@if(request()->query->count()>0) @endif

{{$bookings->total()}} Transporters Found

@forelse($bookings as $booking)

{{ucfirst($booking->truck_type->name??'')}}

From: {{ rtrim(implode(' ', array_slice(explode(' ', $booking->from), 0, floor(str_word_count($booking->from) / 2))), ',') }}
To: {{ rtrim(implode(' ', array_slice(explode(' ', $booking->to), 0, floor(str_word_count($booking->to) / 2))), ',') }}
{{\Carbon\Carbon::parse($booking->date)->format('d-M-Y')}}
@php $pp_amnt = $driver?$booking->amount*$driver->profit_percentage/100:0; $amnt = $booking->amount - $pp_amnt; @endphp
Amount:

{{number_format($booking->price,2)}}  

@if(!$driver) BOOK NOW @endif
@empty
No Booking Found
@endforelse
{{$bookings->links()}}
@endsection