{{ csrf_field() }} @if ($data['trasaction_payment_type'] != 'Offline')
@if($data['detail']['reject_at'] != null) Pesanan Anda Ditolak @elseif($data['detail']['taken_at'] != null) Pesanan Sudah Diambil @elseif($data['detail']['ready_at'] != null) Pesanan Anda Sudah Siap @elseif($data['detail']['receive_at'] != null) Pesanan Diterima @else Pesanan Anda Menunggu Konfirmasi @endif
@if(isset($data['detail']['pickup_by']) && $data['detail']['pickup_by'] == 'GO-SEND')
Detail Pengiriman
GO-SEND
{{ $data['detail']['transaction_pickup_go_send']['destination_name'] }}
{{ $data['detail']['transaction_pickup_go_send']['destination_phone'] }}
{{ $data['detail']['transaction_pickup_go_send']['destination_address'] }}
Map
@else
Kode Pickup Anda
{{ $data['detail']['order_id'] }}
{{ $data['outlet']['outlet_name'] }}
{{ $data['outlet']['outlet_address'] }}
Pesanan Anda akan diproses pada
{{ date('d F Y', strtotime($data['transaction_date'])) }}
@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
{{ $data['outlet']['outlet_name'] }}
{{ date('d F Y H:i', strtotime($data['transaction_date'])) }}
#{{ $data['transaction_receipt_number'] }}
Transaksi Anda
@php $countQty = 0; @endphp @foreach ($data['product_transaction'] as $key => $val)
{{ $val['product']['product_name'] }}
{{ str_replace(',', '.', number_format($val['transaction_product_subtotal'])) }}
{{ $val['transaction_product_qty'] }} x {{ str_replace(',', '.', number_format($val['transaction_product_price'])) }}
@if (isset($val['transaction_product_note'])) {{ $val['transaction_product_note'] }} @else - @endif
@php $countQty += $val['transaction_product_qty']; @endphp @endforeach

SubTotal ({{$countQty}} item)
{{ str_replace(',', '.', number_format($data['transaction_subtotal'])) }}
Detail Pembayaran
SubTotal ({{$countQty}} item)
{{ str_replace(',', '.', number_format($data['transaction_subtotal'])) }}
Tax
{{ str_replace(',', '.', number_format($data['transaction_tax'])) }}
@if(isset($data['detail']['pickup_by']) && $data['detail']['pickup_by'] == 'GO-SEND')
Ongkos Kirim
@if($data['transaction_is_free'] == '1')
FREE
@else @if($data['transaction_shipment_go_send'] != $data['transaction_shipment'])
{{ str_replace(',', '.', number_format($data['transaction_shipment_go_send'])) }}
{{ str_replace(',', '.', number_format($data['transaction_shipment'])) }}
@else
{{ str_replace(',', '.', number_format($data['transaction_shipment'])) }}
@endif @endif @endif @if($data['transaction_discount'] > 0)
Diskon
- {{ str_replace(',', '.', number_format($data['transaction_discount'])) }}
@endif @if(isset($data['balance']))
{{env('POINT_NAME', 'Points')}}
- {{ str_replace(',', '.', number_format(abs($data['balance']))) }}
@endif

Total Pembayaran
@if(isset($data['balance']))
Rp {{ str_replace(',', '.', number_format($data['transaction_grandtotal'] - $data['balance'])) }}
@else
Rp {{ str_replace(',', '.', number_format($data['transaction_grandtotal'])) }}
@endif
@if ($data['transaction_payment_status'] == 'Completed'|| $data['transaction_payment_status'] == 'Paid')
Metode Pembayaran
@if ($data['trasaction_payment_type'] == 'Balance') {{env('POINT_NAME', 'Points')}} @elseif ($data['trasaction_payment_type'] == 'Midtrans') @if(isset($data['payment']['payment_type'])) {{ ucwords(str_replace('_', ' ', $data['payment']['payment_type'])) }} @else Online Payment @endif @elseif ($data['trasaction_payment_type'] == 'Manual') Transfer Bank @elseif ($data['trasaction_payment_type'] == 'Offline') TUNAI @endif
@if ($data['trasaction_payment_type'] == 'Offline') SELESAI @else LUNAS @endif
@if (isset($data['payment']['bank']))
{{ $data['payment']['bank'] }}
@endif @if (isset($data['payment']['payment_method']))
{{ $data['payment']['payment_method'] }}
@endif
@endif @if ($data['trasaction_payment_type'] != 'Offline')
Status Pesanan
@php $top = 5; $bg = true; @endphp @if($data['detail']['reject_at'] != null)
Pesanan Anda ditolak
|
|
|
|
|
{{date('d F Y H:i', strtotime($data['detail']['reject_at']))}}
@php $top += 5; $bg = false; @endphp @endif @if($data['detail']['taken_at'] != null)
Pesanan Anda sudah diambil
@php $top += 5; $bg = false; @endphp
|
|
|
|
|
{{date('d F Y H:i', strtotime($data['detail']['taken_at']))}}
@php $top += 5; @endphp @endif @if($data['detail']['ready_at'] != null)
Pesanan Anda sudah siap
@php $top += 5; $bg = false; @endphp
|
|
|
|
|
{{date('d F Y H:i', strtotime($data['detail']['ready_at']))}}
@php $top += 5; @endphp @endif @if($data['detail']['receive_at'] != null)
Pesanan Anda sudah diterima
@php $top += 5; $bg = false; @endphp
|
|
|
|
|
{{date('d F Y H:i', strtotime($data['detail']['receive_at']))}}
@php $top += 5; @endphp @endif
Pesanan Anda Menunggu Konfirmasi
{{date('d F Y H:i', strtotime($data['transaction_date']))}}
@endif @if(isset($data['detail']['pickup_by']) && $data['detail']['pickup_by'] == 'GO-SEND') @endif