@extends('layouts.app') @section('title', 'Booking Details') @section('page-wrapper')
{{ $booking->Couriers->name }}

{{ $booking->CourierSetups->business_name }} ({{ $booking->CourierSetups->account_type }})

Origin Pincode: {{ $booking['warehouse']->pin }}
Delivery Pincode: {{ $booking->deliveryareapincode }}
Sender Details

{{ $booking->sender_name }}
{{ $booking->sender_address }}, {{ $booking->senderCity->CityName ?? '' }}, {{ $booking->senderState->StateName ?? '' }}, {{ $booking->sender_pincode ?? '' }}
{{ $booking->sender_mobile }}


Receiver Details

{{ $booking->receiver_name ?? 'N/A' }}
{{ $booking->receiver_address ?? '' }}, {{ $booking->receiverCity->CityName ?? '' }}, {{ $booking->receiverState->StateName ?? '' }}, {{ $booking->receiver_pincode ?? '' }}
{{ $booking->receiver_mobile }}

Package Details
@if (!empty($booking->dimension) && count($booking->dimension))
@if ($booking->booking_type === 'B2B') @foreach ($booking->dimension as $index => $dimension) @endforeach
# No of Boxes Eway Bill Invoice No Invoice Amount Dimensions (L×W×H in cm)
{{ $index + 1 }} {{ $dimension['box_count'] ?? '-' }} {{ $dimension['eway_bill'] ?? '-' }} {{ $dimension['inv_num'] ?? '-' }} {{ $dimension['inv_amt'] ?? '-' }} {{ $dimension['length_cm'] ?? 'N/A' }} × {{ $dimension['width_cm'] ?? 'N/A' }} × {{ $dimension['height_cm'] ?? 'N/A' }}
@else @foreach ($booking->dimension as $index => $dimension) @endforeach
# Dimensions (L×W×H in cm)
{{ $index + 1 }} {{ $dimension['length_cm'] ?? 'N/A' }} × {{ $dimension['width_cm'] ?? 'N/A' }} × {{ $dimension['height_cm'] ?? 'N/A' }}
@endif
@else

No dimensions available.

@endif
LR Details

LR Number: {{ $booking->airway_number }}

@if ($booking->shipment_weight)

Shipment Weight: {{ $booking->shipment_weight ?? 'N/A' }}

@endif @if ($booking->shipment_total_box_count)

Shipment Box Count: {{ $booking->shipment_total_box_count ?? 'N/A' }}

@endif @if ($booking->shipment_description)

Shipment Description: {{ $booking->shipment_description ?? 'N/A' }}

@endif @if ($booking->freight_mode)

Freight Mode: {{ $booking->freight_mode ?? 'N/A' }}

@endif @if ($booking->rov_insurance)

Insurance: {{ $booking->rov_insurance ? 'Delivery' : 'Owner' }}

@endif @if ($booking->shipment_type)

Shipment Type: {{ $booking->shipment_type ?? 'N/A' }}

@endif @if ($booking->date)

Date: {{ \Carbon\Carbon::parse($booking->date)->format('d M Y') ?? 'N/A' }}

@endif
Total Cost: ₹{{ $booking->booking_amount ? $booking->booking_amount : 0 }}
Warehouse Details

{{ $booking['warehouse']->name ?? 'N/A' }}
{{ $booking['warehouse']->address ?? '' }}, {{ $booking['warehouse']->city->CityName ?? '' }}, {{ $booking['warehouse']->state->StateName ?? '' }}, {{ $booking['warehouse']->pin ?? '' }}
{{ $booking['warehouse']->phone }}

@if ($booking->booking_type === 'B2B')
Documents Details
@foreach ($booking->bookingDocuments as $doc)
Document View Document
@endforeach
@endif
@endsection