{{-- HEADER --}}

All Contacts

@can('contact.create') + Add Contact @endcan
{{-- BODY --}}
@forelse($contacts as $index => $contact) @php $fullName = trim( ($contact->first_name ?? '') . ' ' . ($contact->middle_name ?? '') . ' ' . ($contact->last_name ?? '') ); @endphp {{-- SR NO --}} {{-- NAME --}} {{-- TYPE --}} {{-- PHASE --}} {{-- PHONE --}} {{-- TAGS --}} {{-- ACTIONS --}} @empty @endforelse
# Name Type Phase Phone Tags Actions
{{ $index + 1 }}
{{ $fullName ?: 'N/A' }} @if($contact->email) {{ $contact->email }} @endif
@if($contact->contactType) {{ $contact->contactType->title }} @else - @endif @if($contact->contactPhase) {{ $contact->contactPhase->title }} @else - @endif {{ $contact->phone1 ?: '-' }} @if($contact->tags->count())
@foreach($contact->tags as $tag) {{ $tag->title }} @endforeach
@else - @endif
@push('scripts') @endpush