{{-- Lead Result Item Component A specialized search result item for displaying leads. Handles all lead-specific logic including status display. @props - lead: Client - The lead (client) model - animationDelay: int - Animation delay in ms - default: 0 - showStatus: bool - Show status badge - default: true - showDate: bool - Show status date - default: true - external: bool - Show external link - default: true @example --}} @props([ 'lead', 'animationDelay' => 0, 'showStatus' => true, 'showDate' => true, 'external' => true, ]) @php $leadUrl = route('leads.detail', $lead); $leadStatus = $lead->lead_model_status; $isRefus = $leadStatus?->group() === 'REFUS'; $statusLabel = $leadStatus?->label() ?? null; $statusDate = $lead->last_model_status?->created_at; @endphp @if($showStatus && $statusLabel) @endif @if($showDate && $statusDate) @endif {{ $slot }}