@if($reportType === 'detailed')
Items Sold
| Product |
Category |
Qty |
S.Price |
Total |
@forelse($itemRows as $item)
| {{ $item->product_name }} |
{{ $item->category_name }} |
{{ number_format($item->quantity, 2) }} |
{{ \App\Models\SystemSetting::formatMoney($item->unit_price) }} |
{{ \App\Models\SystemSetting::formatMoney($item->total_amount) }} |
@empty
| No item sales found. |
@endforelse
| Totals |
{{ number_format($itemRows->sum('quantity'), 2) }} |
|
{{ \App\Models\SystemSetting::formatMoney($itemRows->sum('total_amount')) }} |
@else
Total Sales
{{ \App\Models\SystemSetting::formatMoney($totals->total_sales ?? 0) }}
Cleared Sales
{{ \App\Models\SystemSetting::formatMoney($totals->cleared_sales ?? 0) }}
Uncleared Bills
{{ \App\Models\SystemSetting::formatMoney($totals->uncleared_sales ?? 0) }}
Expenses
{{ \App\Models\SystemSetting::formatMoney($expensesTotal) }}
Opening Cash
{{ \App\Models\SystemSetting::formatMoney($shift->opening_cash) }}
Expected Cash
{{ \App\Models\SystemSetting::formatMoney($expectedCash) }}
Till Collections
{{ \App\Models\SystemSetting::formatMoney($tillCollections) }}
Counted Cash
{{ \App\Models\SystemSetting::formatMoney($shift->closing_cash ?? 0) }}
Difference
{{ \App\Models\SystemSetting::formatMoney($cashDifference) }}
Payment Methods
| Payment Method |
Entries |
Amount |
@forelse($paymentRows as $payment)
| {{ $payment->paymentMethod?->name ?: '-' }} |
{{ number_format($payment->entries) }} |
{{ \App\Models\SystemSetting::formatMoney($payment->total_amount) }} |
@empty
| No payments found. |
@endforelse
| Total |
{{ \App\Models\SystemSetting::formatMoney($paymentRows->sum('total_amount')) }} |
@endif
@endsection