@extends('layouts/microfin_layout') @section('title', '| General configuration') @section('content')
General Configuration Setting
{!! Form::open(array('url' => '', 'role' => 'form','id' =>'formId','enctype' => 'multipart/form-data', 'class' => 'form-horizontal form-groups')) !!}
{!! Form::label('organizationName', 'Organization Name:', ['class' => 'col-sm-3 control-label generalConfig']) !!}
{!! Form::text('organizationName',$damageData['generalconfigurationData']['orgName'] ?? '', ['class' => 'form-control generalConfig', 'id' => 'organizationName', 'type' => 'text']) !!}
{!! Form::label('organizationCode', 'Organization Code:', ['class' => 'col-sm-3 control-label generalConfig']) !!}
{!! Form::text('organizationCode',$damageData['generalconfigurationData']['orgCode'] ?? '', ['class' => 'form-control generalConfig', 'id' => 'organizationCode', 'type' => 'text']) !!}
{!! Form::label('organizationEstablismentDate', 'Organization Stablishment Date:', ['class' => 'col-sm-3 control-label generalConfig']) !!}
{!! Form::text('organizationEstablismentDate',$damageData['generalconfigurationData']['orgEstablismentDate'] ?? '', ['class' => 'form-control generalConfig', 'id' => 'organizationEstablismentDate', 'type' => 'text','readonly']) !!}
{!! Form::label('organizationLogo', 'Organization Logo:', ['class' => 'col-sm-3 control-label generalConfig']) !!} @php if(isset($damageData['generalconfigurationData']['organizationLogo'])){ $image = $damageData['generalconfigurationData']['organizationLogo']; } else { $image = ''; } @endphp
Logo
@if(isset($damageData['generalconfigurationData'])) {!! Form::file('organizationLogo',$damageData['generalconfigurationData'] ?? '',['class' => 'field generalConfig', 'id' => 'organizationLogo', 'type' => 'text']) !!} @endif
{!! Form::label('is insurance required', 'Is Insurance Required?:', ['class' => 'col-sm-3 control-label generalConfig']) !!}
{!! Form::select('isInsuranceRequired',($damageData['boolean']), isset($damageData['generalconfigurationData']['isInsuranceReq']) ? (int)$damageData['generalconfigurationData']['isInsuranceReq'] :'', array('class'=>'form-control generalConfig', 'id' => 'isInsuranceRequired')) !!}
{!! Form::label('insuranceClaimMultiplier', 'Insurance Claim Multiplier:', ['class' => 'col-sm-3 control-label generalConfig']) !!}
{!! Form::text('insuranceClaimMultiplier',$damageData['generalconfigurationData']['insuranceClaimMul'] ?? '', ['class' => 'form-control generalConfig', 'id' => 'insuranceClaimMultiplier', 'type' => 'text']) !!}
{!! Form::label('forLoansInterestLabelAlternative', 'For Loans Interest Label Alternative:', ['class' => 'col-sm-3 control-label generalConfig']) !!}
{!! Form::text('forLoansInterestLabelAlternative',$damageData['generalconfigurationData']['forLoansInterestLabelAlt'] ?? '', ['class' => 'form-control generalConfig', 'id' => 'forLoansInterestLabelAlternative', 'type' => 'text']) !!}
{!! Form::label('forSavingInterestLabelAlternative', 'For Savings Interest Label Alternative:', ['class' => 'col-sm-3 control-label generalConfig']) !!}
{!! Form::text('forSavingInterestLabelAlternative',$damageData['generalconfigurationData']['forSavingInterestLabelAlt'] ?? '', ['class' => 'form-control generalConfig', 'id' => 'forSavingInterestLabelAlternative', 'type' => 'text']) !!}
{!! Form::label('jicaFundingOrganizationName', 'Jica Funding Organization Name:', ['class' => 'col-sm-3 control-label generalConfig']) !!}
{!! Form::text('jicaFundingOrganizationName',$damageData['generalconfigurationData']['jicaFundingOrgName'] ?? '', ['class' => 'form-control generalConfig', 'id' => 'jicaFundingOrganizationName', 'type' => 'text']) !!}
{{-- Money Receipt (Start) --}}
{!! Form::label('is Money Receipt Number Required', 'Is Money Receipt Number Required:', ['class' => 'col-sm-3 control-label generalConfig']) !!}
{!! Form::select('isMoneyReceiptNumberReq', $damageData['boolean'], isset($damageData['generalconfigurationData']['isMoneyReceiptNumberReq']) ? (int)$damageData['generalconfigurationData']['isMoneyReceiptNumberReq'] : 0, ['class'=>'form-control generalConfig', 'id' => 'isMoneyReceiptNumberReq']) !!}
{!! Form::label('moneyReceiptNoType', 'Money Receipt Number Type:', ['class' => 'col-sm-3 control-label generalConfig']) !!}
{!! Form::select('moneyReceiptNoType',$damageData['moneyReceiptNoTypeOptions'], isset($damageData['generalconfigurationData']['moneyReceiptNoType']) ? $damageData['generalconfigurationData']['moneyReceiptNoType'] : 'auto', ['class'=>'form-control generalConfig', 'id' => 'moneyReceiptNoType']) !!}
{!! Form::label('moneyReceiptNoPrefixLoanCollection', 'Money Receipt Number Prefix (Loan Collection):', ['class' => 'col-sm-3 control-label generalConfig']) !!}
{!! Form::text('moneyReceiptNoPrefixLoanCollection',$damageData['generalconfigurationData']['moneyReceiptNoPrefixLoanCollection'] ?? 'LC', ['class' => 'form-control generalConfig', 'id' => 'moneyReceiptNoPrefixLoanCollection', 'type' => 'text', 'maxlength' => 2]) !!}
{!! Form::label('moneyReceiptNoPrefixSavingsDeposit', 'Money Receipt Number Prefix (Savings Deposit):', ['class' => 'col-sm-3 control-label generalConfig']) !!}
{!! Form::text('moneyReceiptNoPrefixSavingsDeposit',$damageData['generalconfigurationData']['moneyReceiptNoPrefixSavingsDeposit'] ?? 'SD', ['class' => 'form-control generalConfig', 'id' => 'moneyReceiptNoPrefixSavingsDeposit', 'type' => 'text', 'maxlength' => 2]) !!}
{!! Form::label('moneyReceiptNoPrefixSavingsWithdraw', 'Money Receipt Number Prefix (Savings Withdraw):', ['class' => 'col-sm-3 control-label generalConfig']) !!}
{!! Form::text('moneyReceiptNoPrefixSavingsWithdraw',$damageData['generalconfigurationData']['moneyReceiptNoPrefixSavingsWithdraw'] ?? 'SW', ['class' => 'form-control generalConfig', 'id' => 'moneyReceiptNoPrefixSavingsWithdraw', 'type' => 'text', 'maxlength' => 2]) !!}
{!! Form::label('is Money Receipt Number Print Required', 'Is Money Receipt Print Allow:', ['class' => 'col-sm-3 control-label generalConfig']) !!}
{!! Form::select('isMoneyReceiptNumberPrintReq', $damageData['boolean'], isset($damageData['generalconfigurationData']['isMoneyReceiptPrintAllow']) ? (int)$damageData['generalconfigurationData']['isMoneyReceiptPrintAllow'] : 0, ['class'=>'form-control generalConfig', 'id' => 'isMoneyReceiptNumberPrintReq']) !!}
{!! Form::label('moneyReceiptBackground', 'Money Receipt Background:', ['class' => 'col-sm-3 control-label generalConfig']) !!}
{!! Form::select('moneyReceiptBackground',($damageData['moneyReceiptBackgroundOptions']), isset($damageData['generalconfigurationData']['moneyReceiptBackground']) ? (int)$damageData['generalconfigurationData']['moneyReceiptBackground'] : '', array('class'=>'form-control generalConfig', 'id' => 'moneyReceiptBackground')) !!}
{!! Form::label('moneyReceiptBackgroundCustom', 'Money Receipt Background Custom:', ['class' => 'col-sm-3 control-label generalConfig']) !!} @php if(isset($damageData['generalconfigurationData']['moneyReceiptBackgroundCustom'])){ $image = $damageData['generalconfigurationData']['moneyReceiptBackgroundCustom']; } else { $image = ''; } @endphp
Img
@if(isset($damageData['generalconfigurationData'])) {!! Form::file('moneyReceiptBackgroundCustom',$damageData['generalconfigurationData'] ?? '',['class' => 'field generalConfig', 'id' => 'moneyReceiptBackgroundCustom', 'type' => 'text']) !!} @endif
{{-- Money Receipt (End) --}}
{!! Form::label('is mobile number required for employee', 'Is Mobile Number Required For Employee:', ['class' => 'col-sm-3 control-label generalConfig']) !!}
{!! Form::select('isMobileNumberRequiresForEmployee',($damageData['boolean']), isset($damageData['generalconfigurationData']['isMobileNumberReqForEmp']) ? (int)$damageData['generalconfigurationData']['isMobileNumberReqForEmp'] : '', array('class'=>'form-control generalConfig', 'id' => 'isMobileNumberRequiresForEmployee')) !!}
{!! Form::label('is email required for employee', 'Is Email Required For Employee:', ['class' => 'col-sm-3 control-label generalConfig']) !!}
{!! Form::select('isEmailRequiredForEmployee', ($damageData['boolean']), isset($damageData['generalconfigurationData']['isEmailReqForEmp']) ? (int)$damageData['generalconfigurationData']['isEmailReqForEmp'] : '' , array('class'=>'form-control generalConfig', 'id' => 'isEmailRequiredForEmployee')) !!}
{!! Form::label('is national id required for employee', 'Is National Id Required For Employee:', ['class' => 'col-sm-3 control-label generalConfig']) !!}
{!! Form::select('isNationalIdRequiredForEmployee', ($damageData['boolean']),isset($damageData['generalconfigurationData']['isNationalIdReqForEmp']) ? (int)$damageData['generalconfigurationData']['isNationalIdReqForEmp'] : '', array('class'=>'form-control generalConfig', 'id' => 'isNationalIdRequiredForEmployee')) !!}
{!! Form::label('is father name required for employee', 'Is Father Name Required For Employee:', ['class' => 'col-sm-3 control-label generalConfig']) !!}
{!! Form::select('isFatherNameRequiredForEmployee',($damageData['boolean']), isset($damageData['generalconfigurationData']['isFatherNameReqForEmp']) ? (int)$damageData['generalconfigurationData']['isFatherNameReqForEmp'] : '', array('class'=>'form-control generalConfig', 'id' => 'isFatherNameRequiredForEmployee')) !!}
{!! Form::label('is mother name required for employee', 'Is Mother Name Required For Employee:', ['class' => 'col-sm-3 control-label generalConfig']) !!}
{!! Form::select('isMotherNameRequiredForEmployee', ($damageData['boolean']), isset($damageData['generalconfigurationData']['isMotherNameReqForEmp']) ? (int)$damageData['generalconfigurationData']['isMotherNameReqForEmp'] : '', array('class'=>'form-control generalConfig', 'id' => 'isMotherNameRequiredForEmployee')) !!}
{!! Form::label('creditOfficerMinSalary', 'Credit Officer Lowest Salary:', ['class' => 'col-sm-3 control-label generalConfig']) !!}
{!! Form::text('creditOfficerMinSalary',$damageData['generalconfigurationData']['creditOfficerMinSalary'] ?? '', ['class' => 'form-control generalConfig', 'id' => 'creditOfficerMinSalary', 'type' => 'text']) !!}
{!! Form::label('ceoSalary', 'Salary of the Chief Executive:', ['class' => 'col-sm-3 control-label generalConfig']) !!}
{!! Form::text('ceoSalary',$damageData['generalconfigurationData']['ceoSalary'] ?? '', ['class' => 'form-control generalConfig', 'id' => 'ceoSalary', 'type' => 'text']) !!}
{!! Form::label('allCreditOfficerYearlySalary', 'Total Monthly Salary of all Credit Officer/ Field Worker:', ['class' => 'col-sm-3 control-label generalConfig']) !!}
{!! Form::text('allCreditOfficerYearlySalary',$damageData['generalconfigurationData']['allCreditOfficerYearlySalary'] ?? '', ['class' => 'form-control generalConfig', 'id' => 'allCreditOfficerYearlySalary', 'type' => 'text']) !!}
{!! Form::submit('Submit', ['id' => 'submit', 'class' => 'btn btn-info submitBtn']) !!} Close
{!! Form::close() !!}
@endsection