{{ __('Over All Report') }}

Comprehensive sales and inventory overview

Reset

Offline Orders

Restaurant Orders

@if ($productId || $fromDate != now()->format('Y-m-d') || $toDate != now()->format('Y-m-d'))

Filtered Total Sale

৳{{ number_format($filteredOfflineTotal ?? 0, 2) }}

@if ($productId) @php $selectedProduct = $allProducts->firstWhere('id', $productId); @endphp @if ($selectedProduct) Product: {{ $selectedProduct->name }} @endif @endif ({{ \Carbon\Carbon::parse($fromDate)->format('d M Y') }} - {{ \Carbon\Carbon::parse($toDate)->format('d M Y') }})

@endif

Today's Total Sale

৳{{ number_format($todayOfflineTotal, 2) }}

View Order List

Online Orders

Web Orders

@if ($productId || $fromDate != now()->format('Y-m-d') || $toDate != now()->format('Y-m-d'))

Filtered Total Sale

৳{{ number_format($filteredOnlineTotal ?? 0, 2) }}

@if ($productId) @php $selectedProduct = $allProducts->firstWhere('id', $productId); @endphp @if ($selectedProduct) Product: {{ $selectedProduct->name }} @endif @endif ({{ \Carbon\Carbon::parse($fromDate)->format('d M Y') }} - {{ \Carbon\Carbon::parse($toDate)->format('d M Y') }})

@endif

Today's Total Sale

৳{{ number_format($todayOnlineTotal, 2) }}

View Online Order List

Purchases Inventory Product Report

Today wise purchase details with filter

@if ($fromDate != now()->format('Y-m-d') || $toDate != now()->format('Y-m-d'))

Filtered

৳{{ number_format($filteredPurchaseTotal ?? 0, 2) }}

@endif

Today

৳{{ number_format($todayPurchaseTotal ?? 0, 2) }}

@if (count($purchaseDetails) > 0)
@foreach ($purchaseDetails as $purchaseData)
#{{ $purchaseData['purchase']->id ?? 'N/A' }} @if ($purchaseData['purchase']->supplier) {{ $purchaseData['purchase']->supplier->name ?? 'N/A' }} @endif {{ \Carbon\Carbon::parse($purchaseData['purchase']->date ?? $purchaseData['purchase']->created_at)->format('d M Y') }}
@if ($purchaseData['purchase']->description)

{{ $purchaseData['purchase']->description }}

@endif

Total

৳{{ number_format($purchaseData['total'] ?? ($purchaseData['purchase']->price ?? 0), 2) }}

@foreach ($purchaseData['details'] as $detail) {{ number_format($detail->qty ?? 0, 2) }} @if ($product && $product->unit) {{ $product->unit }} @endif @endforeach
Product Qty Price Total
@php $product = \App\Models\Inventoryproduct::find($detail->name); @endphp

{{ $product->name ?? 'N/A' }}

@if ($product && $product->code)

Code: {{ $product->code }}

@endif
৳{{ number_format($detail->price ?? 0, 2) }} ৳{{ number_format(($detail->qty ?? 0) * ($detail->price ?? 0), 2) }}
@endforeach
@else

No purchases found

No purchases found for the selected date range.

@endif

Income Report

Credit Voucher (Today wise with filter)

@if ($fromDate != now()->format('Y-m-d') || $toDate != now()->format('Y-m-d'))

Filtered

৳{{ number_format($filteredIncomeTotal ?? 0, 2) }}

@endif

Today

৳{{ number_format($todayIncomeTotal ?? 0, 2) }}

@if (count($incomes) > 0)
@foreach ($incomes as $incomeData)
#{{ $incomeData['creditvoucher']->id ?? 'N/A' }} @if ($incomeData['party']) {{ $incomeData['party']->name ?? 'N/A' }} @endif

{{ \Carbon\Carbon::parse($incomeData['creditvoucher']->date ?? $incomeData['creditvoucher']->created_at)->format('d M Y') }}

@if ($incomeData['creditvoucher']->reference)

Ref: {{ $incomeData['creditvoucher']->reference }}

@endif

৳{{ number_format($incomeData['creditvoucher']->total ?? 0, 2) }}

@if (count($incomeData['details']) > 0)
@foreach ($incomeData['details'] as $detail)
{{ $detail->description ?? 'N/A' }} ৳{{ number_format($detail->paid ?? 0, 2) }}
@endforeach
@endif
@endforeach
@else

No income records found

@endif

Expense Report

Expenses (Today wise with filter)

@if ($fromDate != now()->format('Y-m-d') || $toDate != now()->format('Y-m-d'))

Filtered

৳{{ number_format($filteredExpenseTotal ?? 0, 2) }}

@endif

Today

৳{{ number_format($todayExpenseTotal ?? 0, 2) }}

@if (count($expenses) > 0)
@foreach ($expenses as $expenseData)
#{{ $expenseData['expense']->id ?? 'N/A' }} @if ($expenseData['expense_head']) {{ $expenseData['expense_head']->name ?? 'N/A' }} @endif

{{ $expenseData['expense']->details ?? 'N/A' }}

{{ \Carbon\Carbon::parse($expenseData['expense']->created_at)->format('d M Y') }}

@if ($expenseData['account'])

{{ $expenseData['account']->account_name ?? 'N/A' }}

@endif

৳{{ number_format($expenseData['expense']->price ?? 0, 2) }}

@endforeach
@else

No expense records found

@endif
@if ($topSell && count($topSellingProducts) > 0)

Top {{ $topSell }} Selling Products

@foreach ($topSellingProducts as $index => $item) @endforeach
Rank Product Name Total Quantity Total Revenue
{{ $index + 1 }} {{ $item['product']->name ?? 'N/A' }} {{ number_format($item['total_qty']) }} ৳{{ number_format($item['total_revenue'], 2) }}
@endif

Stock Out Report

Products with zero or negative available quantity

(This report is independent of filters and shows all stock out items)

{{ count($stockOutProducts) }} Items
@if (count($stockOutProducts) > 0)
@foreach ($stockOutProducts as $product)

{{ $product->name }}

@if ($product->code)

Code: {{ $product->code }}

@endif
OUT
@if ($product->categoryRelation)
{{ $product->categoryRelation->name ?? 'N/A' }}
@endif @if ($product->unit)
Unit: {{ $product->unit }}
@endif @if (isset($product->total_stockout_qty) && $product->total_stockout_qty > 0)
Stock Out: {{ number_format($product->total_stockout_qty, 2) }}
@endif
Available: {{ number_format($product->available_qty ?? 0, 2) }}
@if ($product->price)
Price: ৳{{ number_format($product->price, 2) }}
@endif
@endforeach
@else

No stock out items found.

@endif