@extends('layouts/microfin_layout') @section('title', '| Edit Loan Adjustment') @section('content') @php use \App\Http\Controllers\microfin\savings\MfnSavingsDepositTypeController as createForm; @endphp
Edit Loan Adjustment
{!! Form::open(array('url' => '', 'role' => 'forl', 'id' => 'rootwizard', 'class' => 'form-horizontal form-groups', 'novalidate' => '')) !!} {!! Form::hidden('id_update',$id_update,['id'=>'id_update']) !!} @if (Auth::user()->branchId==1) @foreach($branchList as $branchValue)
{!! createForm::text('branch',$branchValue,'Branch:',['id'=>'bnranch', 'readonly'=>'readonly', 'autocomplete'=>'off']) !!}
@endforeach @endif @foreach($samity as $samityValue)
{!! createForm::text('samity',$samityValue,'Samity:',['id'=>'samity', 'readonly'=>'readonly', 'autocomplete'=>'off']) !!}
@endforeach @foreach($member as $memberValue)
{!! createForm::text('member',$memberValue,'Member:',['id'=>'member', 'readonly'=>'readonly', 'autocomplete'=>'off']) !!}
@endforeach {!! createForm::text('loanId',$loanId,'Loan Id:',['id'=>'loanId','autocomplete'=>'off','readonly'=>'readonly','style'=>'cursor:pointer']) !!} {!! createForm::text('softwareDate',$softwareDate,'Date:',['id'=>'softwareDate','autocomplete'=>'off','readonly'=>'readonly','style'=>'cursor:pointer']) !!} {!! createForm::text('dueAmount',$dueAmount,'Due Amount:',['id'=>'dueAmount','autocomplete'=>'off','readonly'=>'readonly']) !!} {!! createForm::select('savingsId',[''=>'Select'],null,'Savings Id:',['id'=>'savingsId','autocomplete'=>'off']) !!}
{{-- --}} @php $decoded_adjustmentValue = json_decode($adjustmentValue); // dd($decoded_adjustmentValue); @endphp @foreach ($decoded_adjustmentValue as $adjustment) {{-- --}} @endforeach
Savings Code Adjusted Amount
id}}> @php $savingsAccountCode = DB::table ('mfn_savings_account') ->where('id', $adjustment->id) ->value('savingsCode'); $savAccount = DB::table('mfn_savings_account') ->select('loanCollectionAdjust') ->join('mfn_saving_product', 'mfn_savings_account.savingsProductIdFk', '=', 'mfn_saving_product.id') ->where('mfn_savings_account.id', $adjustment->id) ->first(); @endphp {{$savingsAccountCode}} @if($savAccount->loanCollectionAdjust == 1) amount}} class="adjustmentedValues"> @else amount}} class="adjustmentedValues"> @endif
{!! Form::label('notes', 'Notes:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::textarea('notes','',['class'=>'form-control','rows'=>4]) !!}
    {!! Form::submit('Submit', ['id' => 'submit', 'class' => 'btn btn-info']) !!}
{{-- End First Column --}} {{-- Second Coloum --}}
@php $tableRows = ['Payable','Transaction','Outstanding','Installment','Advance','Due']; @endphp

Loan Information

@php // dd($loanDetails); // foreach ($loanDetails as $loanDetailsValue) { // dd($loanDetailsValue['code']); // } @endphp @foreach ($loanDetails as $loanDetailsValue) @endforeach
Loan Code Disbursed Amount Payable Amount Paid Amount Due Amount Advance Amount Outstanding
{{$loanDetailsValue['code']}} {{number_format ($loanDetailsValue['loan_amount'], 2)}} {{number_format ($loanDetailsValue['payable_amount'], 2)}} {{number_format ($loanDetailsValue['paid_amount'], 2)}} {{number_format ($loanDetailsValue['due_amount'], 2)}} {{number_format ($loanDetailsValue['advance_amount'], 2)}} {{number_format ($loanDetailsValue['loan_amount'] - $loanDetailsValue['paid_amount'], 2)}}
@php $tableRows = ['Payable','Transaction','Outstanding','Installment','Advance','Due']; @endphp

Savings Information

@foreach ($savingsDetails as $savingsDetailsValue) @php //$updatedBalance = @endphp @endforeach
Savings Code Opening Date Deposite Amount Withdraw Amount Balance
{{$savingsDetailsValue['code']}} {{$savingsDetailsValue['openingDate']}} {{number_format($savingsDetailsValue['deposite'], 2)}} {{number_format($savingsDetailsValue['withdraw'], 2)}}{{number_format(($savingsDetailsValue['deposite'] - $savingsDetailsValue['withdraw']), 2)}}
{{-- End Second Coloum --}}
{!! Form::close() !!}
@endsection