@extends('layouts.app') @section('title', 'Admin Dashboard') @push('styles') @endpush @section('content')
{{-- ── Page Heading ── --}}

Admin Dashboard {{-- LIVE --}}

{{--

{{ now()->format('l, F j, Y') }}

--}}
{{-- ── Stat Cards ── --}}
{{-- Users --}}

Total Users

{{ number_format($stats['users_count']) }}

{{-- Orders --}}

Total Orders

{{ number_format($stats['orders_count']) }}

{{-- Products --}}

Total Products

{{ number_format($stats['products_count']) }}

{{-- ── Welcome Card ── --}}
{{ strtoupper(substr($user->name, 0, 1)) }}

Welcome back, {{ $user->name }} Admin

{{ $user->email }}

{{-- ── Last: subscriptions past billing period end (follow-up) ── --}}

Billing Period Ended — Subscriptions to Review

{{ $subscriptionsPastPeriodEnd->count() }} listed
@if($subscriptionsPastPeriodEnd->isEmpty())
No subscriptions in this list — all non-canceled rows have period end on or after today.
@else
@foreach($subscriptionsPastPeriodEnd as $sub) @php $end = $sub->current_period_end; $daysAgo = $end ? (int) $today->diffInDays($end->copy()->startOfDay()) : null; @endphp @endforeach
Service ID User Period ended Status Actions
@if($sub->order_id) {{ $sub->order && $sub->order->iperium_service_id !== null && $sub->order->iperium_service_id !== '' ? $sub->order->iperium_service_id : '—' }} @else {{ $sub->order && $sub->order->iperium_service_id !== null && $sub->order->iperium_service_id !== '' ? $sub->order->iperium_service_id : '—' }} @endif @if($sub->user) {{ $sub->user->name }}
{{ $sub->user->email }} @else User #{{ $sub->user_id }} @endif
{{ $end ? $end->format('d/m/Y') : '—' }} {{ $sub->status === 'active' ? 'Active' : $sub->status }} @if($sub->user)
@csrf
Billing @endif
@endif
@endsection @push('scripts') @endpush