@extends('backEnd.layouts.master') @section('title','Sales Dashboard') @section('css') @endsection @section('content')
{{-- Header --}}

Hi! Welcome To Dashboard

Home → Sales Dashboard
{{-- Banner --}}

Congratulations {{ Auth::user()->name ?? 'Admin' }} 🎉

You have reached your sales milestone! Keep going strong 💪

TK {{ number_format($today_profit ?? 0,2) }}

Today's Profit

{{-- Cards --}}
Total Orders
{{ number_format($total_order ?? 0) }}
Fund Balance
TK {{ number_format($fund_balance ?? 0,2) }}
Total Expenses
TK {{ number_format($total_expenses ?? 0,2) }}
Delivered Orders
{{ number_format($total_delivery ?? 0) }}
{{-- Charts --}}
Sales By Category
Monthly Sales Statistics
{{-- Recent Orders & Customers --}}
Recent Orders
@forelse($latest_order ?? [] as $order) @empty @endforelse
Customer Invoice Status Date
{{ $order->customer->name ?? 'Guest' }} #{{ $order->invoice_id ?? '-' }} @if(($order->order_status ?? 0) == 5) Delivered @elseif(($order->order_status ?? 0) == 1) Pending @else Processing @endif {{ optional($order->created_at)->format('d M Y') }}
No recent orders found
Recent Customers
    @forelse($latest_customer ?? [] as $cust)
  • {{ $cust->name }}
    {{ $cust->phone ?? 'N/A' }}
  • @empty
  • No customers found
  • @endforelse
@endsection @section('script') @endsection