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

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

{!! Form::open(array('url' => url('pledge/store'), 'method' => 'post','class'=>'', 'name' => 'form',"enctype"=>"multipart/form-data")) !!}
{!! 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('member_id',trans_choice('general.member',1),array('class'=>' control-label')) !!} {!! Form::select('member_id',$members,null, array('class' => 'form-control select2','required'=>'required','placeholder'=>'')) !!}
{!! Form::label('campaign_id',trans_choice('general.campaign',1),array('class'=>' control-label')) !!} {!! Form::select('campaign_id',$campaigns,null, array('class' => 'form-control select2','required'=>'required','placeholder'=>'')) !!}
{!! Form::label('amount',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',date("Y-m-d"), array('class' => 'form-control date-picker', 'placeholder'=>"",'required'=>'required')) !!}
{!! Form::label('recurring',trans_choice('general.recurring',1),array('class'=>'active')) !!} {!! Form::select('recurring', array('1'=>trans_choice('general.yes',1),'0'=>trans_choice('general.no',1)),0, array('class' => 'form-control','id'=>'recurring')) !!}
{!! Form::label('recur_frequency',trans_choice('general.recur_frequency',1),array('class'=>'')) !!} {!! Form::number('recur_frequency',1, array('class' => 'form-control','id'=>'recurF')) !!}
{!! Form::label('recur_type',trans_choice('general.recur_type',1),array('class'=>'active')) !!} {!! Form::select('recur_type', array('day'=>trans_choice('general.day',1).'(s)','week'=>trans_choice('general.week',1).'(s)','month'=>trans_choice('general.month',1).'(s)','year'=>trans_choice('general.year',1).'(s)'),'month', array('class' => 'form-control','id'=>'recurT')) !!}
{!! Form::label('recur_start_date',trans_choice('general.recur_starts',1),array('class'=>'')) !!} {!! Form::text('recur_start_date',date("Y-m-d"), array('class' => 'form-control date-picker','id'=>'recur_start_date')) !!}
{!! Form::label('recur_end_date',trans_choice('general.recur_ends',1),array('class'=>'')) !!} {!! Form::text('recur_end_date',null, array('class' => 'form-control date-picker','id'=>'recur_end_date')) !!}

{!! Form::label('notes',trans_choice('general.description',1),array('class'=>'')) !!} {!! Form::textarea('notes',null, array('class' => 'form-control')) !!}

{{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