@extends('layouts.master') @section('title') {{ trans_choice('general.loan',1) }} {{ trans_choice('general.detail',2) }} @endsection @section('content')
{{$loan->loan_product->name}}(#{{$loan->id}})
@if($loan->status=="pending")
@if(Sentinel::hasAccess('loans.approve'))  {{trans_choice('general.approve',1)}}  {{trans_choice('general.decline',1)}} @endif @if(Sentinel::hasAccess('loans.update'))  {{trans_choice('general.edit',1)}} @endif
@if($loan->client_type=="client") @endif @if($loan->client_type=="group") @endif
{{trans_choice('general.client',1)}} @if(!empty($loan->client)) @if($loan->client->client_type=="individual") {{$loan->client->first_name}} {{$loan->client->middle_name}} {{$loan->client->last_name}} ({{trans_choice('general.individual',1)}}) @else {{$loan->client->full_name}} ({{trans_choice('general.business',1)}}) @endif @endif
{{trans_choice('general.group',1)}} @if(!empty($loan->group)) {{$loan->group->name}} @endif
{{trans_choice('general.currency',1)}} @if(!empty($loan->currency)) {{$loan->currency->name}} @endif
{{trans_choice('general.loan',1)}} {{trans_choice('general.officer',1)}} @if(!empty($loan->loan_officer)) {{$loan->loan_officer->first_name}} {{$loan->loan_officer->last_name}} @endif
{{trans_choice('general.external_id',1)}} {{ $loan->external_id }}
{{trans_choice('general.loan',1)}} {{trans_choice('general.purpose',1)}} @if(!empty($loan->loan_purpose)) {{$loan->loan_purpose->name}} @endif
{{trans_choice('general.proposed',1)}} {{trans_choice('general.amount',1)}} {{ number_format($loan->principal,$loan->decimals) }}
{{trans_choice('general.expected',1)}} {{trans_choice('general.disbursement',1)}} {{trans_choice('general.date',1)}} {{ $loan->expected_disbursement_date }}
@if(Sentinel::hasAccess('loans.approve')) @endif @endif @if($loan->status=="approved")
@if(Sentinel::hasAccess('loans.disburse'))  {{trans_choice('general.disburse',1)}} @endif @if(Sentinel::hasAccess('loans.undo_approval'))  {{trans_choice('general.undo',1)}}  {{trans_choice('general.approval',1)}} @endif @if(Sentinel::hasAccess('loans.update'))   {{ trans_choice('general.change',1) }} {{ trans_choice('general.loan',1) }} {{ trans_choice('general.officer',1) }} @endif
@if($loan->client_type=="client") @endif @if($loan->client_type=="group") @endif
{{trans_choice('general.client',1)}} @if(!empty($loan->client)) @if($loan->client->client_type=="individual") {{$loan->client->first_name}} {{$loan->client->middle_name}} {{$loan->client->last_name}} ({{trans_choice('general.individual',1)}}) @else {{$loan->client->full_name}} ({{trans_choice('general.business',1)}}) @endif @endif
{{trans_choice('general.group',1)}} @if(!empty($loan->group)) {{$loan->group->name}} @endif
{{trans_choice('general.currency',1)}} @if(!empty($loan->currency)) {{$loan->currency->name}} @endif
{{trans_choice('general.loan',1)}} {{trans_choice('general.officer',1)}} @if(!empty($loan->loan_officer)) {{$loan->loan_officer->first_name}} {{$loan->loan_officer->last_name}} @endif
{{trans_choice('general.external_id',1)}} {{ $loan->external_id }}
{{trans_choice('general.loan',1)}} {{trans_choice('general.purpose',1)}} @if(!empty($loan->loan_purpose)) {{$loan->loan_purpose->name}} @endif
{{trans_choice('general.proposed',1)}} {{trans_choice('general.amount',1)}} {{ number_format($loan->applied_amount,$loan->decimals) }}
{{trans_choice('general.approved',1)}} {{trans_choice('general.amount',1)}} {{ number_format($loan->approved_amount,$loan->decimals) }}
{{trans_choice('general.expected',1)}} {{trans_choice('general.disbursement',1)}} {{trans_choice('general.date',1)}} {{ $loan->expected_disbursement_date }}
@endif @if($loan->status=="disbursed")
@if(Sentinel::hasAccess('loans.transactions.create'))  {{trans_choice('general.make',1)}} {{trans_choice('general.repayment',1)}} @endif @if(Sentinel::hasAccess('loans.transactions.create'))  {{trans_choice('general.reschedule',1)}} {{trans_choice('general.loan',1)}} @endif @if(Sentinel::hasAccess('loans.charge.create'))  {{trans_choice('general.add',1)}} {{trans_choice('general.charge',1)}} @endif @if(Sentinel::hasAccess('loans.update')) Refund @endif @if(Sentinel::hasAccess('loans.update'))   {{ trans_choice('general.change',1) }} {{ trans_choice('general.loan',1) }} {{ trans_choice('general.officer',1) }} @endif @if(Sentinel::hasAccess('loans.undo_disbursement'))  {{trans_choice('general.undo',1)}}  {{trans_choice('general.disbursement',1)}} @endif