{{-- Search Result Section Component A container for grouping search result items with a header. @props - title: string - Section title - color: string - Color scheme (primary, warning, success, info) - icon: string - Icon name for the section header - count: int - Item count to display - animationDelay: int - Animation delay in ms - default: 0 @slots - default: Result items - footer: Optional footer content (e.g., load more button) @example @foreach($projects as $project) @endforeach --}} @props([ 'title' => '', 'color' => 'primary', 'icon' => 'file', 'count' => 0, 'animationDelay' => 0, ]) @php $gradientClass = match($color) { 'primary' => 'bg-primary-gradient', 'warning' => 'bg-warning-gradient', 'success' => 'bg-success-gradient', 'info' => 'bg-info-gradient', 'danger' => 'bg-danger-gradient', default => 'bg-primary-gradient', }; $sectionClass = "search-section-{$color}"; @endphp
{{ $title }} {{ $count }}
{{ $slot }}
@if(isset($footer) && $footer->isNotEmpty()) {{ $footer }} @endif