@props([ 'client', 'showLocation' => false, 'showCategory' => false, 'linkRoute' => 'fieldmanager.clients.show', 'avatarSize' => 'sm' ]) @if($client)
@if(isset($client->image_url) && $client->image_url) Client @else {{ strtoupper(substr($client->name, 0, 2)) }} @endif
{{ $client->name }} @if($showLocation && ($client->city || $client->state)) {{ implode(', ', array_filter([$client->city, $client->state])) }} @elseif($showCategory && $client->category) {{ $client->category }} @elseif($client->email) {{ $client->email }} @elseif($client->phone) {{ $client->phone }} @else @endif
@else
{{ __('No Client') }}
@endif