@extends('layouts.master') @section('title') {{ trans_choice('general.transaction',1) }} {{ trans_choice('general.detail',2) }} @endsection @section('content')

{{ trans_choice('general.transaction',1) }} {{ trans_choice('general.detail',2) }}

@if(Sentinel::hasAccess('users.create')) @endif
@if(!empty($loan_transaction->receipt)) @endif @if(!empty($loan_transaction->payment_detail)) @if(!empty($loan_transaction->payment_detail->type)) @endif @if(!empty($loan_transaction->payment_detail->account_number)) @endif @if(!empty($loan_transaction->payment_detail->cheque_number)) @endif @if(!empty($loan_transaction->payment_detail->routing_code)) @endif @if(!empty($loan_transaction->payment_detail->receipt_number)) @endif @if(!empty($loan_transaction->payment_detail->bank)) @endif @endif @foreach(\App\Models\CustomFieldMeta::where('category', 'repayments')->where('parent_id', $loan_transaction->id)->get() as $key) @if(!empty($key->custom_field)) @endif @endforeach
{{trans_choice('general.id',1)}} {{$loan_transaction->id}}
{{trans_choice('general.type',1)}} @if($loan_transaction->transaction_type=='disbursement') {{trans_choice('general.disbursement',1)}} @endif @if($loan_transaction->transaction_type=='disbursement_repayment') {{trans_choice('general.disbursement',1)}} {{trans_choice('general.repayment',1)}} @endif @if($loan_transaction->transaction_type=='specified_due_date') {{trans_choice('general.specified_due_date',2)}} {{trans_choice('general.fee',1)}} @endif @if($loan_transaction->transaction_type=='installment_fee') {{trans_choice('general.installment_fee',2)}} @endif @if($loan_transaction->transaction_type=='overdue_installment_fee') {{trans_choice('general.overdue_installment_fee',2)}} @endif @if($loan_transaction->transaction_type=='loan_rescheduling_fee') {{trans_choice('general.loan_rescheduling_fee',2)}} @endif @if($loan_transaction->transaction_type=='overdue_maturity') {{trans_choice('general.overdue_maturity',2)}} @endif @if($loan_transaction->transaction_type=='disbursement_fee') {{trans_choice('general.disbursement',1)}} {{trans_choice('general.charge',2)}} @endif @if($loan_transaction->transaction_type=='interest') {{trans_choice('general.interest',1)}} {{trans_choice('general.applied',2)}} @endif @if($loan_transaction->transaction_type=='repayment') {{trans_choice('general.repayment',1)}} @endif @if($loan_transaction->transaction_type=='write_off_recovery') {{trans_choice('general.recovery',1)}} {{trans_choice('general.repayment',1)}} @endif @if($loan_transaction->transaction_type=='penalty') {{trans_choice('general.penalty',1)}} @endif @if($loan_transaction->transaction_type=='interest_waiver') {{trans_choice('general.interest',1)}} {{trans_choice('general.waiver',2)}} @endif @if($loan_transaction->transaction_type=='charge_waiver') {{trans_choice('general.charge',1)}} {{trans_choice('general.waiver',2)}} @endif @if($loan_transaction->transaction_type=='write_off') {{trans_choice('general.write_off',1)}} @endif
{{trans_choice('general.date',1)}} {{$loan_transaction->date}}
{{trans_choice('general.amount',1)}} @if($loan_transaction->credit>$loan_transaction->debit) {{number_format($loan_transaction->credit,2)}} @else {{number_format($loan_transaction->debit,2)}} @endif
{{trans_choice('general.receipt',1)}} {{$loan_transaction->receipt}}
{{trans_choice('general.note',2)}} {{$loan_transaction->notes}}
{{trans_choice('general.payment',1)}} {{trans_choice('general.detail',2)}}
{{trans_choice('general.payment',1)}} {{trans_choice('general.type',1)}} {{$loan_transaction->payment_detail->type->name}}
{{trans_choice('general.account',1)}}# {{$loan_transaction->payment_detail->account_number}}
{{trans_choice('general.cheque',1)}}# {{$loan_transaction->payment_detail->cheque_number}}
{{trans_choice('general.routing_code',1)}}# {{$loan_transaction->payment_detail->routing_code}}
{{trans_choice('general.receipt',1)}}# {{$loan_transaction->payment_detail->receipt_number}}
{{trans_choice('general.bank',1)}}# {{$loan_transaction->payment_detail->bank}}
{{$key->custom_field->name}}: @if($key->custom_field->field_type=="checkbox") @foreach(unserialize($key->name) as $v=>$k) {{$k}}
@endforeach @else {{$key->name}} @endif
@endsection @section('footer-scripts') @endsection