@extends('layouts.admin') @section('title', $booking->reference) @section('content') @php $digits = preg_replace('/\D/', '', (string) $booking->phone); if (str_starts_with($digits, '0')) { $digits = '254' . substr($digits, 1); } $subject = rawurlencode('Your Coral Horizon request ' . $booking->reference); @endphp

← Enquiries and bookings

{{ $booking->name }} {{ $booking->statusLabel() }}

{{ $booking->reference }} · {{ $booking->typeLabel() }} · received {{ $booking->created_at->format('j M Y, H:i') }}

Reply by email @if(strlen($digits) >= 8)WhatsApp@endif

Request

Interested in
{{ $booking->property->name ?? $booking->safariPackage->name ?? $booking->destination ?? 'Not specified' }}
@if($booking->property)
Property
{{ $booking->property->name }} · {{ $booking->property->area }}
@endif @if($booking->safariPackage)
Safari
{{ $booking->safariPackage->name }}
@endif @if($booking->destination && ($booking->property || $booking->safariPackage))
Destination
{{ $booking->destination }}
@endif
Arrival
{{ $booking->arrival?->format('D j M Y') ?? 'Not given' }}
Departure
{{ $booking->departure?->format('D j M Y') ?? 'Not given' }}@if($booking->nights()) ({{ $booking->nights() }} nights)@endif
Guests
{{ $booking->adults }} adult{{ $booking->adults > 1 ? 's' : '' }}@if($booking->children), {{ $booking->children }} child{{ $booking->children > 1 ? 'ren' : '' }}@endif
@if($booking->message)

Message

{{ $booking->message }}

@endif

Contact

Email
{{ $booking->email }}
Phone
{{ $booking->phone ?: 'Not given' }}

Activity

@csrf
@error('body')

{{ $message }}

@enderror
    @foreach($booking->notes as $note)
  1. {{ $note->body }}

    {{ $note->user->name ?? 'System' }} · {{ $note->created_at->format('j M Y, H:i') }}
  2. @endforeach
@endsection