@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) }}

{{$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') @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') @endcan @can('loan.loans.transactions.edit') @endcan @can('loan.loans.write_off_loan') @endcan @can('loan.loans.reschedule_loan') @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') @endcan @can('loan.loans.disburse_loan') @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')