@php $groupedData = $groupedData ?? []; @endphp @forelse($groupedData as $groupKey => $group) @php $collapseId = 'collapse_'.$loop->index; @endphp

@if(request()->filled('search_text')) @else @endif
@include('admin.leads.partials.action_dropdown')
@forelse($group['paginator'] as $idx => $lead)

Updated: {{ $lead->updated_at?->diffForHumans() ?? '—' }}

({{ $lead->status_age_days ?? '—' }} days in status)

Last Note: {{ $lead->last_note_at ? \Carbon\Carbon::parse($lead->last_note_at)->diffForHumans() . ' at ' . \Carbon\Carbon::parse($lead->last_note_at)->format('g:i A') : 'Never' }}

Last Task: {{ $lead->last_task_at ? \Carbon\Carbon::parse($lead->last_task_at)->diffForHumans() . ' at ' . \Carbon\Carbon::parse($lead->last_task_at)->format('g:i A') : 'None' }}

@if($lead->relationLoaded('assignedUsers') && $lead->assignedUsers->count())

Sales Reps: {{ $lead->assignedUsers->map(fn($u) => trim($u->first_name . ' ' . $u->last_name))->implode(', ') }}

@endif
@empty
No leads in this group.
@endforelse
Items per page:
@if($group['paginator']->hasPages())
{!! $group['paginator']->appends(request()->except(["group_page_{$groupKey}"]))->links() !!}
@endif
@empty
No leads found.
@endforelse
{{-- Inline Saved View Management Section --}}
{{-- STATE 1: No saved views --}}

No saved views ⓘ

{{-- STATE 2: Creating / Save-As (inline name input) --}}
{{-- STATE 3: Managing existing views (dropdown + action icons) --}}
Search
{{-- Dynamic Custom Properties with Hierarchy --}} @php $filterCustomProperties = $filterCustomProperties ?? []; @endphp @foreach($filterCustomProperties as $prop)
@if(!empty($prop['children'])) @foreach($prop['children'] as $child)
@endforeach @endif @endforeach
Reset Save New View