@extends('layouts.master') @section('title') {{translate('add saving account')}} @endsection @section('content')
{{translate('add saving account')}}
{!! Form::open(array('url' => url('saving/store'), 'method' => 'post', 'id' => 'savings_form',"enctype"=>"multipart/form-data", 'class' => 'form-horizontal')) !!}
{!! Form::label('borrower_id',translate('borrower')." *",array('class'=>'col-sm-3 control-label')) !!}
{!! Form::select('borrower_id',$borrowers,$borrower_id, array('class' => ' select2 form-control', 'placeholder'=>"Select",'required'=>'required','id'=>'borrower_id')) !!}
{!! Form::label('savings_product_id',translate('product')." *",array('class'=>'col-sm-3 control-label')) !!}
{!! Form::select('savings_product_id',$savings_products,null, array('class' => 'select2 form-control','required'=>'','id'=>'savings_product_id')) !!}
{!! Form::label('date',translate('date')." *",array('class'=>'col-sm-3 control-label')) !!}
{!! Form::text('date',date("Y-m-d"), array('class' => 'form-control date-picker', 'placeholder'=>"yyyy-mm-dd",'required'=>'required','id'=>'date')) !!}
{!! Form::label('notes',translate('note'),array('class'=>'col-sm-3 control-label')) !!}
{!! Form::textarea('notes',null, array('class' => 'form-control', 'rows'=>'2',)) !!}

{{translate('charge')}}

@foreach($savings_product->charges as $key) @if(!empty($key->charge)) @endif @endforeach
{{translate('name')}} {{translate('type')}} {{translate('amount')}} {{translate('collected on')}} {{translate('date')}}
{{ $key->charge->name }} @if($key->charge->charge_option=="fixed") {{translate('fixed')}} @endif @if($key->charge->charge_option=="principal_due") % {{translate('principal due')}} @endif @if($key->charge->charge_option=="principal_interest") % {{translate('principal')}} + {{translate('interest due')}} @endif @if($key->charge->charge_option=="interest_due") % {{translate('interest due')}} @endif @if($key->charge->charge_option=="total_due") % {{translate('total due')}} @endif @if($key->charge->charge_option=="original_principal") % {{translate('original principal')}} @endif @if($key->charge->override==1) @else {{$key->charge->amount}} @endif @if($key->charge->charge_type=='disbursement') {{translate('disbursement')}} @endif @if($key->charge->charge_type=='specified_due_date') {{translate('specified_due_date')}} @endif @if($key->charge->charge_type=='installment_fee') {{translate('installment_fee')}} @endif @if($key->charge->charge_type=='overdue_installment_fee') {{translate('overdue_installment_fee')}} @endif @if($key->charge->charge_type=='loan_rescheduling_fee') {{translate('loan_rescheduling_fee')}} @endif @if($key->charge->charge_type=='overdue_maturity') {{translate('overdue_maturity')}} @endif @if($key->charge->charge_type=='savings_activation') {{translate('savings_activation')}} @endif @if($key->charge->charge_type=='withdrawal_fee') {{translate('withdrawal_fee')}} @endif @if($key->charge->charge_type=='monthly_fee') {{translate('monthly_fee')}} @endif @if($key->charge->charge_type=='annual_fee') {{translate('annual_fee')}} @endif @if($key->charge->charge_type=='specified_due_date') @else @endif
{!! Form::close() !!}
@endsection @section('footer-scripts') @endsection