@if(!$isOffice)
@endif
@forelse ($agents as $index => $agent) @empty @endforelse
ID @if($sortBy === 'id') @if($sortDirection === 'asc') @else @endif @else @endif FULL NAME @if($sortBy === 'fname') @if($sortDirection === 'asc') @else @endif @else @endif EMAIL @if($sortBy === 'email') @if($sortDirection === 'asc') @else @endif @else @endif COMPANY @if($sortBy === 'company_id') @if($sortDirection === 'asc') @else @endif @else @endif STATUS @if($sortBy === 'status') @if($sortDirection === 'asc') @else @endif @else @endif CREATED @if($sortBy === 'created_at') @if($sortDirection === 'asc') @else @endif @else @endif
{{ $agent->id}} {{ strlen($agent->full_name) > 20 ? substr($agent->full_name, 0, 20) . '...' : $agent->full_name }} {{$agent->email }} {{ strlen($agent->company->company_name) > 20 ? substr($agent->company->company_name, 0, 20) . '...' : $agent->company->company_name }} @if ($agent->status === 'active') Active @else Inactive @endif {{ $agent->created_at->format('Y-m-d') }}
No agents found.
@if($agents->lastPage() > 1) {{ $agents->links() }} @endif @if($agents->total() <= 10)

Showing {{ $agents->firstItem() }} to {{ $agents->lastItem() }} of {{ $agents->total() }} agents

@else

@endif
Loading...