@extends('layouts.app') @section('title', 'Agents') @section('content')

Agents

@can('agent.create') New Agent @endcan

{{ $items->total() }} agents found.

@forelse ($items as $item) @empty @endforelse
Name Phone Branch Countries Status Actions
{{ $item->name }} {{ $item->phone ?? '—' }} {{ $item->branch?->name ?? '—' }} @foreach ($item->countries as $country) {{ $country->code }} @endforeach {{ $item->status }} @can('agent.view') View @endcan @can('agent.edit') Edit @endcan @can('agent.delete') @endcan
No agents found. Adjust the filters or create a new one.
{{ $items->links() }}
@endsection @push('scripts') @endpush