@extends('layouts.app') @section('content') @php $baseFilters = array_filter([ 'q' => $search, 'group' => $selectedGroupId ?: null, 'mobile' => $selectedMobileFilter, ], fn ($value) => $value !== null && $value !== ''); @endphp

Contacts

Contacts locaux, groupes et recherche. @if ($lastCardDavSyncRun) CardDAV : {{ $lastCardDavSyncRun->status }} · {{ $lastCardDavSyncRun->started_at?->diffForHumans() }} @endif

@if ($cardDavSyncEnabled)
@csrf
@endif + Contact local

Liste des contacts

@forelse ($contacts as $contact) @php($primaryPhone = $contact->phoneNumbers->firstWhere('is_primary', true) ?? $contact->phoneNumbers->first()) @empty @endforelse
Contact Telephone Groupes Statut
@if ($contact->is_favorite) ★ @endif {{ $contact->displayName() }}
{{ $contact->email ?: $contact->organization ?: ucfirst($contact->source) }}
@if ($primaryPhone) {{ $primaryPhone->normalized_number ?: $primaryPhone->raw_number }} @if (! $primaryPhone->is_valid)
Numero invalide
@elseif (! $primaryPhone->hasDetectedMobileNumber())
Non mobile
@else
Mobile detecte
@endif @else Aucun @endif
{{ $contact->groups_count }} @if ($contact->is_favorite) Favori @endif @if ($contact->sms_opt_out) Refus SMS @endif @if (! $contact->is_favorite && ! $contact->sms_opt_out) Actif @endif
@csrf @method('PATCH')
@csrf @method('PATCH')
Aucun contact trouve.
{{ $contacts->links() }}
@endsection