@php
$hasActiveFilters = collect(['search', 'client_id', 'project_id', 'lead_status_id', 'form_name', 'source', 'assigned', 'assigned_user_id', 'date_from', 'date_to', 'read', 'status_updated_from', 'status_updated_to', 'status_updated_by', 'stale_days', 'notes_added_today', 'notes_added_user', 'schedule_kind'])
->contains(fn ($key) => filled(request($key)));
$submissionOptionalColumns = array_values(array_filter([
auth()->user()->isSuperAdmin() ? ['key' => 'client', 'label' => 'Client', 'default' => true] : null,
['key' => 'project', 'label' => 'Project', 'default' => true],
['key' => 'company', 'label' => 'Company', 'default' => true],
['key' => 'city', 'label' => 'City', 'default' => true],
['key' => 'email', 'label' => 'Email', 'default' => true],
['key' => 'phone', 'label' => 'Phone', 'default' => true],
]));
@endphp
@endsection
@push('styles')