{{ csrf_field() }}
{{ $data['detail']['outlet']['outlet_name'] }}
{{ date('d F Y H:i', strtotime($data['detail']['transaction_date'])) }}
#{{ $data['detail']['transaction_receipt_number'] }}

Transaksi Anda

@if($data['balance'] > 0)
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
@else
@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'])) }}
@endif