@extends('layouts.app') @section('title', 'Contacts') @section('breadcrumb')Contacts@endsection @section('content')
@foreach([ ['All', 'all'], ['Clients', 'client'], ['Suppliers', 'supplier'], ['Trade', 'trade'], ['Installers', 'installer'], ['Other', 'other'], ] as [$label, $key])
{{ $stats[$key] }}
{{ $label }}
@endforeach
Clear
@forelse($contacts as $contact) @empty @endforelse
Name Type Email Phone Company Location
{{ $contact->initials }}
{{ $contact->full_name }}
{{ $contact->typeLabel() }} @if($contact->email) {{ $contact->email }} @else —@endif {{ $contact->phone ?? $contact->mobile ?? '—' }} {{ $contact->company ?? '—' }} {{ $contact->suburb ? $contact->suburb.', '.$contact->state : '—' }}
No contacts found.
@if($contacts->hasPages())
{{ $contacts->links() }}
@endif
@foreach($contacts as $contact)
{{ $contact->full_name }}
{{ $contact->typeLabel() }}
{{ $contact->initials }}

{{ $contact->full_name }}

{{ $contact->company ?? $contact->typeLabel() }}

@if($contact->email) {{ $contact->email }} @endif @if($contact->phone) {{ $contact->phone }} @endif @if($contact->mobile) {{ $contact->mobile }} @endif @if($contact->address)
{{ $contact->address }}
{{ $contact->suburb }} {{ $contact->state }} {{ $contact->postcode }}
@endif
@if($contact->notes)

Notes

{{ $contact->notes }}

@endif View Full Profile
@endforeach
@endsection