@extends('home_layout.master_sidebar') @section('breadcrumbs') @include('home_layout.breadcrumb', [ 'title' => 'Contact Details', 'breadcrumbs' => [ ['title' => 'Home', 'link' => route('contacts.index')], ['title' => 'Contacts', 'link' => route('contacts.index')], ['title' => 'Contact Details', 'link' => ''] ] ]) @stop @section('content')

Contact Details

Name: {{ $contact->name }}

Email: {{ $contact->email }}

Phone: {{ $contact->phone ?? 'N/A' }}

Address: {{ $contact->address ?? 'N/A' }}

Notes: {{ $contact->notes ?? 'N/A' }}

Booking History

@if($contact->bookings->count())
@foreach($contact->bookings as $booking) @endforeach
Booking ID Service Date Start Time End Time Staff
{{ $booking->id }} {{ optional($booking->event)->event_name }} {{ $booking->date }} {{ $booking->start_time }} {{ $booking->end_time }} {{ optional($booking->user)->name ?? 'N/A' }}
@else

No bookings found for this contact.

@endif
@stop