| {{ $transaction->created_at->format('d-m-Y H:i') }} |
{{ $transaction->currency ?? '-' }} |
{{ number_format($transaction->amount, 2, ',', '.') }}
|
{{ number_format($transaction->kurs, 2, ',', '.') }}
|
{{ number_format($transaction->total_received, 2, ',', '.') }} |
{{ number_format($transaction->shipping_cost, 2, ',', '.') }} |
@php $total_amount = $transaction->total_received + $transaction->shipping_cost @endphp
@if ($transaction->shipping_cost === null && $transaction->delivery_method === 'delivery')
Waiting |
@else
{{ number_format($total_amount, 2, ',', '.') }}
|
@endif
{{ $transaction->transferAccount->bank_name . ' - ' . $transaction->transferAccount->rekening . ' - ' . $transaction->transferAccount->nama_rekening }}
|
@if (
$transaction->status === 'processing' &&
$transaction->transfer_time == null &&
$transaction->transfer_proof == null)
--:--
@elseif($transaction->transfer_time !== null)
Payment Successful
@else
No Payment
@endif
|
{{ $transaction->delivery_method }} |
{{ Str::limit($transaction->delivery_address, 30, '...') }}
|
@php
$statusDisplay = $transaction->status;
if ($transaction->status == 'processing') {
if ($transaction->transfer_proof) {
$statusDisplay = 'waiting confirmation';
} else {
$statusDisplay = 'waiting payment';
}
}
@endphp
{{ ucfirst($statusDisplay) }} |
{{ ucfirst($transaction->cancel_reason ?? ' - ') }} |
@if ($transaction->status == 'completed')
@endif
@if ($transaction->status == 'pending')
@endif
@if ($transaction->status == 'processing')
@if ($transaction->transfer_proof)
@else
@endif
@endif
|
@endforeach