{{ csrf_field() }} @php // print_r($data);die(); @endphp
{{ $data['outlet']['outlet_name'] }}
{{ date('l', strtotime($data['transaction_date'])) }}, {{ date('d F Y H:i', strtotime($data['transaction_date'])) }}
{{ $data['transaction_receipt_number'] }}
YOUR TRANSACTION

@foreach ($data['product_transaction'] as $key => $pro)
{{ $pro['product']['product_name'] }}
IDR {{ str_replace(',', '.', number_format($pro['transaction_product_subtotal'])) }}
@if (isset($pro['transaction_product_note'])) ({{ $pro['transaction_product_note'] }}) @endif
{{ $pro['transaction_product_qty'] }} x IDR {{ str_replace(',', '.', number_format($pro['transaction_product_price'])) }}
@endforeach
@foreach ($data['order_label_v2'] as $key => $label)
{{ $label }}
@if($label == 'Discount') - @endif IDR {{ str_replace(',', '.', number_format($data[$data['order_v2'][$key]])) }}
@endforeach
Total Price
IDR {{ str_replace(',', '.', number_format($data['transaction_grandtotal'])) }}
@if ($data['trasaction_payment_type'] == 'Balance')
Your Balance
IDR {{ str_replace(',', '.', number_format($data['balance'])) }}
Total Payment
IDR {{ str_replace(',', '.', number_format($data['transaction_grandtotal'] + $data['balance'])) }}
@endif
@if ($data['trasaction_type'] == 'Delivery')
Deliver to

{{ $data['detail']['destination_name'] }} ({{ $data['detail']['destination_phone'] }})
{!! $data['detail']['destination_address'] !!}
@if (isset($data['detail']['destination_description']))
Description :
{{ $data['detail']['destination_description'] }}
@endif

Delivery Courier
{{ $data['detail']['shipment_courier'] }} ({{ $data['detail']['shipment_courier_service'] }})
@endif @if ($data['transaction_payment_status'] == 'Completed'|| $data['transaction_payment_status'] == 'Paid')
Payment Method

@if ($data['trasaction_payment_type'] == 'Balance') BALANCE @endif @if ($data['trasaction_payment_type'] == 'Midtrans') ONLINE PAYMENT @endif @if ($data['trasaction_payment_type'] == 'Manual') BANK TRANSFER @endif
IDR @if ($data['trasaction_payment_type'] == 'Balance') {{ str_replace(',', '.', number_format(abs($data['balance']))) }} @else {{ str_replace(',', '.', number_format(abs($data['transaction_grandtotal']))) }} @endif
@if (isset($data['payment']['payment_type']))
{{ $data['payment']['payment_type'] }}
@endif @if (isset($data['payment']['payment_method']))
{{ $data['payment']['payment_method'] }}
@endif
@endif
Payment Status

{{ $data['transaction_payment_status'] }}
@if ($data['transaction_payment_status'] == 'Completed') Your payment completed @endif @if ($data['transaction_payment_status'] == 'Pending') Please pay your order to continue process order @endif @if ($data['transaction_payment_status'] == 'Paid') Please wait for admin confirmation @endif @if ($data['transaction_payment_status'] == 'Cancelled') Your payment cancelled @endif