@unless ($histories === null || $histories->isEmpty()) @foreach ($histories as $history) @endforeach @else @endunless
Type Ref Amount Description Status Created At
{{ $history->type }} {{ $history->ref }} {{ settings()->getValue('APP_CURRENCY_LOGO', '$') . $history->amount }} {{ $history->description }} @if ($history->status === 'completed') @php $status = 'badge-success text-gray-100'; @endphp @elseif ($history->status === 'failed') @php $status = 'bg-red-600 text-gray-100'; @endphp @else @php $status = 'bg-gray-600 text-gray-100'; @endphp @endif {{ $history->status }} {{ $history->created_at->diffForHumans() }}
No History Found
@unless ($histories === null || $histories->isEmpty())
{{ $histories->links() }}
@endunless