@extends('admin.layouts.app')
@section('title', 'Bank & Branch Management Dashboard')
@section('content')
    
        
        
            
                
                    
                        
                            
                        
                        
                            📊 Bank & Branch Management Dashboard
                            Monitor your banking network at a glance
                         
                     
                    
                 
             
         
        
        
            
                
                    
                        
                            
                                
                            
                            
                                {{ number_format($stats['total_banks']) }}
                                Total Banks
                                
                                    
                                        {{ $stats['active_banks'] }} Active
                                    
                                    
                                        {{ $stats['total_banks'] - $stats['active_banks'] }} Inactive
                                    
                                
                             
                         
                        
                     
                    
                 
             
            
                
                    
                        
                            
                                
                            
                            
                                {{ number_format($stats['total_branches']) }}
                                Total Branches
                                
                                    
                                        {{ $stats['active_branches'] }} Active
                                    
                                    
                                        {{ $stats['total_branches'] - $stats['active_branches'] }} Inactive
                                    
                                
                             
                         
                      
                     
                    
                 
             
            
                
                    
                        
                            
                                
                            
                            
                                {{ number_format($stats['total_agents']) }}
                                Total Agents
                                
                                    
                                        {{ $stats['active_agents'] }} Active
                                    
                                    
                                        {{ $stats['total_agents'] - $stats['active_agents'] }} Inactive
                                    
                                
                             
                         
                       
                     
                    
                 
             
         
        
        
        
        
            
            
                
                    
                    
                        
                            
                                
                                    
                                        | # | Bank | Branch Address | Status | Actions | 
                                
                                
                                    @forelse($recentBranches as $branch)
                                        
                                            | {{ $branch->id }} | 
                                                    
                                                    
                                                        {{ $branch->bank->bank ?? 'N/A' }}
                                                     | {{ $branch->branch_address }} | @if($branch->is_active)
                                                    
                                                        Active
                                                    
                                                @else
                                                    
                                                        Inactive
                                                    
                                                @endif |  | 
                                    @empty
                                        
                                            |  | 
                                    @endforelse
                                
                            
                         
                     
                 
             
            
            
                
                    
                    
                        
                            
                                
                                    
                                        | # | Name | Bank | Branch | Status | Actions | 
                                
                                
                                    @forelse($recentAgents as $agent)
                                        
                                            | {{ $agent->id }} |  | {{ $agent->bank->bank ?? 'N/A' }} | {{ $agent->branch->branch_address ?? 'N/A' }} | @if($agent->is_active)
                                                    
                                                        Active
                                                    
                                                @else
                                                    
                                                        Inactive
                                                    
                                                @endif |  | 
                                    @empty
                                        
                                            |  | 
                                    @endforelse
                                
                            
                         
                     
                 
             
         
     
    
@endsection