@extends('admin.layouts.app') @section('title', 'Agents List') @section('content')
{{-- Success Message --}} @if(session('success')) @endif
{{-- Header --}}
Agents List

Manage your registered agents and their assignments.

{{-- Search Filter --}}
Add Agent
@forelse($agents as $key => $agent) {{-- Agent Profile Column --}} {{-- Contact Details Column --}} {{-- Bank Info Column --}} {{-- Status Column --}} {{-- Actions Column --}} @empty @endforelse
Sr.No Agent Profile Contact Details Bank & Branch Status Action
{{ $agents->firstItem() + $key }}
@if($agent->image) @else
{{ strtoupper(substr($agent->name, 0, 1)) }}
@endif
{{ $agent->name }}
{{ $agent->designation ?? 'Agent' }}
{{ $agent->mobile_number }} {{ $agent->email }} @if($agent->whatsapp_number) {{ $agent->whatsapp_number }} @endif
{{ $agent->bank->bank ?? 'N/A' }} {{ $agent->branch->branch_address ?? 'N/A' }}
@if($agent->is_active) Active @else Inactive @endif
@csrf @method('DELETE')

No agents found.

{{-- Pagination --}} @if($agents->hasPages()) @endif
{{-- Styles for Soft Buttons --}} @push('styles') @endpush @push('scripts') {{-- SweetAlert2 CDN --}} @endpush @endsection