@extends('layouts.public') @section('title', $product->name . ' - Car Rental') @section('head-extra') @endsection @section('content')
Back to car rental listing
@php $mainPhoto = $product->photos->first(); @endphp @if($mainPhoto) {{ $product->name }} @else
No Image
@endif @if($product->photos->count() > 1)
@foreach($product->photos->take(4) as $photo)
{{ $product->name }}
@endforeach
@endif
{{ $category->name }}

{{ $product->name }}

{{ $product->is_available ? 'Available for online booking' : 'Currently unavailable for selected dates' }}
${{ number_format((float) $product->display_price, 2) }}
{{ str_replace('_', ' ', $product->display_rate_type ?? 'per_booking') }}
{!! nl2br(e(trim((string) $product->description))) !!}
@if($product->tags->isNotEmpty())
@foreach($product->tags as $tag) {{ $tag->name }} @endforeach
@endif

Book This Vehicle

Estimated total--
Choose your start and end time to calculate pricing.
@if($relatedProducts->isNotEmpty())

More Car Rental Listings

@foreach($relatedProducts as $relatedProduct) @php $relatedPhoto = $relatedProduct->photos->first(); @endphp
@endforeach
@endif
@endsection @section('page-script') @endsection