@php $bulan = ['','Januari','Februari','Maret','April','Mei','Juni','Juli','Agustus','September','Oktober','November','Desember']; @endphp
{{ csrf_field() }} @php // print_r($data);die(); @endphp
PENDING
Status transaksi Anda :
Sedang menunggu konfirmasi pembayaran
@if(isset($data['admin']))
{{ strtoupper($data['user']['name']) }}
{{ $data['user']['phone'] }}
@endif
{{ $data['outlet']['outlet_name'] }}
{{ date('d', strtotime($data['transaction_date'])) }} {{ $bulan[date('n', strtotime($data['transaction_date']))] }} {{ date('Y', 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)
{{ number_format($data['transaction_subtotal'], 0, ',', '.') }}
@if($data['transaction_tax'] > 0)
Tax
{{ number_format($data['transaction_tax'], 0, ',', '.') }}
@endif @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'])
{{ number_format($data['transaction_shipment_go_send'], 0, ',', '.') }}
{{ number_format($data['transaction_shipment'], 0, ',', '.') }}
@else
{{ number_format($data['transaction_shipment'], 0, ',', '.') }}
@endif @endif @endif @if(isset($data['balance']))
Kenangan Points
- {{ number_format(abs($data['balance']), 0, ',', '.') }}
@endif

Total Pembayaran
@if(isset($data['balance']))
{{ number_format(($data['transaction_grandtotal'] - $data['balance']), 0, ',', '.') }}
@else
{{ number_format($data['transaction_grandtotal'], 0, ',', '.') }}
@endif
Metode Pembayaran
@if(count($data['data_payment']) > 1) @foreach($data['data_payment'] as $pay) @if(isset($pay['type']) && $pay['type'] == 'Midtrans') @if(isset($pay['payment_type']))
{{ ucwords(str_replace('_', ' ', $pay['payment_type'])) }}
@endif @if(isset($pay['bank']))
{{ ucwords(str_replace('_', ' ', $pay['bank'])) }}
@endif @if(!isset($pay['bank']) && !isset($pay['payment_type']))
Online Payment
@endif @elseif(isset($pay['type']) && $pay['type'] == 'Ovo')
Ovo
@endif @endforeach @else
@if ($data['trasaction_payment_type'] == 'Balance') Kenangan Points @elseif ($data['trasaction_payment_type'] == 'Midtrans') @if(isset($data['data_payment'][0]['payment_type'])) {{ ucwords(str_replace('_', ' ', $data['data_payment'][0]['payment_type'])) }} @else Online Payment @endif @elseif ($data['trasaction_payment_type'] == 'Manual') Transfer Bank @elseif ($data['trasaction_payment_type'] == 'Ovo') Ovo @elseif ($data['trasaction_payment_type'] == 'Offline') @if(isset($data['data_payment'][0]['payment_bank'])) {{$data['data_payment'][0]['payment_bank']}} @else TUNAI @endif @endif
@if ($data['trasaction_payment_type'] == 'Offline') SELESAI @else @endif
@endif @if (isset($data['payment']['bank']))
{{ $data['payment']['bank'] }}
@endif @if (isset($data['payment']['payment_method']))
{{ $data['payment']['payment_method'] }}
@endif @if(isset($data['data_payment'][0]['bank']))
{{ ucwords(str_replace('_', ' ', $data['data_payment'][0]['bank'])) }}
@endif
Status Pesanan
@php $top = 5; $bg = true; @endphp
Sedang menunggu konfirmasi pembayaran
{{ csrf_field() }} @if(isset($data['detail']['pickup_by']) && $data['detail']['pickup_by'] == 'GO-SEND') @endif