@extends('layouts.app') @section('title', __('messages.dashboard')) @section('content')

{{ __('messages.today_orders') }}

{{ $todayOrders }}

{{ number_format(abs($ordersChange), 1) }}% from yesterday

{{ __('messages.net_profit') }}

${{ number_format($thisMonthProfit, 0) }}

{{ number_format(abs($profitChange), 1) }}% this month

Draft Vouchers

{{ $pendingVouchers ?? 0 }}

Awaiting posting to ledger

{{ __('messages.inventory_alerts') }}

{{ $lowStockItems }}

Products with low stock

Recent Orders
@forelse($recentOrders as $order) @empty @endforelse
Order ID Customer Branch Amount Status Time
#{{ $order->id }} {{ $order->customer->first_name ?? 'Walk-in' }} {{ $order->branch->name ?? 'N/A' }} ${{ number_format($order->total_amount, 2) }} {{ ucfirst($order->status) }} {{ $order->created_at->diffForHumans() }}
No recent orders found
Top Selling Products
    @forelse($topProducts as $item)
  • {{ $item->product->name ?? 'Unknown Product' }}
    {{ $item->total_qty }} units sold
    ${{ number_format($item->total_revenue, 2) }}
  • @empty

    No sales data yet

    @endforelse
{{ __('messages.branch_performance') }} Today
Manage Branches
@if($branches->count() > 0)
@foreach($branches as $branch) @endforeach
Branch Name Orders Status Contact
{{ $branch->name }} {{ $branch->orders_count }} Running {{ $branch->phone ?? 'No phone' }}
@else

No branches found.

@endif
@endsection