@extends('core::layouts.master') @section('title') {{ trans_choice('loan::general.loan',1) }} {{ trans_choice('core::general.detail',2) }} @endsection @section('styles') @stop @section('content') {{ trans_choice('loan::general.loan',1) }} {{ trans_choice('core::general.detail',2) }} {{ trans_choice('core::general.back',1) }} {{ trans_choice('dashboard::general.dashboard',1) }} {{ trans_choice('loan::general.loan',2) }} {{ trans_choice('loan::general.loan',1) }} {{ trans_choice('core::general.detail',2) }} {{$loan->loan_product->name}}(#{{$loan->id}}) @if($loan->status=='submitted' ||$loan->status=='pending') @can('loan.loans.approve_loan') {{ trans_choice('loan::general.approve',1) }} {{ trans_choice('loan::general.reject',1) }} {{ trans_choice('loan::general.withdraw',1) }} @endcan @can('loan.loans.edit') {{ trans_choice('core::general.edit',1) }} @endcan @can('loan.loans.approve_loan') {{ trans_choice('loan::general.approve',1) }} {{ trans_choice('loan::general.loan',1) }} × {{csrf_field()}} {{ trans_choice('core::general.date',1) }} {{ trans_choice('core::general.amount',1) }} {{ trans_choice('core::general.note',2) }} {{ trans_choice('loan::general.reject',1) }} {{ trans_choice('loan::general.loan',1) }} × {{csrf_field()}} {{ trans_choice('core::general.note',2) }} {{ trans_choice('loan::general.withdraw',1) }} {{ trans_choice('loan::general.loan',1) }} × {{csrf_field()}} {{ trans_choice('core::general.note',2) }} @endcan @endif @if($loan->status=='active') @can('loan.loans.transactions.create') {{ trans_choice('loan::general.make',1) }} {{ trans_choice('loan::general.repayment',1) }} @endcan @can('loan.loans.disburse_loan') {{ trans_choice('loan::general.undo',1) }} {{ trans_choice('loan::general.disbursement',1) }} @endcan @can('loan.loans.edit') {{ trans_choice('loan::general.change',1) }} {{ trans_choice('loan::general.loan',1) }} {{ trans_choice('loan::general.officer',1) }} @endcan @can('loan.loans.charges.create') {{ trans_choice('core::general.add',1) }} {{ trans_choice('loan::general.charge',1) }} @endcan @can('loan.loans.transactions.edit') {{ trans_choice('loan::general.waive',1) }} {{ trans_choice('loan::general.interest',1) }} @endcan @can('loan.loans.write_off_loan') {{ trans_choice('loan::general.write_off',1) }} {{ trans_choice('loan::general.loan',1) }} @endcan @can('loan.loans.reschedule_loan') {{ trans_choice('loan::general.reschedule',1) }} {{ trans_choice('loan::general.loan',1) }} @endcan @can('loan.loans.edit') {{ trans_choice('loan::general.change',1) }} {{ trans_choice('loan::general.loan',1) }} {{ trans_choice('loan::general.officer',1) }} × {{csrf_field()}} {{trans_choice('loan::general.loan',1)}} {{trans_choice('loan::general.officer',1)}} @foreach($users as $key) id==$loan->loan_officer_id) selected @endif>{{$key->first_name}} {{$key->last_name}} @endforeach @endcan @can('loan.loans.transactions.edit') {{ trans_choice('loan::general.waive',1) }} {{ trans_choice('loan::general.interest',1) }} × {{csrf_field()}} {{ trans_choice('core::general.date',1) }} {{ trans_choice('core::general.amount',1) }} {{ trans_choice('core::general.note',2) }} @endcan @can('loan.loans.write_off_loan') {{ trans_choice('loan::general.write_off',1) }} {{ trans_choice('loan::general.loan',1) }} × {{csrf_field()}} {{ trans_choice('core::general.date',1) }} {{ trans_choice('core::general.note',2) }} @endcan @can('loan.loans.reschedule_loan') {{ trans_choice('loan::general.reschedule',1) }} {{ trans_choice('loan::general.loan',1) }} × {{csrf_field()}} {{ trans_choice('loan::general.reschedule_from_installment_on',1) }} {{ trans_choice('core::general.submitted_on',1) }} {{trans_choice('loan::general.change_repayment_date',1)}} {{ trans_choice('loan::general.adjusted_due_date',1) }} {{trans_choice('loan::general.adjust_loan_interest_rate',1)}} {{ trans_choice('loan::general.interest',1) }} {{ trans_choice('loan::general.rate',1) }} {{trans_choice('loan::general.add_extra_installments',1)}} {{ trans_choice('loan::general.extra_installment',2) }} {{trans_choice('loan::general.introduce_grace_periods',1)}} {{ trans_choice('loan::general.grace_on_principal_paid',1) }} {{ trans_choice('loan::general.grace_on_interest_paid',1) }} {{ trans_choice('core::general.note',2) }} @endcan @endif @if($loan->status=='written_off') {{ trans_choice('loan::general.recovery',1) }} {{ trans_choice('loan::general.payment',1) }} {{ trans_choice('loan::general.undo',1) }} {{ trans_choice('loan::general.loan',1) }} {{ trans_choice('loan::general.write_off',1) }} @endif @if($loan->status=='approved') @can('loan.loans.disburse_loan') {{ trans_choice('loan::general.disburse',1) }} @endcan @can('loan.loans.edit') {{ trans_choice('loan::general.change',1) }} {{ trans_choice('loan::general.loan',1) }} {{ trans_choice('loan::general.officer',1) }} @endcan @can('loan.loans.approve_loan') {{ trans_choice('loan::general.undo',1) }} {{ trans_choice('loan::general.approval',1) }} @endcan @can('loan.loans.edit') {{ trans_choice('loan::general.change',1) }} {{ trans_choice('loan::general.loan',1) }} {{ trans_choice('loan::general.officer',1) }} × {{csrf_field()}} {{trans_choice('loan::general.loan',1)}} {{trans_choice('loan::general.officer',1)}} @foreach($users as $key) id==$loan->loan_officer_id) selected @endif>{{$key->first_name}} {{$key->last_name}} @endforeach @endcan @can('loan.loans.disburse_loan') {{ trans_choice('loan::general.disburse',1) }} {{ trans_choice('loan::general.loan',1) }} × {{csrf_field()}} {{ trans_choice('loan::general.actual',1) }} {{ trans_choice('loan::general.disbursement',1) }} {{ trans_choice('core::general.date',1) }} {{ trans_choice('core::general.first',1) }} {{ trans_choice('loan::general.repayment',1) }} {{ trans_choice('core::general.date',1) }} {{ trans_choice('loan::general.payment',1) }} {{ trans_choice('core::general.type',1) }} @foreach($payment_types as $key) {{$key->name}} @endforeach {{ trans_choice('core::general.show',1) }} {{ trans_choice('loan::general.payment',1) }} {{ trans_choice('core::general.detail',2) }} {{ trans_choice('core::general.account',1) }} # {{ trans_choice('core::general.cheque',1) }} # {{ trans_choice('core::general.routing_code',1) }} {{ trans_choice('core::general.receipt',1) }} # {{ trans_choice('core::general.bank',1) }} # {{ trans_choice('core::general.note',2) }} @endcan @endif @if($loan->status=='rejected') @can('loan.loans.approve_loan') {{ trans_choice('loan::general.undo',1) }} {{ trans_choice('loan::general.rejection',1) }} @endcan @endif @if($loan->status=='withdrawn') @can('loan.loans.approve_loan') {{ trans_choice('loan::general.undo',1) }} {{ trans_choice('loan::general.withdrawn',1) }} @endcan @endif @if($loan->status=='submitted' ||$loan->status=='pending'||$loan->status=='withdrawn'||$loan->status=='approved'||$loan->status=='rejected') @if($loan->status=='submitted') {{ trans_choice('loan::general.pending_approval',1) }} @endif @if($loan->status=='approved') {{ trans_choice('loan::general.awaiting_disbursement',1) }} @endif @if($loan->status=='withdrawn') {{ trans_choice('loan::general.withdrawn',1) }} @endif @if($loan->status=='rejected') {{ trans_choice('loan::general.rejected',1) }} @endif @endif @if($loan->status=='active' ||$loan->status=='closed'||$loan->status=='written_off'||$loan->status=='overpaid'||$loan->status=='rescheduled')