@extends('layouts.master') @push('styles') @endpush @section('content')

Admin Command Center

Welcome back, {{ auth()->user()->name }} — Live system status and metrics

{{ date('l, d M Y') }}
New Sale Order
Core Operations (Real Live Data)
Sales Invoices
{{ number_format($sales_count) }}
{{ $sales_today_count }} Today Total invoices
Purchase Orders
{{ number_format($po_count) }}
{{ $po_today_count }} Today Total orders
Good Receipts
{{ number_format($gr_count) }}
{{ $gr_trucks_count }} Trucks {{ $gr_today_count }} arrived today
B-Cheques
{{ number_format($b_cheque_count) }}
Settlement PKR {{ number_format($b_cheque_save_amount, 0) }}
Total Expenses
PKR {{ number_format($total_expenses, 0) }}
Mandi + Services Recorded expense
Customers
{{ number_format($customers_count) }}
Buyers Registered clients
Suppliers
{{ number_format($suppliers_count) }}
Growers Active suppliers
Stock Balance
{{ number_format($stocks_remain_qty) }}
{{ $stocks_count }} Lots Remaining inventory
Financial Performance (Actuals)
Total Sales Turnover
PKR {{ number_format($sales_total_amount, 2) }}
Gross invoiced amount across {{ $sales_count }} sales
Collected / Paid
PKR {{ number_format($sales_paid_amount, 2) }}
Realized cash / bank collections
Outstanding Receivables
PKR {{ number_format($sales_balance_amount, 2) }}
Pending customer receivables balance
Purchase Commitments
PKR {{ number_format($po_grand_total, 2) }}
Total value of active purchase orders
Quick Operations
New Sale Sales List New PO Inward (GR) B-Cheque New Voucher Vouchers Add Customer Add Supplier General Ledger

Goods Arrival & Sales Activity

Comparative volume trend

Voucher Distribution

Live audit count ({{ $total_vouchers_count }} Total)
Journal Vouchers {{ $jv_count }}
Payment Vouchers {{ $pv_count }}
Receipt Vouchers {{ $rv_count }}
Service Vouchers {{ $sv_count }}

User Login Activity

Registered users audit & login state
@forelse($users as $u) @empty @endforelse
User Role Last Active Status
{{ strtoupper(substr($u->name ?? 'U', 0, 2)) }}
{{ $u->name }}
{{ $u->email }}
@if($u->role_id == 1) Administrator @elseif($u->role_id == 3) Accounts @elseif($u->role_id == 4) Sales @elseif($u->role_id == 5) Manager @else Staff (Role {{ $u->role_id }}) @endif {{ $u->updated_at ? \Carbon\Carbon::parse($u->updated_at)->diffForHumans() : 'Never' }} @if($u->updated_at && \Carbon\Carbon::parse($u->updated_at)->gt(now()->subHours(24))) Active @else Offline @endif
No user records available
@endsection @push('scripts') @endpush