@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'] }}
@if(!empty($data['product_bundling_transaction']))
{{$data['name_brand_bundling']}}
@foreach ($data['product_bundling_transaction']??[] as $trx)
{{$trx['bundling_qty']}}x
{{$trx['bundling_name']}}
{{$trx['bundling_subtotal']}}
@foreach ($trx['product'] as $prod)
{{$prod['product_name']}} {{$prod['product_qty']}}x