@extends('layouts.customer') @section('content')

Transaction History

{{-- Filter Bar --}}
Clear
{{-- Desktop Table --}} {{-- Mobile Cards --}}
@forelse($transactions as $transaction)
@if($transaction->type === 'credit' || $transaction->type === 'deposit') @else @endif

{{ $transaction->description }}

{{ $transaction->created_at->format('M d, Y') }}

@if($transaction->type === 'credit' || $transaction->type === 'deposit') +@else-@endif${{ number_format($transaction->amount, 2) }}

{{ $transaction->reference }} {{ ucfirst($transaction->status) }}
@empty

No transactions found

@endforelse
{{-- Pagination --}} @if($transactions->hasPages())
{{ $transactions->withQueryString()->links() }}
@endif
@endsection