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

Executive Enterprise Dashboard

Centralized multi-store overview, warehouse inventory tracking, and supply chain governance.

New Transfer Warehouse Intake Add Store Register Product
Store Network
{{ $totalStores }}
{{ $activeStores }} Active Stores
Master Catalog
{{ $totalProducts }}
{{ $activeProducts }} Active SKUs
System Users
{{ $totalUsers }}
{{ $activeUsers }} Active Accounts
Security Status
Compliant
RBAC Enforced
Central Unit Inventory & Pipeline Tracking
Live unit-level tracking across manufacturing, central warehouses, transit pipeline and retail stores.
Warehouses ({{ \App\Models\Warehouse::count() }})
Manufactured
{{ number_format($totalManufacturedUnits) }}
Total verified units
Central Warehouses
{{ number_format($totalWarehouseStock) }}
Stock available to dispatch
In Transit
{{ number_format($unitsInTransit) }}
Dispatched to stores
Transferred
{{ number_format($totalTransferredUnits) }}
Received at stores
Sold (POS)
{{ number_format($totalSoldUnits) }}
Consumer sales
Damaged / Hold
{{ number_format($damagedUnits + $quarantinedUnits) }}
{{ $damagedUnits }} Damaged | {{ $quarantinedUnits }} Hold
Store-Wise Inventory Distribution Transfer Operations →
@forelse($storeWiseInventory as $inv) @empty @endforelse
Store Code In-Store Stock Units Actions
{{ $inv->name }}
{{ $inv->code }} {{ number_format($inv->unit_count) }} units View Units
No units currently stocked in retail stores. Dispatch transfers from central warehouse.
Batches Nearing Expiry (90 Days) All Batches →
@forelse($expiringBatches as $batch) @php $daysLeft = round(now()->diffInDays($batch->expiry_date, false)); @endphp @empty @endforelse
Batch / Product Expiry Status
{{ $batch->batch_number }}
{{ $batch->product->name ?? 'Unknown' }}
{{ $batch->expiry_date->format('Y-m-d') }}
@if($daysLeft <= 0) Expired @elseif($daysLeft <= 30) {{ $daysLeft }}d remaining @else {{ $daysLeft }}d remaining @endif
{{ $batch->status }}
No batches expiring within the next 90 days.
Recent Stock Transfer Pipeline View All Stock Transfers →
@forelse($recentTransfers as $tf) @empty @endforelse
Transfer # Source Location Destination Store Units Status Date Dispatched Actions
{{ $tf->transfer_number }} {{ $tf->source_name }} {{ $tf->destination_name }} {{ $tf->total_units_dispatched }} units @if($tf->status === 'Received') Received @elseif($tf->status === 'In Transit' || $tf->status === 'Dispatched') In Transit @elseif($tf->status === 'Partially Received') Partially Received @elseif($tf->status === 'Draft') Draft @else {{ $tf->status }} @endif {{ $tf->dispatched_at ? $tf->dispatched_at->format('Y-m-d H:i') : 'Pending' }} Details
No stock transfers executed yet.
Store Network ({{ $stores->count() }} of {{ $totalStores }}) View All Stores →
@forelse($stores as $st) @empty @endforelse
Store Code Location Staff Status Actions
{{ $st->name }}
{{ $st->email }}
{{ $st->code }} {{ $st->city }}, {{ $st->state }} {{ $st->users_count }} users @if($st->isActive()) Active @else Inactive @endif
No stores registered yet.
Product Categories Catalog →
@forelse($categories as $cat)
{{ $cat->name }}
{{ $cat->code }}
{{ $cat->products_count }} SKUs
@empty
No categories defined.
@endforelse
Recent Security & Operational Audit Log View Complete Audit Trail →
@forelse($recentLogs as $log) @empty @endforelse
Timestamp User Action Event Description IP Address
{{ $log->created_at->format('Y-m-d H:i:s') }} @if($log->user) {{ $log->user->name }} {{ $log->user->email }} @else System @endif {{ $log->action }} {{ $log->description }} {{ $log->ip_address ?? '-' }}
No audit activity logged yet.
@endsection