@php $totalCash = 0; $totalTransfer = 0; $totalSubtotalQrisCash = 0; $totalSubtotalCard = 0; @endphp @foreach ($invoices as $invoice) @if ($invoice->payment === 'Multi') @php $totalCash += $invoice->cash; $totalSubtotalCard += $invoice->transfer; @endphp @elseif ($invoice->payment === 'Cash') @php $totalCash += $invoice->grandtotal; @endphp @elseif ($invoice->payment === 'Qris') @php $totalSubtotalCard += $invoice->grandtotal; @endphp @elseif ($invoice->payment === 'Card') @php $totalSubtotalCard += $invoice->grandtotal; @endphp @else {{-- mz --}} @endif @endforeach
Invoice Tanggal Jam User Staff Qty Sub Total Discount Grand Total Cash Card Sync #
{{ $invoice->created_at->format('d/m/y') }} {{ $invoice->created_at->format('H:i') }} {{ $invoice->user->name }} {{ $invoice->sales_name }} {{ $invoice->qty }} Rp. {{ number_format($invoice->subtotal, 0, ',', '.') }} Rp. {{ number_format($invoice->discount, 0, ',', '.') }} Rp. {{ number_format($invoice->grandtotal, 0, ',', '.') }}Rp. {{ number_format($invoice->cash, 0, ',', '.') }} Rp. {{ number_format($invoice->transfer, 0, ',', '.') }}Rp. {{ number_format($invoice->grandtotal, 0, ',', '.') }} Rp. 0Rp. 0 Rp. {{ number_format($invoice->grandtotal, 0, ',', '.') }}Rp. 0 Rp. {{ number_format($invoice->grandtotal, 0, ',', '.') }}Rp. 0 Rp. 0 @if($invoice->sync == 'N') @else @endif
Total Struk Qty Cash Card Sub Total Discount Grand Total
Total {{ $invoices->count() }} {{ $invoices->sum('qty') }} Rp. {{ number_format($totalCash, 0, ',', '.') }} Rp. {{ number_format($totalSubtotalCard, 0, ',', '.') }} Rp. {{ number_format($invoices->sum('subtotal'), 0, ',', '.') }} Rp. {{ number_format($invoices->sum('discount'), 0, ',', '.') }} Rp. {{ number_format($invoices->sum('grandtotal'), 0, ',', '.') }}
@foreach ($invoices as $invoice) @endforeach
@livewireScripts