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

Hello, {{auth()->user()->fullname}}

Recent Transactions

@foreach(auth()->user()->transactions()->latest()->limit(3)->get() as $transaction) @endforeach
Date Status Transaction Type Amount Action
{{$transaction->created_at->format('d.m.Y')}} {{$transaction->created_at->format('H:i')}}
{{$transaction->status->name}}
{{$transaction->type}}
{{$transaction->transactionable->displayamount ?? $transaction->amount}}
@if($transaction->transactionable_type == \App\Models\Bankfunding::class && !$transaction->transactionable->approved()) @endif
View more

Details

Farms sponsored
Number Of Farm Sponsored {{auth()->user()->farmSponsoredCount()}}
Total Transactions
Total Transaction {{ auth()->user()->transactions->count() ?? 0 }}
VestBank For Farm balance
Vest For Farm balance {{ auth()->user()->farmVestingBalance() }}
VestBank balance
Vestbank balance {{auth()->user()->vestbank->balanceForDisplay ?? 'NGN 0'}}
{{--
--}} {{--
--}} {{-- --}} {{-- VestBanking--}} {{-- --}} {{--
--}} {{--
--}}
@endsection @push('scripts') @endpush