Contacts
{{-- Header --}}

Contacts

{{ $contacts->total() }} {{ \Illuminate\Support\Str::plural('contact', $contacts->total()) }} in this workspace

{{-- Filters --}}
Search
Group
Apply @if (request()->hasAny(['q', 'group_id', 'tags'])) Clear @endif
@if ($tags->isNotEmpty())
Tags: @php $activeTags = (array) request('tags', []); @endphp @foreach ($tags as $tag) @php $isActive = in_array($tag->id, $activeTags); $newTags = $isActive ? array_diff($activeTags, [$tag->id]) : array_merge($activeTags, [$tag->id]); $href = request()->fullUrlWithQuery(['tags' => array_values($newTags)]); @endphp {{ $tag->name }} @endforeach
@endif
{{-- Bulk action bar --}}
selected
{{-- Add to group --}} @if ($groups->isNotEmpty()) Add to group @foreach ($groups as $group)
@csrf {{ $group->name }}
@endforeach
@endif {{-- Add tag --}} @if ($tags->isNotEmpty()) Add tag @foreach ($tags as $tag)
@csrf {{ $tag->name }}
@endforeach
@endif {{-- Send bulk message --}} Send message
@csrf Cancel Delete
{{-- Table --}} @if ($contacts->isEmpty())

No contacts yet

Add your first contact to get started.

Add contact
@else Name @foreach ($contacts as $contact)
{{ $contact->name }}
{{ $contact->email ?: $contact->phone ?: '—' }}
View Edit
@csrf @method('DELETE') Delete
@endforeach
{{ $contacts->links() }}
@endif