{!! Form::open(['url' => '','id'=>'dataForm']) !!} @php $currentMemberId = isset($openingAccounts[0]) ? $openingAccounts[0]->memberIdFk : 0; $isMemberChanged = 0; $sl = 1; @endphp @foreach ($openingAccounts as $key => $openingAccount) @php if ($currentMemberId!=$openingAccount->memberIdFk) { $currentMemberId = $openingAccount->memberIdFk; $isMemberChanged = 1; } else{ $isMemberChanged = 0; } $rowSpan = $openingAccounts->where('memberIdFk',$openingAccount->memberIdFk)->count(); @endphp @if ($key==0 || $isMemberChanged==1) @endif @php $openingPrincipal = $openingInfos[$openingAccount->id]->openingPrincipal ?? 0; $actPrincipal = $openingInfos[$openingAccount->id]->actPrincipal ?? 0; $openingInterest = $openingInfos[$openingAccount->id]->openingInterest ?? 0; $openingWithdraw = $openingInfos[$openingAccount->id]->openingWithdraw ?? 0; $openingBalance = $openingInfos[$openingAccount->id]->openingBalance ?? 0; $provisionBalance = $openingInfos[$openingAccount->id]->provisionBalance ?? 0; @endphp @endforeach
SL# Member Code Member Name Saving Code Deposit Act Principal Interest Withdraw Balance Provision Balance
{{ $sl++ }}{{$members[$openingAccount->memberIdFk]->code}} {{$members[$openingAccount->memberIdFk]->name}} {{ $openingAccount->savingsCode }} {!! Form::hidden('accId[]',$openingAccount->id) !!} {!! Form::text('deposit[]',number_format($openingPrincipal,2),['class'=>'textRight deposit']) !!} {!! Form::text('actPrincipal[]',number_format($actPrincipal,2),['class'=>'textRight actPrincipal']) !!} {!! Form::text('interest[]',number_format($openingInterest,2),['class'=>'textRight interest']) !!} {!! Form::text('withdraw[]',number_format($openingWithdraw,2),['class'=>'textRight withdraw']) !!} {!! Form::text('balance[]',number_format($openingBalance,2),['class'=>'textRight balance','readonly']) !!} {!! Form::text('provisionBalance[]',number_format($provisionBalance,2),['class'=>'textRight provisionBalance']) !!}
Total {!! Form::text('depositTotal',null,['class'=>'textRight depositTotal','readonly']) !!} {!! Form::text('actPrincipalTotal',null,['class'=>'textRight actPrincipalTotal','readonly']) !!} {!! Form::text('interestTotal',null,['class'=>'textRight interestTotal','readonly']) !!} {!! Form::text('withdrawTotal',null,['class'=>'textRight withdrawTotal','readonly']) !!} {!! Form::text('balanceTotal',null,['class'=>'textRight balanceTotal','readonly']) !!} {!! Form::text('provisionBalanceTotal',null,['class'=>'textRight provisionBalanceTotal','readonly']) !!}
@if (count($openingAccounts)>0) @endif {!! Form::close() !!}