@extends('dlayout') @section('content')


Loans
@foreach($loans as $user) @if ($user->interest== "15%") @else @endif @endforeach
Loan_Id User name Loan Amount Interest Amount Amount to be Paid Amount Paid Amount Remaining Loan Status Date Taken Date for payment Comment
{{ $user->id }} {{ $user->names }} {{ ($user->amount_requested)/1.15 }} {{ ($user->amount_requested)-(($user->amount_requested)/1.15) }} {{ $user->totaltobepaid }} {{ $user->amount_paid }} {{ $user->amount_remaining }} {{ $user->loan_status }} {{ $user->date_taken }} {{ $user->dateforpayment }} @foreach($user->loancomment as $loancomment) {{ $loancomment->comment }}

@endforeach
{{ $user->id }} {{ $user->id_user }} , {{ $user->names }} {{ ($user->amount_requested) }} {{ ($user->totaltobepaid)-($user->amount_requested) }} {{ $user->totaltobepaid }} {{ $user->amount_paid }} {{ $user->amount_remaining }} {{ $user->loan_status }} {{ $user->date_taken }} {{ $user->dateforpayment }} @foreach($user->loancomment as $loancomment) {{ $loancomment->comment }}
@endforeach
@endsection