@extends('layouts.app') @section('content') @php $filtersOpen = collect($filters) ->except(['date_range', 'entries', 'report_type', 'sale_type']) ->filter() ->isNotEmpty() || (($filters['date_range'] ?? 'current_shift') !== 'current_shift') || ((string) ($filters['entries'] ?? $entries) !== '10') || (($filters['report_type'] ?? 'summarized') !== 'summarized') || (($filters['sale_type'] ?? 'all') !== 'all'); @endphp
| Action | Date | Invoice No | Sale Type | Customer Name | Product | Category | Qty | Unit Price | Discount | Line Total | Payment Status | Payment Method | Added By |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @include('sales.partials.action_dropdown', ['sale' => $sale, 'canClearSale' => $canClearSale]) | {{ $sale?->sale_date?->format('Y-m-d H:i') }} |
@if($canClearSale)
@else
{{ $sale?->invoice_no }}
@endif
@if($mergeLabel)
{{ $mergeLabel }}
@endif
|
{{ ucfirst($sale?->sale_mode ?? '-') }} | {{ $sale?->customer_name ?: '-' }} | {{ $item->product_name }} | {{ $item->product?->category?->name ?: '-' }} | {{ number_format($item->quantity, 2) }} | {{ \App\Models\SystemSetting::formatMoney($item->unit_price) }} | {{ \App\Models\SystemSetting::formatMoney($item->discount_amount) }} | {{ \App\Models\SystemSetting::formatMoney($item->line_total) }} | {{ $paymentStatusLabel }} | {{ $paymentMethodsText ?: '-' }} | {{ $sale?->user?->name ?: '-' }} |
| No sale items found. | |||||||||||||
| Filtered Totals | {{ number_format($totalItems, 2) }} | {{ \App\Models\SystemSetting::formatMoney($totals->total_amount) }} | {{ number_format($totals->entries) }} sales | ||||||||||
| Action | Date | Invoice No | Customer Name | Payment Status | Payment Method | Total Amount | Total Paid | Pending Balance | Total Items | LPO No | Description | Added By | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @if($canClearSale) @endif | @include('sales.partials.action_dropdown', ['sale' => $sale, 'canClearSale' => $canClearSale]) | {{ $sale->sale_date?->format('Y-m-d H:i') }} |
@if($canClearSale)
@else
{{ $sale->invoice_no }}
@endif
@if($mergeLabel)
{{ $mergeLabel }}
@endif
|
{{ $sale->customer_name ?: '-' }} | {{ $paymentStatusLabel }} | {{ $paymentMethodsText ?: '-' }} | {{ \App\Models\SystemSetting::formatMoney($sale->total_amount) }} | {{ \App\Models\SystemSetting::formatMoney($sale->paid_amount) }} | {{ \App\Models\SystemSetting::formatMoney($sale->balance_amount) }} | {{ number_format($sale->items->sum('quantity'), 2) }} | {{ $sale->lpo_no ?: '-' }} | {{ $sale->description ?: '-' }} | {{ $sale->user?->name ?: '-' }} |
| No sales found. | |||||||||||||
| Filtered Totals | {{ \App\Models\SystemSetting::formatMoney($totals->total_amount) }} | {{ \App\Models\SystemSetting::formatMoney($totals->total_paid) }} | {{ \App\Models\SystemSetting::formatMoney($totals->pending_balance) }} | {{ number_format($totalItems, 2) }} | {{ number_format($totals->entries) }} entries | ||||||||
| Payment Method | Entries | Amount |
|---|---|---|
| {{ $payment->paymentMethod?->name ?? 'Payment' }} | {{ number_format($payment->entries) }} | {{ \App\Models\SystemSetting::formatMoney($payment->total_amount) }} |
| Sales Person | Total Sales | Cleared Sales | Uncleared Sales |
|---|---|---|---|
| {{ $person->user?->name ?: '-' }} | {{ \App\Models\SystemSetting::formatMoney($person->total_sales) }} | {{ \App\Models\SystemSetting::formatMoney($person->cleared_sales) }} | {{ \App\Models\SystemSetting::formatMoney($person->uncleared_sales) }} |
| No sales person records found. | |||