@forelse($customers as $key => $customer)
    
        | {{ $key + 1 }} | {{ $customer->full_name }} | {{ $customer->email }} | {{ $customer->phone ?? 'N/A' }} | @php
                $status = 'Active';
                $badge = 'success';
                if (isset($customer->is_active)) {
                    if ($customer->is_active == 1) {
                        $status = 'Active';
                        $badge = 'success';
                    } elseif ($customer->is_active == 0) {
                        $status = 'Inactive';
                        $badge = 'danger';
                    }
                }
            @endphp
            
                {{ $status }} | {{ $customer->created_at ? $customer->created_at->format('M d, Y') : 'N/A' }} | 
                
             | 
@empty
    
        | No customers found. | 
@endforelse