@extends('admin.layouts.app') @section('title', $booking->reference) @section('page-title', __('admin.menu.rental_bookings').' — '.$booking->reference) @section('page-actions') {{ __('admin.actions.back') }} @endsection @section('content')
{{ $booking->equipment?->name }}
@include('admin.partials.detail-row', ['label' => __('admin.fields.customer'), 'value' => $booking->user?->name]) @include('admin.partials.detail-row', ['label' => __('admin.fields.contact_name'), 'value' => $booking->contact_name]) @include('admin.partials.detail-row', ['label' => __('admin.fields.phone'), 'value' => $booking->phone]) @include('admin.partials.detail-row', ['label' => __('admin.fields.category'), 'value' => $booking->equipment?->category?->name]) @include('admin.partials.detail-row', ['label' => __('admin.fields.start_date'), 'value' => $booking->start_date?->toDateString()]) @include('admin.partials.detail-row', ['label' => __('admin.fields.end_date'), 'value' => $booking->end_date?->toDateString()]) @include('admin.partials.detail-row', ['label' => __('admin.fields.rate_type'), 'value' => __('statuses.rate_type.'.$booking->rate_type)]) @include('admin.partials.detail-row', ['label' => __('admin.fields.duration'), 'value' => $booking->duration]) @include('admin.partials.detail-row', ['label' => __('admin.fields.with_driver'), 'value' => $booking->with_driver ? __('admin.yes') : __('admin.no')]) @include('admin.partials.detail-row', ['label' => __('admin.fields.pickup_location'), 'value' => $booking->pickup_location]) @include('admin.partials.detail-row', ['label' => __('admin.fields.dropoff_location'), 'value' => $booking->dropoff_location]) @include('admin.partials.detail-row', ['label' => __('admin.fields.payment_status'), 'value' => __('statuses.payment.'.$booking->payment_status)]) @if ($booking->notes)
{{ __('admin.fields.notes') }}
{{ $booking->notes }}
@endif
{{ __('admin.fields.total') }}
{{ __('admin.fields.subtotal') }} {{ number_format((float) $booking->subtotal, 2) }} {{ $booking->currency }}
{{ __('admin.fields.driver_fee_per_day') }} {{ number_format((float) $booking->driver_cost, 2) }} {{ $booking->currency }}
{{ __('admin.fields.deposit') }} {{ number_format((float) $booking->deposit, 2) }} {{ $booking->currency }}
{{ __('admin.fields.total') }} {{ number_format((float) $booking->total, 2) }} {{ $booking->currency }}
@include('admin.partials.status-panel', [ 'action' => route('admin.rental-bookings.update', $booking), 'record' => $booking, 'statuses' => $statuses, 'showPayment' => true, ])
@endsection