@extends('reseller.layouts.app') @section('title', 'প্রো রিসেলার ড্যাশবোর্ড') @section('page-title', 'Dashboard') @push('styles') @endpush @section('content') @if($user->verification_status != 'approved') @endif

মোট আয়

৳ {{ number_format($totalProfit, 0) }}

@if($salesGrowth > 0) +{{ number_format($salesGrowth, 1) }}% @elseif($salesGrowth < 0) {{ number_format(abs($salesGrowth), 1) }}% @else এই মাসে @endif

মোট অর্ডার

{{ $totalOrders }} টি

সব সময়

পেন্ডিং ব্যালেন্স

৳ {{ number_format($pendingBalance, 0) }}

প্রসেসিং হচ্ছে

কাস্টমার

{{ $totalCustomers }} জন

সক্রিয়
🔥 জনপ্রিয় পণ্য (Hot Deals)
সব দেখুন
@forelse($popularProducts as $product)
@if($loop->first) নতুন @elseif($loop->index < 3) হট @endif @if($product['image']) {{ $product['name'] }} @else
@endif
{{ $product['name'] }}
লাভ: ৳{{ number_format($product['profit'], 0) }} স্টক: {{ $product['stock'] }}+
রিসেলার প্রাইস ৳ {{ number_format($product['reseller_price'], 0) }}
{{-- Always navigate to product details page when clicking order --}} অর্ডার
@empty

কোন পণ্য পাওয়া যায়নি

@endforelse
সাম্প্রতিক অর্ডার
সব দেখুন
@forelse($orders->take(10) as $order) @empty @endforelse
Invoice Product Customer Profit Status
#{{ $order->invoice_id ?? $order->id }} @if($order->orderdetails->first() && $order->orderdetails->first()->product)
@if($order->orderdetails->first()->product->image) @else
@endif {{ Str::limit($order->orderdetails->first()->product->name ?? 'N/A', 20) }}
@else N/A @endif
{{ $order->customer->name ?? 'Guest' }} + ৳{{ number_format($order->reseller_profit ?? 0, 0) }} @php $status = (string)($order->order_status ?? ''); $statusClass = ''; $statusText = ''; if($status == '6') { $statusClass = 'bg-success bg-opacity-10 text-success'; $statusText = 'Delivered'; } elseif($status == '11') { $statusClass = 'bg-danger bg-opacity-10 text-danger'; $statusText = 'Cancelled'; } elseif($status == '4') { $statusClass = 'bg-info bg-opacity-10 text-info'; $statusText = 'Shipping'; } else { $statusClass = 'bg-warning bg-opacity-10 text-warning'; $statusText = 'Pending'; } @endphp {{ $statusText }}

কোন অর্ডার নেই

সাপ্তাহিক আয় (গ্রাফ)
@endsection @push('scripts') @endpush