Total Pembayaran
Rp {{ str_replace(',', '.', number_format($data['grand_total'])) }}
{{env('POINT_NAME', 'Points')}}
@if($data['balance'] > 0) +{{ str_replace(',', '.', number_format($data['balance'])) }} points @else {{ str_replace(',', '.', number_format($data['balance'])) }} points @endif
@php $countItem = 0; @endphp
@foreach($data['detail']['product_transaction'] as $productTransaction)
@php $countItem += $productTransaction['transaction_product_qty']; @endphp
@endforeach
Subtotal ({{$countItem}} item)
{{ str_replace(',', '.', number_format($data['detail']['transaction_grandtotal'])) }}
{{env('POINT_NAME', 'Points')}}
@if($data['balance'] > 0) + @endif {{ str_replace(',', '.', number_format($data['balance'])) }}
Total Pembayaran
{{ str_replace(',', '.', number_format($data['grand_total'] + $data['balance'])) }}