@php $bulan = ['','Januari','Februari','Maret','April','Mei','Juni','Juli','Agustus','September','Oktober','November','Desember']; @endphp
{{ $data['outlet']['outlet_name'] }}
{{ $data['outlet']['outlet_address'] }}
@if ($data['trasaction_type'] != 'Offline' && !isset($data['delivery_info']))
Kode Pickup Anda
@if(isset($data['detail']['order_id_qrcode']))
{{ $data['detail']['order_id'] }}
@endif @endif
@if(isset($data['detail']['order_id_qrcode']))
@if ($data['detail']['pickup_type'] == 'set time') Pesanan Anda akan siap pada @else Pesanan Anda akan diproses pada @endif
{{ date('d', strtotime($data['transaction_date'])) }} {{ $bulan[date('n', strtotime($data['transaction_date']))] }} {{ date('Y', strtotime($data['transaction_date'])) }}
@if(isset($data['delivery_info']))
DELIVERY
@if(isset($data['delivery_info']['delivery_address'])) {{ $data['delivery_info']['delivery_address'] }} @endif
@else
PICK UP
@if ($data['detail']['pickup_type'] == 'set time') {{ date('H:i', strtotime($data['detail']['pickup_at'])) }} @elseif($data['detail']['pickup_type'] == 'at arrival') SAAT KEDATANGAN @else SAAT INI @endif
@endif
@endif
Transaksi
{{ date('d', strtotime($data['transaction_date'])) }} {{ $bulan[date('n', strtotime($data['transaction_date']))] }} {{ date('Y H:i', strtotime($data['transaction_date'])) }}
{{ $data['transaction_receipt_number'] }}
@foreach ($data['product_transaction'] as $trx)
{{$trx['brand']}}
@foreach ($trx['product'] as $prod)
{{$prod['transaction_product_qty']}}x
{{$prod['product']['product_name']}}
{{ $prod['transaction_product_subtotal'] }}
@if(isset($prod['product']['product_modifiers'])) @foreach($prod['product']['product_modifiers'] as $mod)
{{$mod['product_modifier_name']}}
@endforeach @endif @if(isset($prod['transaction_product_note']))
{{$prod['transaction_product_note']}}
@endif @endforeach @if ($trx != end($data['product_transaction']))

@endif @endforeach
Detail Pembayaran
@foreach($data['payment_detail'] as $dt)
{{$dt['name']}} ({{$dt['desc']}})
@if(is_numeric(strpos(strtolower($dt['name']), 'discount')))
{{ $dt['amount'] }}
@else
{{ $dt['amount'] }}
@endif
@endforeach
Grand Total
{{$data['transaction_grandtotal']}}
@if(isset($data['transaction_payment']))
Metode Pembayaran
@foreach($data['transaction_payment'] as $dt) @if($dt['name'] == 'Balance')
Jiwa Poin
{{ $dt['amount'] }}
@else
{{$dt['name']}}
{{ $dt['amount'] }}
@endif @endforeach
@endif @if ($data['trasaction_type'] != 'Offline')
Status Pesanan