@extends('layouts.app') @section('title', 'Admin Dashboard') @section('content')
Time Travel

Time Travel Mode Active

Viewing dashboard as of:

Admin Dashboard

Today's Sales

LKR {{ number_format($todaysSales, 2) }}

Out of Stock

{{ $outOfStock['count'] }}

Click to view

Profit Margin

{{ number_format($profitMargin, 2) }}%

Active Customers

{{ number_format($activeCustomers) }}

Customer Credits

LKR {{ number_format($customerCredits['total_amount'], 2) }}

Supplier Credits

LKR {{ number_format($supplierCredits['total_amount'], 2) }}

Overdue Credits

{{ $overdueCredits['count'] }}

LKR {{ number_format($overdueCredits['total_amount'], 2) }}

Active Shifts

{{ $activeShifts->count() }}

@if($activeShifts->count() > 0)

{{ $activeShifts->pluck('user.name')->join(', ') }}

@endif

Expiring Batches

{{ $expiringBatches['days_30'] }}

Within 30 days

Top 10 Most Sold Items

Profit Over Time

Out of Stock Products

Product SKU Category Brand
Showing to of products

Overdue Customer Credits

Customer Credit # Due Date Amount Days Overdue
Showing to of credits

Outstanding Customer Credits

Customer Name Credit Number Invoice Date Due Date Outstanding Amount Status
Showing to of credits

Outstanding Supplier Credits

Supplier Name Credit Number Invoice Date Due Date Outstanding Amount Status
Showing to of credits

Select Custom Date Range

Expiring Batches (Next 90 Days)

Product Name Batch Number Expiry Date Quantity Category Brand Days Until Expiry
Showing to of batches
@endsection