@extends('layouts.admin') @section('title', 'Dashboard') @section('breadcrumb', 'Dashboard') @section('content')
Admin Dashboard
{{ $user->name }}
{{ $user->email }}
{{ $user->getRoleName() }}
Total Users
{{ $stats['total_users'] }}
Total Orders
{{ $stats['total_orders'] }}
Total Books
{{ $stats['total_books'] }}
Total Revenue
₹{{ number_format($stats['total_revenue']) }}

Recent Users

@if($recentUsers->count() > 0)
@foreach($recentUsers as $recentUser) @endforeach
User Role Joined
{{ substr($recentUser->name, 0, 1) }}
{{ $recentUser->name }}
{{ $recentUser->email }}
{{ $recentUser->getRoleName() }} {{ $recentUser->created_at->ist()->format('M d, Y') }}
@else

No users yet

Users will appear here as they register.

@endif

Recent Orders

@menu('orders') View all orders @endmenu
@if(isset($recentOrders) && $recentOrders->count() > 0)
@foreach($recentOrders as $order) @endforeach
Order Customer Shipping Status Total Date Action
#{{ $order->order_number }}
{{ $order->orderItems->count() }} item(s)
{{ $order->user->name }}
{{ $order->user->email }}
{{ $order->shipping_partner_status_label }} ₹{{ number_format($order->total_amount, 2) }} {{ $order->created_at->ist()->format('M d, Y') }} @menu('orders') View @endmenu
@else

No orders yet

Orders will appear here as customers make purchases.

@endif
@endsection