@extends('layouts.vendor') {{-- Adjust "layouts.vendor" to your actual vendor layout path. This layout might handle the sidebar, top navbar, etc. --}} @section('page-title', 'Wallet') @section('vendor-content')

Wallet

Your Transaction Overview
{{ Auth::user()->business_name }} Vendor

Wallet Balance

₦{{ number_format($walletBalance ?? 0, 2) }}

Transaction History
Download
@forelse ($transactions->sortBy('created_at') as $index => $txn) @empty @endforelse
SN Description TRX ID TRX Amount Date Type TRX Status
{{ $index + 1 }} {{ $txn->description }} {{ $txn->reference ?? 'Qwqdyxdk37214' }} ₦{{ number_format($txn->amount, 2) }} {{ $txn->created_at->format('d M Y, h:i A') }} {{ $txn->transaction_category ?? 'Food' }} @if($txn->status === 'approved') Successful @elseif($txn->status === 'rejected') Failed @else Successful @endif
No transactions found.
@if ($transactions->hasPages())

Showing {{ $transactions->firstItem() }} to {{ $transactions->lastItem() }} of {{ $transactions->total() }} results

{{ $transactions->links() }}
@else

Showing {{ $transactions->count() }} of {{ $transactions->count() }} results

@endif
@endsection