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

My Approvals



Guarantor Requests
@foreach($guarantees as $guarantee) @if($guarantee->user_id == Auth()->user()->id) @foreach($loans as $loan) @php $availableBalance = $loan->guarantee_balance; @endphp @if($loan->id == $guarantee->loan_id) @endif @endforeach @if($guarantee->guarantee_status =='pending') @elseif(($guarantee->guarantee_status =='approved')) @elseif(($guarantee->guarantee_status =='rejected')) @endif @if($guarantee->guarantee_status =='pending') @endif @endif @endforeach
Member Requesting Member Number Ref No Loan Type Loan Amount Guaranteed Amount Guarantee Status Action
{{$loan->user->fname }} {{$loan->user->lname }} {{$loan->user->member_number }} {{$loan->loan_no}} {{$loan->loanType->name}} {{ number_format($loan->applied_amount) }}{{ number_format($guarantee->guarantee_amount) }}PendingApprovedRejected
@endsection @pushOnce('scripts') @endPushOnce