@foreach ($datas as $data)
{{--
@Author: Anwarul
@Date: 2025-08-13 15:10:28
@LastEditors: Anwarul
@LastEditTime: 2025-08-17 12:21:40
@Description: Innova IT
--}}
|
{{ $data->transaction_number }}
|
{{ $data->created_at ? $data->created_at->format('Y-m-d H:i') : '' }}
|
@php
$shipping = json_decode($data->shipping_info, true) ?? [];
@endphp
@if($data->user->first_name != null)
{{ trim($data->user->first_name.' '.$data->user->last_name) }}
{{ $data->user->email }}
@else
@php
$shipName = '';
if(!empty($shipping)){
foreach(['ship_first_name','ship_first','name','ship_name'] as $key){
if(!empty($shipping[$key])){ $shipName = $shipping[$key]; break; }
}
}
$shipEmail = $shipping['ship_email'] ?? '';
@endphp
{{ $shipName !== '' ? $shipName : 'Guest User' }}
{{ $shipEmail !== '' ? $shipEmail : 'No email' }}
@endif
|
@if($data->user && $data->user->phone)
{{ $data->user->phone }}
@elseif(!empty($shipping['ship_phone']))
{{ $shipping['ship_phone'] }}
@else
N/A
@endif
|
@if ($setting->currency_direction == 1)
{{ '৳' }}{{ PriceHelper::OrderTotal($data) }}
@else
{{ PriceHelper::OrderTotal($data) }}{{ '৳' }}
@endif
|
@if($data->payment_method)
{{ $data->payment_method }}
@else
N/A
@endif
|
@if($data->tranaction && $data->tranaction->txn_id)
{{ $data->tranaction->txn_id }}
@elseif($data->tranaction && $data->tranaction->id)
{{ $data->tranaction->id }}
@elseif($data->txnid)
{{ $data->txnid }}
@else
N/A
@endif
|
|
|
@if($data->pathao_consignment_id)
Loading...
ID: {{ $data->pathao_consignment_id }}
@else
Not Sent
@endif
|
|
@endforeach