{{-- ══════════════════════════════════════════════════════════════ Appointments section — include in leads/edit.blade.php Place OUTSIDE your main lead
tag, near the bottom. @include('leads.partials._appointments_section') Requires (already available on edit page): $lead — with appointments.designer eager-loaded $designers — collection of users with designer role ══════════════════════════════════════════════════════════════ --}}
Appointments
@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 Available Note Action
{{ $i + 1 }} {{ $appt->appointment_with ?? '—' }} {{ $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
{{ $appt->designer?->name ?? '—' }} {{ $appt->appointment_fee ? number_format($appt->appointment_fee, 2) : '—' }} {{ $appt->appointment_location ?? '—' }} {{ $appt->both_available }} {{ Str::limit($appt->note, 40) ?? '—' }} @csrf @method('DELETE')
@endif
{{-- ── Add Appointment Modal ──────────────────────────────────── --}}