@extends('dasgboard.layouts.app') @section('title', 'ড্যাশবোর্ড') @section('content')

স্বাগতম, {{ auth()->user()->name }}

ল্যান্ডিং পেজের অর্ডার ও বিক্রয়ের সর্বশেষ অবস্থা দেখুন।

মোট অর্ডার{{ number_format($orderCount) }}
পেন্ডিং অর্ডার{{ number_format($pendingCount) }}
সম্পন্ন বিক্রয়৳{{ number_format($totalSales) }}

বিক্রয় রিপোর্ট

শুধু Delivered অর্ডারের বিক্রিত পণ্য ও আয়

@foreach([ ['today', 'আজকের বিক্রয়', 'fa-calendar-day'], ['week', 'এই সপ্তাহের বিক্রয়', 'fa-calendar-week'], ['month', 'এই মাসের বিক্রয়', 'fa-calendar'], ] as [$period, $label, $icon])
{{ $label }} {{ number_format($sales[$period]['quantity']) }} টি আয়: ৳{{ number_format($sales[$period]['revenue']) }}
@endforeach

অর্ডার স্ট্যাটাস

আজ ও চলতি মাসের বর্তমান অবস্থা

@foreach([ ['today', 'pending', 'আজ পেন্ডিং', 'fa-clock', 'pending'], ['today', 'delivered', 'আজ সম্পন্ন', 'fa-circle-check', 'delivered'], ['today', 'cancelled', 'আজ বাতিল', 'fa-circle-xmark', 'cancelled'], ['month', 'pending', 'মাসে পেন্ডিং', 'fa-clock', 'pending'], ['month', 'delivered', 'মাসে সম্পন্ন', 'fa-circle-check', 'delivered'], ['month', 'cancelled', 'মাসে বাতিল', 'fa-circle-xmark', 'cancelled'], ] as [$period, $status, $label, $icon, $class])
{{ $label }}{{ number_format($statusCounts[$period][$status] ?? 0) }}
@endforeach

সাম্প্রতিক অর্ডার

সব অর্ডার দেখুন
@forelse($orders as $order) @empty @endforelse
অর্ডারকাস্টমারফোনপণ্যঠিকানাপরিমাণমোটস্ট্যাটাসতারিখ
#{{ $order->id }} {{ $order->name }} {{ $order->phone }} {{ $order->food_name ?: '—' }} {{ \Illuminate\Support\Str::limit($order->address, 30) }} {{ $order->quantity }} টি ৳{{ number_format($order->total) }} {{ ['pending' => 'পেন্ডিং', 'shipping' => 'শিপিং', 'delivered' => 'সম্পন্ন', 'cancelled' => 'বাতিল'][$order->status] ?? ucfirst($order->status) }} {{ $order->created_at->format('d M, Y') }}
এখনও কোনো অর্ডার পাওয়া যায়নি।
{{ $orders->links() }}
@endsection @push('styles') @endpush