@php $no = 1; @endphp @foreach($transaction as $data) @endforeach
No Code Transaction Date Name Email Brand Qty Price Total Net Payment Bank Payment Status CC Reference ID Promo Harga Awal Harga Current Harga Promo
{{ $no++ }} {{ $data->code }} {{ date('d-m-Y', strtotime($data->order_date)) }} {{ $data->first_name }} {{ $data->last_name }} {{ $data->email }} {{ $data->name }} {{ $data->qty }} {{ $data->price }} {{ $data->qty * $data->price }} @if($data->sender_bank) {{ $data->sender_bank }} @elseif($data->payment_response) @php $payment_response = json_decode($data->payment_response, true); @endphp @if(isset($payment_response['payment_channel'])) {{ $payment_response['payment_channel'] }} @endif @endif {{ $data->payment_status }} @if($data->sender_bank == 'CARDS') {{ $data->payment_session_reference }} {{-- @php $payment_request = json_decode($data->payment_request, true); $referenceId = $payment_request['data']['reference_id']; @endphp {{ $referenceId }} --}} @endif @if ($data->flash_sale) Flashsale @else ($data->flash_sale) @endif {{ $data->harga_awal }} {{ $data->harga_current }} {{ $data->harga_promo }}