@extends('layouts.master') @section('title') {{translate('edit charge')}} @endsection @section('content')
{{translate('edit charge')}}
{!! Form::open(array('url' => url('charge/'.$charge->id.'/update'), 'method' => 'post', 'class' => 'form-horizontal')) !!}
{!! Form::label('name',translate('name')." *",array('class'=>'col-sm-2 control-label')) !!}
{!! Form::text('name',$charge->name, array('class' => 'form-control', 'placeholder'=>"",'required'=>'required')) !!}
{!! Form::label('product',translate('product')." *",array('class'=>'col-sm-2 control-label')) !!}
{!! Form::text('product',$charge->product, array('class' => 'form-control', 'id'=>"product",'required'=>'required','readonly'=>'readonly')) !!}
{!! Form::label('loan_charge_type',translate('charge')." ".translate('type'),array('class'=>'col-sm-2 control-label')) !!}
{!! Form::select('loan_charge_type',['disbursement'=>translate('disbursement'),'specified_due_date'=>translate('specified_due_date'),'installment_fee'=>translate('installment_fee'),'overdue_installment_fee'=>translate('overdue_installment_fee'),'loan_rescheduling_fee'=>translate('loan_rescheduling_fee'),'overdue_maturity'=>translate('overdue_maturity')],$charge->charge_type, array('class' => 'form-control', 'id'=>"loan_charge_type",'required'=>'required')) !!}
{!! Form::label('savings_charge_type',translate('charge')." ".translate('type'),array('class'=>'col-sm-2 control-label')) !!}
{!! Form::select('savings_charge_type',['specified_due_date'=>translate('specified_due_date'),'savings_activation'=>translate('savings_activation'),'withdrawal_fee'=>translate('withdrawal_fee'),'annual_fee'=>translate('annual_fee'),'monthly_fee'=>translate('monthly_fee')],$charge->charge_type, array('class' => 'form-control', 'id'=>"savings_charge_type",'required'=>'required')) !!}
{!! Form::label('amount',translate('amount')." *",array('class'=>'col-sm-2 control-label')) !!}
{!! Form::text('amount',$charge->amount, array('class' => 'form-control touchspin', 'id'=>"amount",'required'=>'required')) !!}
{!! Form::label('loan_charge_option',translate('charge')." ".translate('option'),array('class'=>'col-sm-2 control-label')) !!}
{!! Form::select('loan_charge_option',['fixed'=>translate('fixed'),'principal_due'=>translate('principal').' '.translate('due'),'principal_interest'=>translate('principal').' + '.translate('interest').' '.translate('due'),'interest_due'=>translate('interest').' '.translate('due'),'total_due'=>translate('total').' '.translate('due'),'original_principal'=>translate('original').' '.translate('principal')],$charge->charge_option, array('class' => 'form-control', 'id'=>"loan_charge_option",'required'=>'required')) !!}
{!! Form::label('savings_charge_option',translate('charge')." ".translate('option'),array('class'=>'col-sm-2 control-label')) !!}
{!! Form::select('savings_charge_option',['fixed'=>translate('fixed'),'percentage'=>translate('percentage')],$charge->charge_option, array('class' => 'form-control', 'id'=>"savings_charge_option",'required'=>'required')) !!}
{!! Form::label('penalty',translate('penalty'),array('class'=>'col-sm-2 control-label')) !!}
{!! Form::select('penalty',['1'=>translate('yes'),'0'=>translate('no')],$charge->penalty, array('class' => 'form-control', 'id'=>"penalty",'required'=>'required')) !!}
{!! Form::label('active',translate('active'),array('class'=>'col-sm-2 control-label')) !!}
{!! Form::select('active',['1'=>translate('yes'),'0'=>translate('no')],$charge->active, array('class' => 'form-control', 'id'=>"active",'required'=>'required')) !!}
{!! Form::label('override',translate('override'),array('class'=>'col-sm-2 control-label')) !!}
{!! Form::select('override',['1'=>translate('yes'),'0'=>translate('no')],$charge->override, array('class' => 'form-control', 'id'=>"override",'required'=>'required')) !!}
{!! Form::close() !!}
@endsection @section('footer-scripts') @endsection