Type |
Ref |
Amount |
Description |
Status |
Created At |
@unless ($histories === null || $histories->isEmpty())
@foreach ($histories as $history)
{{ $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() }} |
@endforeach
@else
No History Found |
@endunless
@unless ($histories === null || $histories->isEmpty())
{{ $histories->links() }}
@endunless