@extends('layouts.admin-new') @section('content')

Restructured Loans

@forelse($loans as $loan) @php $staff = $loan->collector_type == 'AppModelsUser' ? 'no staff' : $loan->collector @endphp @empty @endforelse
Reference # Borrower Payroll ID Staff Amount Tenure Loan Status Manage
{{$loan->reference}} {{ $loan->user->name }} {{optional($loan->user->employments->first())->payroll_id}} {{$staff->name ?? 'No staff'}} ₦{{ number_format($loan->amount, 2)}} {{$loan->due_date->diffInMonths($loan->created_at)}} Months ({{$loan->due_date->diffForHumans()}}) @component('components.admin-loan-status', ['loan' => $loan]) @endcomponent @if($loan->is_top_up) Top up @endif View
No Restructured loans
@endsection @section('page-js') @endsection