Sales Bills Report

Total Bills: {{ $rows->count() }}     Generated: {{ now()->format('d-m-Y h:i A') }}
@forelse($rows as $i => $row) @php $billedByLabel = '-'; /* |-------------------------------------------------------------------------- | Billed By |-------------------------------------------------------------------------- */ if ( in_array($row->billed_in, [ 'branch', 'branch_kot_web' ]) ) { $billedByLabel = $row->branch?->branch_name ?? '-'; } elseif ( in_array($row->billed_in, [ 'billing', 'billing_kot_web', 'app' ]) ) { $billedByLabel = $row->billingCounter?->counter_name ?? '-'; } @endphp {{-- S.No --}} {{-- Date --}} {{-- Daily Serial Number --}} {{-- Order ID --}} {{-- Customer Name --}} {{-- Customer Phone --}} {{-- Billed By --}} {{-- Billed In --}} {{-- Branch --}} {{-- Staff --}} {{-- Payment --}} {{-- Total --}} {{-- Status --}} @empty @endforelse @if($rows->count() > 0) @endif
S.No Date Serial No Order ID Customer Name Customer Phone Billed By Billed In Branch Name Staff Payment Total Status
{{ $i + 1 }} {{ $row->created_at?->format('d-m-Y h:i A') ?? '-' }} {{ $row->daily_serial_number ?? '-' }} {{ $row->order_id ?? '-' }} {{ $row->customer_name ?: '-' }} {{ $row->customer_phone ?: '-' }} {{ $billedByLabel }} {{ $row->billed_in ? ucwords(str_replace('_', ' ', $row->billed_in)) : '-' }} {{ $row->branch?->branch_name ?? '-' }} {{ $row->staff?->name ?? '-' }} {{ $row->payment_mode ? ucfirst($row->payment_mode) : '-' }} ₹ {{ number_format((float) $row->total, 2) }} {{ $row->status ? ucfirst($row->status) : '-' }}
No sales bills found.
Total ₹ {{ number_format((float) $rows->sum('total'), 2) }}