|
|
{{ \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->subtotal ?? 0, 0, ',', '.') }} |
Rp. {{ number_format($invoice->disc_total, 0, ',', '.') }} |
@if ($invoice->cashback !== 'N')
Rp. {{ number_format($invoice->value, 0, ',', '.') }} |
@else
Rp. 0 |
@endif
Rp. {{ number_format($invoice->grandtotal, 0, ',', '.') }} |
@if ($invoice->payment === 'Multi')
@php
$totalCash += $invoice->cash;
$totalSubtotalCard += $invoice->transfer;
@endphp
Rp. {{ number_format($invoice->cash, 0, ',', '.') }} |
Rp. {{ number_format($invoice->transfer, 0, ',', '.') }} |
@elseif ($invoice->payment === 'Cash')
@php
$totalCash += $invoice->grandtotal;
@endphp
Rp. {{ number_format($invoice->grandtotal, 0, ',', '.') }} |
Rp. 0 |
@elseif ($invoice->payment === 'Qris')
@php
$totalSubtotalCard += $invoice->grandtotal;
@endphp
Rp. 0 |
Rp. {{ number_format($invoice->grandtotal, 0, ',', '.') }} |
@elseif ($invoice->payment === 'Card')
@php
$totalSubtotalCard += $invoice->grandtotal;
@endphp
Rp. 0 |
Rp. {{ number_format($invoice->grandtotal, 0, ',', '.') }} |
@else
Rp. 0 |
Rp. 0 |
@endif
|