{{-- Project Result Item Component A specialized search result item for displaying projects. Handles all project-specific logic including status display. @props - project: Project - The project 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([ 'project', 'animationDelay' => 0, 'showStatus' => true, 'showDate' => true, 'external' => true, ]) @php $client = $project->clients->first(); $projectUrl = $project->full_url ?? route('projects.detail', $project); $status = $project->status ?? null; $statusEnum = $status ? \App\Enums\ProjectStatusId::tryFrom($status->project_status_id) : null; $isRefus = $statusEnum?->group() === 'REFUS'; $statusLabel = $statusEnum?->label() ?? '-'; $statusDate = $status?->created_at; @endphp @if($client) @if($showStatus && $statusEnum) @endif @if($showDate && $statusDate) @endif {{ $slot }} @endif