@extends('layouts/microfin_layout') @section('title', '| Add Product') @section('content')
Edit Savings Product
{!! Form::open([ 'url' => '', 'role' => 'forl', 'id' => 'rootwizard', 'class' => 'form-horizontal form-groups', 'novalidate' => '', ]) !!} {!! Form::hidden('productId', $product->id) !!}
{!! Form::label('name', 'Name:', ['class' => 'col-sm-5 control-label']) !!}
{!! Form::text('name', $product->name, ['class' => 'form-control', 'id' => 'name', 'autocomplete' => 'off']) !!}
{!! Form::label('shortName', 'Short Name:', ['class' => 'col-sm-5 control-label']) !!}
{!! Form::text('shortName', $product->shortName, [ 'class' => 'form-control', 'id' => 'shortName', 'autocomplete' => 'off', ]) !!}
{!! Form::label('savingProductCode', 'Saving Product Code:', ['class' => 'col-sm-5 control-label']) !!}
{!! Form::text('savingProductCode', $product->code, [ 'class' => 'form-control', 'id' => 'savingProductCode', 'autocomplete' => 'off', ]) !!}
{!! Form::label('startDate', 'Start Date:', ['class' => 'col-sm-5 control-label']) !!}
{!! Form::text('startDate', $product->startDate, [ 'class' => 'form-control ', 'id' => 'startDate', 'autocomplete' => 'off', 'readonly', 'style' => 'cursor:pointer;', ]) !!}
@php $depositTypeList = ['' => 'Select'] + DB::table('mfn_savings_deposit_type') ->where('softDel', 0) ->pluck('name', 'id') ->toArray(); @endphp
{!! Form::label('typeOfDeposit', 'Type Of Deposit:', ['class' => 'col-sm-5 control-label']) !!}
{!! Form::select('typeOfDeposit', $depositTypeList, $product->depositTypeIdFk, [ 'class' => 'form-control', 'id' => 'typeOfDeposit', 'autocomplete' => 'off', ]) !!}
{!! Form::label('savingsType', 'Savings Type/Segment:', ['class' => 'col-sm-5 control-label']) !!}
{!! Form::select('savingsType', $damageData['savingsType'], $product->savingsType, [ 'class' => 'form-control', 'id' => 'savingsType', 'autocomplete' => 'off', ]) !!}
{{-- Only Case of RS --}} {!! Form::label('autoProcessAmount', 'Default Auto Process Amount:', ['class' => 'col-sm-5 control-label']) !!}
{!! Form::text('autoProcessAmount', $product->monthlyDepositAmount, [ 'class' => 'form-control', 'id' => 'autoProcessAmount', 'autocomplete' => 'off', 'placeholder' => 'Enter Default Auto Process Amount', ]) !!}
@foreach ($damageData['toogleList'] as $k => $v) @if ($k !== '') @endif @endforeach
@foreach ($damageData['toogleList'] as $k => $v) @if ($k !== '') @endif @endforeach
@foreach ($damageData['toogleList'] as $k => $v) @if ($k !== '') @endif @endforeach
{!! Form::label('closingCharge', 'Closing Charge:', ['class' => 'col-sm-5 control-label']) !!}
{!! Form::text('closingCharge', $product->closingChargeAmount, [ 'class' => 'form-control', 'id' => 'closingCharge', 'autocomplete' => 'off', 'placeholder' => 'Enter Closing Charge', ]) !!}
@php $interestCalMethodList = DB::table('mfn_savings_interest_cal_method') ->where(['status' => 1, 'softDel' => 0]) ->get(); @endphp
@foreach ($interestCalMethodList as $v) @endforeach
@foreach ($damageData['toogleList'] as $k => $v) @if ($k !== '') @endif @endforeach
Month(s)
@php $savingsCollectionFrequencyList = ['' => 'Select'] + DB::table('mfn_savings_collection_frequency') ->where('softDel', 0) ->orderBy('createdDate', 'asc') ->pluck('name', 'id') ->toArray(); @endphp
{!! Form::label('savingCollectionFrequency', 'Saving Collection Frequency:', [ 'class' => 'col-sm-5 control-label', ]) !!}
{!! Form::select( 'savingCollectionFrequency', $savingsCollectionFrequencyList, $product->savingCollectionFrequencyIdFk, ['class' => 'form-control', 'id' => 'savingCollectionFrequency', 'autocomplete' => 'off'] ) !!}
@php $monthlyCollectionTypeList = ['' => 'Select'] + DB::table('mfn_saving_monthly_collection_type') ->pluck('name', 'id') ->toArray(); @endphp
{!! Form::label('monthlyCollectionType', 'Monthly Collection Type:', ['class' => 'col-sm-5 control-label']) !!}
{!! Form::select('monthlyCollectionType', $monthlyCollectionTypeList, $product->monthlyCollectionTypeIdFk, [ 'class' => 'form-control', 'id' => 'monthlyCollectionType', 'autocomplete' => 'off', ]) !!}
@php $monthlyCollectionTypeWeekList = ['' => 'Select'] + explode(',', DB::table('mfn_saving_monthly_collection_type') ->where('id', $product->monthlyCollectionTypeIdFk) ->value('value') ); if ($product->savingCollectionFrequencyIdFk != 2) { $monthlyCollectionWeekOrDay = null; } else { $monthlyCollectionWeekOrDay = $product->monthlyCollectionTypeIdValueIndex; } @endphp
{!! Form::label('monthlyCollectionWeekOrDay', 'Monthly Collection Week:', [ 'id' => 'monthlyCollectionWeekOrDayLabel', 'class' => 'col-sm-5 control-label', ]) !!}
{!! Form::select('monthlyCollectionWeekOrDay', $monthlyCollectionTypeWeekList, $monthlyCollectionWeekOrDay, [ 'class' => 'form-control', 'id' => 'monthlyCollectionWeekOrDay', 'autocomplete' => 'off', ]) !!}
{!! Form::label( 'withdrawAllowInFiscalYearForInterest', 'Maximum Withdraw Allowed for Interest in a Fisacal Year:', ['class' => 'col-sm-5 control-label'] ) !!}
{!! Form::text('withdrawAllowInFiscalYearForInterest', $product->withdrawAllowInFiscalYearForInterest, [ 'class' => 'form-control', 'id' => 'withdrawAllowInFiscalYearForInterest', 'autocomplete' => 'off', ]) !!} Skip as Blank to N/A this Condition
@foreach ($damageData['toogleList'] as $k => $v) @if ($k !== '') @endif @endforeach
@foreach ($damageData['toogleList'] as $k => $v) @if ($k !== '') @endif @endforeach
{!! Form::label( 'maximumAllowedMissingInstallments', 'Maximum Allowed Missing Installments for Interest in a Fiscal Year:', ['class' => 'col-sm-5 control-label'] ) !!}
{!! Form::text('maximumAllowedMissingInstallments', $product->maxAllowMissingInstallmentNum, [ 'class' => 'form-control', 'id' => 'maximumAllowedMissingInstallments', 'autocomplete' => 'off', ]) !!} Skip as Blank to N/A this Condition
{!! Form::label('onClosingInterestEditable', 'On Closing Interest Editable:', [ 'class' => 'col-sm-5 control-label', ]) !!}
{!! Form::select('onClosingInterestEditable', $damageData['toogleList'], $product->onClosingInterestEditableId, [ 'class' => 'form-control', 'id' => 'onClosingInterestEditable', 'autocomplete' => 'off', ]) !!}
@foreach ($damageData['toogleList'] as $k => $v) @if ($k !== '') @endif @endforeach
@foreach ($damageData['toogleList'] as $k => $v) @if ($k !== '') @endif @endforeach
@foreach ($damageData['toogleList'] as $k => $v) @if ($k !== '') @endif @endforeach
@foreach ($damageData['toogleList'] as $k => $v) @if ($k !== '') @endif @endforeach
@foreach ($damageData['toogleList'] as $k => $v) @if ($k !== '') @endif @endforeach
@foreach ($damageData['toogleList'] as $k => $v) @if ($k !== '') @endif @endforeach
@foreach ($damageData['toogleList'] as $k => $v) @if ($k !== '') @endif @endforeach
Day(s)
    {!! Form::submit('Submit', ['id' => 'submit', 'class' => 'btn btn-info']) !!}
{{-- End First Column --}}
{{-- Second Coloum --}}
{{-- End Second Coloum --}}
{!! Form::close() !!}
@endsection