| {{ $invoice->no }} |
{{ \Carbon\Carbon::parse($invoice->created_at)->format('d/m/y') }} |
{{ \Carbon\Carbon::parse($invoice->created_at)->format('H:i') }} |
{{ $invoice->users_name }} |
{{ $invoice->sales_name }} |
{{ $invoice->total_qty }} |
Rp.
{{ number_format(($invoice->subtotal ?? 0) < 0 ? 0 : $invoice->subtotal ?? 0, 0, ',', '.') }}
|
Rp. {{ number_format($invoice->disc_total, 0, ',', '.') }} |
Rp.
{{ number_format(($invoice->grandtotal ?? 0) < 0 ? 0 : $invoice->grandtotal ?? 0, 0, ',', '.') }}
|
@if ($invoice->payment === 'Multi')
Rp. {{ number_format($invoice->cash, 0, ',', '.') }} |
Rp. {{ number_format($invoice->transfer, 0, ',', '.') }} |
@elseif ($invoice->payment === 'Cash' || $invoice->payment === 'Qris')
Rp. {{ number_format($invoice->subtotal, 0, ',', '.') }} |
Rp. 0 |
@elseif ($invoice->payment === 'Card')
Rp. 0 |
Rp. {{ number_format($invoice->subtotal, 0, ',', '.') }} |
@else
{{-- mz --}}
Rp. 0 |
Rp. 0 |
@endif
@endforeach