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


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