@extends('layouts.admin') @section('content')
{{-- Page Header --}}

Customers Overview

Manage registered customers and subscription status

+ Add New Customer
{{-- Stats Cards (Same Style as Dashboard) --}}

Total Customers

{{ $customers->count() }}

Premium Customers

{{ $customers->where('customer_type','premium')->count() }}

Active Subscriptions

{{ $customers->where('subscription_active',1)->count() }}

Expired Accounts

{{ $customers->whereNotNull('subscription_expiry')->where('subscription_active',0)->count() }}

{{-- Main Card Container --}}
{{-- Table (Desktop) --}} {{-- Mobile Card Layout --}}
@foreach($customers as $customer)

{{ $customer->name }}

@if($customer->customer_type === 'premium') Premium @else Normal @endif

{{ $customer->email ?? '—' }}

{{-- Subscription --}} @if($customer->subscription_active) Active @elseif($customer->subscription_expiry) Expired @else Not Subscribed @endif
@endforeach
@endsection