@extends('layouts.app') @section('title', 'বিক্রয় রিপোর্ট') @section('page-title', 'বিক্রয় রিপোর্ট') @push('styles') @endpush @section('content') {{-- Report Nav --}}
বিক্রয় স্টক বকেয়া গ্রাহক ডেলিভারি
{{-- Filter --}}
{{-- Quick range buttons --}} আজ এই সপ্তাহ এই মাস
{{-- Summary Cards --}}
{{ number_format($summary->total_orders ?? 0) }}
মোট অর্ডার
৳{{ number_format($summary->total_sales ?? 0, 0) }}
মোট বিক্রয়
৳{{ number_format($summary->total_collected ?? 0, 0) }}
আদায়কৃত
৳{{ number_format($summary->total_due ?? 0, 0) }}
বকেয়া
{{-- Sales Chart --}}
বিক্রয় চার্ট
{{-- Payment Method Breakdown --}}
পেমেন্ট পদ্ধতি
@if($paymentBreakdown->count() > 0)
@foreach($paymentBreakdown as $pm) @php $labels = ['cash'=>'নগদ','bkash'=>'বিকাশ','nagad'=>'নগদ','rocket'=>'রকেট','bank'=>'ব্যাংক','credit'=>'ক্রেডিট']; $colors = ['cash'=>'success','bkash'=>'danger','nagad'=>'warning','rocket'=>'secondary','bank'=>'primary','credit'=>'dark']; @endphp
{{ $labels[$pm->method] ?? $pm->method }} {{ $pm->count }}টি
৳{{ number_format($pm->total, 0) }}
@endforeach
@else

কোনো পেমেন্ট নেই।

@endif
{{-- Top Products --}}
সিলিন্ডার বিক্রয় (টাইপ অনুযায়ী)
@forelse($topProducts as $prod) @empty @endforelse
টাইপপরিমাণমোট
{{ $prod->name }} {{ $prod->total_qty }} ৳{{ number_format($prod->total_amount, 0) }}
কোনো ডেটা নেই।
{{-- Top Customers --}}
শীর্ষ গ্রাহক
@forelse($topCustomers as $i => $tc) @empty @endforelse
#গ্রাহকঅর্ডারমোট ক্রয়
@if($i < 3) {{ $i+1 }} @else {{ $i+1 }} @endif {{ $tc->customer?->name }} {{ $tc->customer?->phone }} {{ $tc->order_count }} ৳{{ number_format($tc->total, 0) }}
কোনো ডেটা নেই।
{{-- Orders Table --}}
অর্ডার তালিকা
@forelse($orders as $order) @empty @endforelse
অর্ডার নংগ্রাহকমোটপেমেন্টস্ট্যাটাসতারিখ
{{ $order->order_number }} {{ $order->customer->name }} ৳{{ number_format($order->total_amount, 0) }} {{ $order->payment_status_label }} {{ $order->status_label }} {{ $order->created_at->format('d M Y') }}
কোনো অর্ডার নেই।
@if($orders->hasPages()) @endif
@endsection @push('scripts') @endpush