@php $tenant = \App\Support\Facades\Tenancy::get(); $brandStyle = $tenant->brand_primary_color ? ":root { --color-brand-600: {$tenant->brand_primary_color}; } .dark { --color-brand-600: {$tenant->brand_primary_color}; }" : null; $statusColors = ['new' => 'brand', 'contacted' => 'slate', 'interested' => 'amber', 'demo_scheduled' => 'amber', 'converted' => 'green', 'lost' => 'red']; $channelIcons = ['call' => 'phone', 'sms' => 'mail', 'whatsapp' => 'phone', 'visit' => 'user', 'note' => 'pencil']; @endphp
Call @if($lead->isOpen() && $tenant->hasModule('batches')) Admit @endif @include('tenant.coaching._errors')
{{ $lead->statusLabel() }} @if($lead->isOpen() && $lead->next_follow_up_at) Follow up {{ $lead->next_follow_up_at->format('d M, g:i A') }} @endif
@if($lead->status === 'converted' && $lead->convertedStudent)

Admitted as {{ $lead->convertedStudent->student_code }} on {{ $lead->converted_at?->format('d M Y') }}.

@elseif($lead->status === 'lost')

Lost — {{ $lead->lost_reason ?? 'no reason recorded' }}.

@endif
Mobile
{{ $lead->phone }}
@if($lead->guardian_phone)
Guardian
{{ $lead->guardian_phone }}
@endif @if($lead->email)
Email
{{ $lead->email }}
@endif
Studies at
{{ $lead->current_institution ?? '—' }}{{ $lead->current_level ? ' · '.$lead->current_level : '' }}
Interested in
{{ $lead->course?->name ?? '—' }}
Owner
{{ $lead->assignee?->name ?? '—' }}
@if($lead->notes)

{{ $lead->notes }}

@endif

Demo class

@if($lead->demoBatch)

{{ $lead->demoBatch->label() }}

{{ $lead->demo_date?->format('l, d M Y') }} · {{ $lead->demoBatch->timeLabel() }}

@if($lead->demo_attended === null && $lead->isOpen())
@csrf
@csrf
@elseif($lead->demo_attended !== null) {{ $lead->demo_attended ? 'Attended' : 'No-show' }} @endif @else

No demo booked.

@endif @if($lead->isOpen())
@csrf
@endif
@if($lead->isOpen())
@csrf

Log a follow-up

@foreach($channels as $key => $label) @endforeach
@endif

History

    @forelse($lead->followUps as $followUp)
  1. {{ $followUp->note }}

    {{ $channels[$followUp->channel] ?? $followUp->channel }} · {{ $followUp->user?->name ?? 'System' }} · {{ $followUp->created_at->format('d M Y, g:i A') }}@if($followUp->status_after) · → {{ $statuses[$followUp->status_after] ?? $followUp->status_after }}@endif

  2. @empty
  3. No follow-ups yet.
  4. @endforelse
@csrf @method('PUT') @include('tenant.coaching.leads._form', ['lead' => $lead])
@csrf @method('DELETE')