@extends('layouts.app') @section('content')

Agents

@if (auth()->user()->role === 'super_admin') Add Agent @endif
@if (session('success'))
{{ session('success') }}
@endif
@forelse ($agents as $agent) @continue($agent->role === 'super_admin') {{-- Skip Super Admins --}} @empty @endforelse
# Name Mobile Number Actions
{{ $agent->id }} {{ $agent->name }} {{ $agent->mobile_no }} @if(!in_array($agent->role, ['super_admin', 'co_admin'])) View @if (auth()->user()->role === 'super_admin') Edit
@csrf @method('DELETE')
@endif @else No actions @endif
No agents found.
{{ $agents->links() }}
@endsection