@section('title', __('My Wallet'))
{{-- breadcrumb --}} @include('livewire.extensions.glover-website.components.nav-breadcrumb', [ 'links' => [ [ 'title' => __('Home'), 'url' => route('glover-website.index'), ], [ 'title' => __('Wallet'), 'url' => '', ], ], ]) {{-- wallet info --}}

{{ __('My Wallet') }}

{{ __('Available Balance') }}

{{ currencyFormat($wallet->balance) }}

{{-- --}}

{{ __('Last Credit') }}

@if ($lastCredit)

{{ currencyFormat($lastCredit->amount) }}

{{ $lastCredit->ref }}

{{ $lastCredit->created_at->diffForHumans() }}

@else

{{ __('No credit transactions yet') }}

@endif

{{ __('Last Debit') }}

@if ($lastDebit)

{{ currencyFormat($lastDebit->amount) }}

{{ $lastDebit->ref }}

{{ $lastDebit->created_at->diffForHumans() }}

@else

{{ __('No debit transactions yet') }}

@endif
{{-- transactions --}}
@foreach ($transactions as $key => $transaction)
{{ $key + 1 }}
{{ ucfirst(__($transaction->status)) }} {{ __($transaction->is_credit ? 'Credit' : 'Debit') }}
{{ __('Amount') }} {{ currencyFormat($transaction->amount) }}
{{ __('Reference') }} {{ $transaction->ref }}
{{ __('Created') }} {{ $transaction->created_at->format('M d, Y H:i') }}
{{ __('Last Updated') }} {{ $transaction->updated_at->format('M d, Y H:i') }}
@endforeach @if (count($transactions) == 0)
{{ __('No transactions found') }}
@endif
{{ $transactions->links() }}
{{-- amount entry modal --}} {{-- loading --}} @include('livewire.extensions.glover-website.components.loading')
@push('scripts') @endpush