@section('title', 'BizMan | Appointment Detail')

{{ __('Appointment Detail') }}

{{ date('l, d M Y') }}

{{ $appointment->title }}

{{ $appointment->scheduled_at->format('l, d F Y') }}
{{ $appointment->scheduled_at->format('H:i') }} ({{ $appointment->duration }} min)
@if($appointment->status == 'scheduled') Scheduled @elseif($appointment->status == 'completed') Completed @else Cancelled @endif

Customer Information

Name

{{ $appointment->customer->name }}

Company

{{ $appointment->customer->company_name ?? '-' }}

Email

{{ $appointment->customer->email }}

Phone

{{ $appointment->customer->phone ?? '-' }}

Meeting Details

Date

{{ $appointment->scheduled_at->format('d/m/Y') }}

Time

{{ $appointment->scheduled_at->format('H:i') }}

Duration

{{ $appointment->duration }} minutes

@if($appointment->isToday())

This appointment is scheduled for today!

@elseif($appointment->isUpcoming())

Upcoming appointment in {{ $appointment->scheduled_at->diffForHumans() }}

@elseif($appointment->isPast() && $appointment->status == 'scheduled')

This appointment has passed. Consider marking it as completed or cancelled.

@endif
@if($appointment->members->count() > 0)

Team Members ({{ $appointment->members->count() }})

@foreach($appointment->members as $member)
{{ strtoupper(substr($member->name, 0, 1)) }}

{{ $member->name }}

@if($member->id === auth()->id())

You

@else

{{ $member->email }}

@endif
@endforeach
@endif @if($appointment->notes)

Meeting Notes

{{ $appointment->notes }}

@endif
Close @if($appointment->status === 'scheduled') Edit @endif @if($appointment->status !== 'scheduled') @endif

Timeline

Appointment Created

{{ $appointment->created_at->format('d M Y, H:i') }}

@if($appointment->updated_at != $appointment->created_at)

Last Updated

{{ $appointment->updated_at->format('d M Y, H:i') }}

@endif @if($appointment->status === 'completed')

Completed

{{ $appointment->updated_at->format('d M Y, H:i') }}

@elseif($appointment->status === 'cancelled')

Cancelled

{{ $appointment->updated_at->format('d M Y, H:i') }}

@endif
@push('scripts') @endpush