@extends('layouts.admin')
@section('title','ড্যাশবোর্ড')
@section('breadcrumb','Overview')
@section('content')
@php($localNow = now('Asia/Dhaka'))
@php($greeting = $localNow->hour < 12 ? 'শুভ সকাল' : ($localNow->hour < 17 ? 'শুভ বিকাল' : 'শুভ সন্ধ্যা'))
@foreach([['মোট বিক্রি','৳ '.number_format($stats['sales']),'৳','green'],['আজকের বিক্রি','৳ '.number_format($stats['today_sales']),'↗','peach'],['এই মাসের বিক্রি','৳ '.number_format($stats['month_sales']),'▤','lilac'],['মোট অর্ডার',number_format($stats['orders']),'▧','blue'],['অপেক্ষমাণ অর্ডার',number_format($stats['pending']),'◷','yellow'],['সম্পন্ন অর্ডার',number_format($stats['completed']),'✓','green'],['মোট কাস্টমার',number_format($stats['customers']),'♧','lilac'],['সক্রিয় পণ্য',number_format($stats['products']),'◈','blue'],['কম স্টক',number_format($stats['low_stock']),'!','yellow'],['স্টক শেষ',number_format($stats['out_stock']),'×','peach']] as $s)
{{ $s[0] }}{{ $s[2] }}
{{ $s[1] }}আপডেটেড {{ $localNow->format('H:i') }}
@endforeach
৳{{ number_format($salesDays->sum('total')) }} এই সপ্তাহে
@php($max=max(1,$salesDays->max('total')))
@foreach($salesDays as $day)
৳{{ number_format($day['total']) }}{{ $day['label'] }}
@endforeach
অপেক্ষমাণ{{ $stats['pending'] }}
প্রসেসিং{{ \App\Models\Order::whereIn('status',['confirmed','processing','packed'])->count() }}
ডেলিভারি হয়েছে{{ $stats['completed'] }}
বাতিল{{ $stats['cancelled'] }}
@foreach($topProducts as $product)
{{ $product->name }}{{ $product->sku }} · স্টক {{ $product->stock_quantity }}৳{{ number_format($product->price) }}
@endforeachইনভেন্টরি সতর্কতা
যেসব পণ্যে নজর দেওয়া দরকার
ইনভেন্টরি →
@foreach(\App\Models\Product::where('status','published')->whereColumn('stock_quantity','<=','low_stock_threshold')->orderBy('stock_quantity')->take(5)->get() as $product)!{{ $product->name }}{{ $product->sku }}{{ $product->stock_quantity===0?'স্টক শেষ':'স্টক '.$product->stock_quantity }}
@endforeach
@endsection