@foreach($pendingPayments as $data)
@php
$context = $data->context;
$context = ucwords(str_replace("_", " ", $context));
@endphp
#{{ ($pendingPayments->currentPage() * $pendingPayments->perPage()) - $pendingPayments->perPage() + $loop->iteration }}
@if($data->context == 'Registration')
{{ ucfirst($data->data['orderData']['firstname']) }}
@else
{{ ucfirst(usernameFromId($data->user_id)) }}
@endif
@if(isset($data['data']['cartDetails']) && ($data['data']['cartDetails']['total'] != null||$data['data']['cartDetails']['total'] == 0))
{{ currency($data['data']['cartDetails']['total']) }}
@else
{{ currency($data['data']['orderData']['amount']) }}
@endif
{{ $context }}
{{ $data->created_at->format('D Y') }}
({{ $data->created_at->diffForHumans() }})
@endforeach