|
|
{{ $invoice->no }} |
{{ $invoice->created_at->format('d/m/y') }} |
{{ $invoice->created_at->format('H:i') }} |
{{ $invoice->user->name }} |
{{ $invoice->sales_name }} |
{{ $invoice->qty }} |
{{ $invoice->must_paid }} |
@if ($invoice->payment === 'Multi')
@php
$totalCash += $invoice->cash;
$totalTransfer += $invoice->transfer;
$totalSubtotalCard += $invoice->transfer;
@endphp
{{ $invoice->cash }} |
{{ $invoice->transfer }} |
@elseif ($invoice->payment === 'Cash')
@php
$totalCash += $invoice->subtotal; // Add subtotal for Cash and Qris to totalCash
$totalSubtotalQrisCash += $invoice->subtotal;
@endphp
{{ $invoice->subtotal }} |
0 |
@elseif ($invoice->payment === 'Qris')
@php
$totalSubtotalCard += $invoice->subtotal;
@endphp
0 |
{{ $invoice->subtotal }} |
@elseif ($invoice->payment === 'Card')
@php
$totalSubtotalCard += $invoice->subtotal;
@endphp
0 |
{{ $invoice->subtotal }} |
{{-- mz --}}
@else
0 |
0 |
@endif
@endforeach