@extends('admin.layouts.layout') @section('css') @endsection @section('content')

All Agents

Export Add @if($permission['destroy']) Delete @endif
@if(isset($data) && count($data) > 0) @foreach($data as $agent) @endforeach @else @endif
Avatar Name Phone Email Status Actions
{{ strtoupper(mb_substr($agent['first_name'] ?? '', 0, 1) . mb_substr($agent['last_name'] ?? '', 0, 1)) }}
{{ $agent['full_name'] ?? ($agent['first_name'] . ' ' . $agent['last_name']) }}
{{ $agent['full_name'] ?? ($agent['first_name'] . ' ' . $agent['last_name']) }} {{ \App\Helpers\Helper::formatPhone($agent['phone'] ?? '') }} {{ $agent['email'] ?? '' }}
@if($permission['show']) View @endif @if(!isset($agent['email_verified_at'])) @endif @if($permission['edit']) @endif @if($permission['destroy']) {!! html()->form('DELETE', route( $routePrefix . '.destroy', $agent->id ))->attributes([ 'style' => 'display:inline', 'id' => 'delete-form-' . $agent->id ])->open() !!} {!! html()->form()->close() !!} @endif
No Agents Added Yet.
@include('admin.components.pagination') @endsection @push('page_script') @endpush