{{-- Appointments section — include in leads/edit.blade.php @include('leads.partials._appointments_section') Requires: $lead — with appointments.designer eager-loaded $designers — collection of users with designer role --}}

Appointments {{ $lead->appointments->count() }}

@if ($lead->appointments->isEmpty())

No appointments yet. Click Add Appointment to schedule one.

@else
@foreach ($lead->appointments as $i => $appt) @endforeach
# Appt. With Date & Time Designer Fee Location Both Avail. Note Action
{{ $i + 1 }} {{ $appt->appointment_with ?? '—' }} @if($appt->appointment_date)
{{ $appt->appointment_date->format('d M Y') }}
@if ($appt->appointment_time)
{{ \Carbon\Carbon::createFromFormat('H:i:s', $appt->appointment_time)->format('h:i A') }}
@endif @else @endif
{{ $appt->designer?->name ?? '—' }} @if($appt->appointment_fee) ${{ number_format($appt->appointment_fee, 2) }} @else @endif {{ $appt->appointment_location ?? '—' }} @if($appt->both_available === 'Yes') Yes @else No @endif {{ Str::limit($appt->note, 50) ?? '—' }}
@csrf @method('DELETE')
@endif
{{-- ── Add Appointment Modal ──────────────────────────────────────────────── --}}