@extends('layouts.frontend.app') @push('style') @endpush @section('content')

Loan account

{{ __('Name') }} {{ __('Acc') }} {{ __('Area') }} {{ __('Scheme') }} {{ __('Duration') }} {{ __('Inst') }}. {{ __('Inst. Amt.') }} {{ __('Ledg.') }} {{ __('Profit %') }} {{ __('Profit Amount') }} {{ __('Principal') }} {{ __('Total') }} {{ __('Paid') }} {{ __('Due') }} {{ __('Status') }} {{ __('Action') }}
{{ $loan->member->m_name }} {{ $loan->account_id }} {{ $loan->member->area->name }} {{ Str::ucfirst($loan->scheme) }} {{ date('d M Y', strtotime($loan->date)) }} - {{ date('d M Y', strtotime($loan->expire_date)) }} {{ $loan->installment_count }}/{{ $loan->installment }} {{ $loan->installment_amount }} {{ $loan->ledger_no }} {{ $loan->percent }} {{ $loan->total_profit }} {{ $loan->loan_amount }} {{ $loan->total_amount }} {{ $loan->total_paid }} {{ $loan->due_amount }} @if ($loan->status == '1') {{ __('Pending') }} @elseif ($loan->status = '2') {{ __('Approved') }} @elseif ($loan->status = '3') {{ __('Completed') }} @else {{ __('Closed') }} @endif

Loan account transaction

@forelse ($loan->installments()->get()->sortByDesc('id') as $install) @php $profit_inst = $install->amount * $loan->percent / 100; $count_inst = $install->amount - $profit_inst; @endphp @empty @endforelse
@endsection