@if ($selectedEntityId) @if ($selectedEntity && $selectedEntity instanceof App\Models\Contact)
@elseif ($selectedEntity && $selectedEntity instanceof App\Models\Agent)
@endif @endif
@if (!empty($query))
@if (count($contacts) > 0)
Contacts
@foreach ($contacts as $contact)
{{ $contact['fname'] . ' ' . $contact['lname'] }}
@endforeach @endif @if (count($agents) > 0)
Agents
@foreach ($agents as $index=>$agent)
{{$index+1}}{{ $agent['fname'] . ' ' . $agent['lname'] }}
@endforeach @endif @if ($showAddNewOption)
+ Add New Contact
@endif
@endif @if ($showAddNewModal)
Add New Contact
×
First Name
*
@error('newEntity.fname')
{{ $message }}
@enderror
Last Name
*
@error('newEntity.lname')
{{ $message }}
@enderror
Email
Mobile Number
Save Contact
Cancel
@endif