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

Booking Management

Bookings / #{{ $booking->booking_code }}
Status: {{ ucfirst($booking->booking_status) }}
Booking Reference: #{{ $booking->booking_code }}
Duration
{{ $booking->rental_days }} Days
Period
{{ $booking->start_date->format('M d, Y') }} → {{ $booking->end_date->format('M d, Y') }}
{{-- --}}

Customer Information Primary Contact

{{ $booking->user->fullname }}
{{ $booking->user->fullname }}
{{ $booking->user->email }}
@if($booking->user->phone)
{{ $booking->user->phone }}
@endif
Booking Created
{{ $booking->created_at->format('M d, Y H:i') }}

Warehouse Details Storage Location

{{ $booking->user->fullname }}
{{ $booking->warehouse->name }}
{{ $booking->warehouse->city }}, {{ $booking->warehouse->zone ?? 'N/A' }}
Space Type
{{ str_replace('_', ' ', $booking->input_type) }}
Total Space
{{ number_format($booking->calculated_sqft) }} sqft

Storage Space Details Product Dimensions & Requirements

Space Requirements

Calculated Space {{ number_format($booking->calculated_sqft) }} sqft
Pallet Equivalent {{ $booking->calculated_pallets }} Pallets
Daily Rate ${{ number_format($booking->space_price / $booking->rental_days, 2) }}/day

Product Dimensions

@if($booking->input_type === 'pallet')
Pallets
{{ $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 || $booking->equipmentItems->count() > 0 || $booking->services->count() > 0)

Additional Services Labor, Equipment & Other Services

@if($booking->laborItems->count() > 0)

Labor Services

@foreach($booking->laborItems as $labor) @endforeach
Labor Type Quantity Hours Rate/Hour Total Cost
{{ $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 Quantity Charge Type Usage Rate Total Cost
{{ $equipment->equipmentType->name }}
{{ $equipment->quantity }} {{ ucfirst($equipment->charge_type) }} {{ $equipment->usage_amount }} ${{ number_format($equipment->rate, 2) }} ${{ number_format($equipment->total_cost, 2) }}
@endif @if($booking->services->count() > 0)

Additional Services

@foreach($booking->services as $service) @endforeach
Service Name Quantity Unit Price Total Cost
{{ $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
@endif

Status Management Update Booking Status

@csrf
{{ ucfirst($booking->booking_status) }}
Last updated: {{ $booking->updated_at->format('M d, Y H:i') }}
This note will be added to booking history and included in email notification.

Warehouse Capacity Current Space Utilization

@php $percent = $availability['max_capacity'] > 0 ? ($availability['used_space'] / $availability['max_capacity']) * 100 : 0; $barClass = $percent > 90 ? 'danger' : ($percent > 70 ? 'warning' : 'success'); @endphp
Space Utilization {{ number_format($percent, 1) }}%
Total Capacity
{{ number_format($availability['max_capacity']) }}
sqft
Available Space
{{ number_format($availability['available_space']) }}
sqft
Space Allocation
Used Space {{ number_format($availability['used_space']) }} sqft
This Booking {{ number_format($booking->calculated_sqft) }} sqft

Financial Summary Booking Costs & Charges

Cost Breakdown
Space Rental ${{ number_format($booking->space_price, 2) }}
@if($booking->labor_cost > 0)
Labor Services ${{ number_format($booking->labor_cost, 2) }}
@endif @if($booking->equipment_cost > 0)
Equipment Rental ${{ number_format($booking->equipment_cost, 2) }}
@endif @if($booking->additional_services_cost > 0)
Additional Services ${{ number_format($booking->additional_services_cost, 2) }}
@endif
Subtotal ${{ number_format($booking->subtotal, 2) }}
Markup ${{ number_format($booking->tax_amount, 2) }}
{{--
Taxes ${{ number_format($booking->tax_amount, 2) }}
--}}
Total Amount ${{ number_format($booking->final_price, 2) }}
@if($booking->notes)

Customer Notes Additional Information

{{ $booking->notes }}
@endif
@endsection @push('styles') @endpush @push('scripts') @endpush