@extends('layouts.master') @section('title') {{ trans_choice('general.add',1) }} {{ trans_choice('general.other_income',1) }} @endsection @section('content')

{{ trans_choice('general.add',1) }} {{ trans_choice('general.other_income',1) }}

{!! Form::open(array('url' => url('other_income/store'), 'method' => 'post','class'=>'', 'name' => 'form',"enctype"=>"multipart/form-data")) !!}

{{ trans_choice('general.required',1) }} {{ trans_choice('general.field',2) }}

{!! Form::label('branch_id',trans_choice('general.branch',1),array('class'=>' control-label')) !!} {!! Form::select('branch_id',$branches,null, array('class' => 'form-control select2','placeholder'=>'','required'=>'required','id'=>'contribution_batch_id')) !!}
{!! Form::label('other_income_type_id',trans_choice('general.income',1).' '.trans_choice('general.type',1),array('class'=>' control-label')) !!} {!! Form::select('other_income_type_id',$types,null, array('class' => 'form-control','required'=>'required')) !!}
{!! Form::label('amount',trans_choice('general.income',1).' '.trans_choice('general.amount',1),array('class'=>'')) !!} {!! Form::text('amount',null, array('class' => 'form-control touchspin', 'placeholder'=>"",'required'=>'required')) !!}
{!! Form::label('date',trans_choice('general.date',1),array('class'=>'')) !!} {!! Form::text('date',null, array('class' => 'form-control date-picker', 'placeholder'=>"",'required'=>'required')) !!}

{{ trans_choice('general.optional',1) }} {{ trans_choice('general.field',2) }}

{!! Form::label('notes',trans_choice('general.description',1),array('class'=>'')) !!} {!! Form::textarea('notes',null, array('class' => 'form-control')) !!}
{!! Form::label('files',trans_choice('general.file',2).'('.trans_choice('general.borrower_file_types',1).')',array('class'=>'')) !!} {!! Form::file('files[]', array('class' => 'form-control', 'multiple'=>"",'rows'=>'3')) !!}
{{trans_choice('general.select_thirty_files',1)}}

{{trans_choice('general.custom_field',2)}}

@foreach($custom_fields as $key)
{!! Form::label($key->id,$key->name,array('class'=>'')) !!} @if($key->field_type=="number") required==1) required @endif> @endif @if($key->field_type=="textfield") required==1) required @endif> @endif @if($key->field_type=="date") required==1) required @endif> @endif @if($key->field_type=="textarea") @endif @if($key->field_type=="decimal") required==1) required @endif> @endif
@endforeach

Click here to add custom fields on this page

{!! Form::close() !!}
@endsection @section('footer-scripts') @endsection