@extends('backend.layouts_backend.master2') @section('title') All Loans @endsection @section('content') {{-- header --}}

All Loans

{{-- end header --}}
{{-- alert add item --}} @if (session('messagesave')) {{--
{{ session('message')}}
--}} @endif {{-- alert delete item --}} @if (session('messagedelete')) {{--
{{ session('messagedelete')}}
--}} @endif {{-- alert update item --}} @if (session('messageupdate')) @endif
{{-- --}} @foreach ($loans as $loan) {{-- --}} {{-- view details modal --}} {{-- --}} {{-- end of view modal --}} @endforeach
#Id Loan Code Status Client Name Loaned On Due Date Loaned Amount Loan BalanceCreated ByAction
{{ $loan->id ?? 'N/A' }} {{ $loan->loan_code ?? 'N/A' }} {{ get_loan_status_from_id($loan->loan_status) ?? '' }} {{ $loan->client->first_name ?? '' }} {{ $loan->client->last_name ?? '' }} {{ $loan->client->other_names ?? '' }} {{ short_date($loan->loan_date) ?? 'N/A' }} {{ short_date($loan->due_date) ?? 'N/A' }} {{ $loan->loan_amount ?? 'N/A' }} {{ $loan->loan_balance ?? 'N/A' }}{{ get_user_fullname($loan->created_by) ?? 'N/A' }}
{{-- @can('county-show') --}} {{-- @endcan --}} {{-- @can('county-edit') --}} {{-- @endcan --}} {{-- @can('county-delete') --}}
@csrf @method('DELETE')
{{-- @endcan --}}

@endsection