@isset($client)
Client: {{ $client->cl_firstname . ' ' . $client->cl_lastname . ' (' . $client->cl_id_no . ')' }}
@endisset @if (Auth::user()->role == 'ADMIN' || Auth::user()->role == 'OFFICER') @endif
@isset($client) {{-- --}} @endisset @if (Auth::user()->role == 'ADMIN' || Auth::user()->role == 'OFFICER') @endif {{-- --}} @php $count = 0; @endphp @foreach ($loans as $loan) {{-- --}} {{-- --}} @if (Auth::user()->role == 'ADMIN' || Auth::user()->role == 'OFFICER') @endif {{-- --}} @endforeach
Loans for {{ $client->cl_firstname . ' ' . $client->cl_lastname . ' (' . $client->cl_id_no . ')'}}
#Client Client IDLoan date Principal(N$) Interest(%) Repayment (N$) Term (Months)App StatusLoan Status Payment Action
{{ ++$count }}{{ $loan->created_at }}{{ $loan->createdBy->firstname . ' ' . $loan->createdBy->surname }}{{ $loan->client->cl_firstname . ' ' . $loan->client->cl_lastname }} {{ $loan->client->cl_id_no }}{{ $loan->loan_dt }} {{ number_format($loan->loan_amt, 2) }} {{ $loan->interest_rate }} {{ number_format($loan->total_amt, 2) }} {{ $loan->instalments }}{{ $loan->appl_status }}{{ $loan->status }} {{ $loan->pay_status }} Details @if (auth()->user()->role == 'ADMIN' || auth()->user()->role == 'OFFICER') @if ($loan->pay_status != 'YES') | Edit @endif @endif @if (auth()->user()->role == 'CLIENT') @if (strtoupper($loan->appl_status) == 'SUBMITTED' && strtoupper($loan->pay_status) != 'YES') | Edit @endif @endif