{{-- resources/views/admin/warehouse-bookings/show.blade.php --}} @extends('admin.layouts.base') @section('title', 'Booking Details - ' . $booking->booking_code) @section('content')

Booking Details

#{{ $booking->booking_code }} {{ ucfirst($booking->booking_status) }} {{ $booking->start_date->format('M d, Y') }} → {{ $booking->end_date->format('M d, Y') }}
Back to Bookings

Booking Information

{{ $booking->user->fullname }}
{{ $booking->user->email }}
{{ $booking->warehouse->name }}
{{ $booking->warehouse->city }}, {{ $booking->warehouse->zone ?? 'N/A' }}
{{ $booking->start_date->format('M d, Y') }}
{{ $booking->end_date->format('M d, Y') }}
{{ $booking->rental_days }} days
{{ str_replace('_', ' ', $booking->input_type) }}
{{ number_format($booking->calculated_sqft) }} sqft
{{ $booking->calculated_pallets }} Pallets

Space Details ({{ ucfirst($booking->input_type) }})

@if($booking->input_type === 'pallet')
Pallet Count
{{ $booking->pallet_count }}
Length
{{ $booking->pallet_length }}"
Width
{{ $booking->pallet_width }}"
@else
Cartons
{{ $booking->carton_count }}
L
{{ $booking->carton_length }}"
W
{{ $booking->carton_width }}"
H
{{ $booking->carton_height }}"
@endif
@if($booking->laborItems->count() > 0)

Labor Services

@foreach($booking->laborItems as $labor) @endforeach
Labor Type Qty Hours Rate/Hour Total
{{ $labor->laborType->name }} {{ $labor->quantity }} {{ $labor->hours }} ${{ number_format($labor->rate_per_hour, 2) }} ${{ number_format($labor->total_cost, 2) }}
@endif @if($booking->equipmentItems->count() > 0)

Equipment Rental

@foreach($booking->equipmentItems as $equipment) @endforeach
Equipment Qty Charge Type Rate Usage Total
{{ $equipment->equipmentType->name }} {{ $equipment->quantity }} {{ ucfirst($equipment->charge_type) }} ${{ number_format($equipment->rate, 2) }} {{ $equipment->usage_amount }} ${{ number_format($equipment->total_cost, 2) }}
@endif @if($booking->services->count() > 0)

Additional Services

@foreach($booking->services as $service) @endforeach
Service Name Qty Unit Price Total
{{ $service->pivot->service_name ?? $service->name }} {{ $service->pivot->quantity ?? 1 }} ${{ number_format($service->pivot->unit_price ?? 0, 2) }} ${{ number_format($service->pivot->total_cost ?? 0, 2) }}
@endif

Update Booking Status

Email notification will be sent automatically

Warehouse Space Status

{{ number_format($availability['max_capacity']) }} sqft
{{ number_format($availability['used_space']) }} sqft
{{ number_format($availability['available_space']) }} sqft
@php $percent = $availability['max_capacity'] > 0 ? ($availability['used_space'] / $availability['max_capacity']) * 100 : 0; $barClass = $percent > 90 ? 'danger' : ($percent > 70 ? 'warning' : 'success'); @endphp
{{ number_format($percent, 1) }}% Utilized

Pricing Summary

Space Cost ${{ number_format($booking->space_price, 2) }}
Labor Cost ${{ number_format($booking->labor_cost, 2) }}
Equipment Cost ${{ number_format($booking->equipment_cost, 2) }}

Subtotal ${{ number_format($booking->subtotal, 2) }}
Markup ${{ number_format($booking->markup_amount, 2) }}
Tax ${{ number_format($booking->tax_amount, 2) }}

Final Amount ${{ number_format($booking->final_price, 2) }}
@if($booking->notes)

Customer Notes

{{ $booking->notes }}

@endif
@endsection @push('scripts') @endpush