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

{{ trans_choice('general.edit',1) }} {{ trans_choice('general.contribution',1) }}

{!! Form::open(array('url' => url('contribution/'.$contribution->id.'/update'), 'method' => 'post','class'=>'', 'name' => 'form',"enctype"=>"multipart/form-data")) !!}

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

@if(isset($_REQUEST['return_url'])) @endif
{!! Form::label('branch_id',trans_choice('general.branch',1),array('class'=>' control-label')) !!} {!! Form::select('branch_id',$branches,$contribution->branch_id, 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,$contribution->member_id, array('class' => 'form-control select2','placeholder'=>'','required'=>'required','id'=>'member_id')) !!}
{!! Form::label('contribution_batch_id',trans_choice('general.batch',1),array('class'=>' control-label')) !!} {!! Form::select('contribution_batch_id',$batches,$contribution->contribution_batch_id, array('class' => 'form-control select2','placeholder'=>'','required'=>'required','id'=>'contribution_batch_id')) !!}
{!! Form::label('contribution_type_id',trans_choice('general.type',1),array('class'=>' control-label')) !!} {!! Form::select('contribution_type_id',$contribution_types,$contribution->contribution_type_id, array('class' => 'form-control select2','placeholder'=>'','id'=>'contribution_type_id')) !!}
{!! Form::label('amount',trans_choice('general.income',1).' '.trans_choice('general.amount',1),array('class'=>'')) !!} {!! Form::text('amount',$contribution->amount, array('class' => 'form-control touchspin', 'placeholder'=>"",'required'=>'required')) !!}
{!! Form::label('date',trans_choice('general.date',1),array('class'=>'')) !!} {!! Form::text('date',$contribution->date, array('class' => 'form-control date-picker', 'placeholder'=>"",'required'=>'required')) !!}
{!! Form::label('fund_id',trans_choice('general.fund',1),array('class'=>' control-label')) !!} {!! Form::select('fund_id',$funds,$contribution->fund_id, array('class' => 'form-control select2','placeholder'=>'','required'=>'required','id'=>'fund_id')) !!}
{!! Form::label('payment_method_id',trans_choice('general.payment',1).' '.trans_choice('general.method',1),array('class'=>' control-label')) !!} {!! Form::select('payment_method_id',$payment_methods,$contribution->payment_method_id, array('class' => 'form-control select2','placeholder'=>'','required'=>'required','id'=>'payment_method_id')) !!}

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

{!! Form::label('notes',trans_choice('general.description',1),array('class'=>'')) !!} {!! Form::textarea('notes',$contribution->notes, 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)}}
@foreach(unserialize($contribution->files) as $key=>$value) {!! $value!!}
@endforeach

{{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 value="@if(!empty(\App\Models\CustomFieldMeta::where('custom_field_id',$key->id)->where('parent_id',$contribution->id)->where('category','contributions')->first())){{\App\Models\CustomFieldMeta::where('custom_field_id',$key->id)->where('parent_id',$contribution->id)->where('category','contributions')->first()->name}} @endif"> @endif @if($key->field_type=="textfield") required==1) required @endif value="@if(!empty(\App\Models\CustomFieldMeta::where('custom_field_id',$key->id)->where('parent_id',$contribution->id)->where('category','contributions')->first())){{\App\Models\CustomFieldMeta::where('custom_field_id',$key->id)->where('parent_id',$contribution->id)->where('category','contributions')->first()->name}} @endif"> @endif @if($key->field_type=="date") required==1) required @endif value="@if(!empty(\App\Models\CustomFieldMeta::where('custom_field_id',$key->id)->where('parent_id',$contribution->id)->where('category','contributions')->first())){{\App\Models\CustomFieldMeta::where('custom_field_id',$key->id)->where('parent_id',$contribution->id)->where('category','contributions')->first()->name}} @endif"> @endif @if($key->field_type=="textarea") @endif @if($key->field_type=="decimal") required==1) required @endif value="@if(!empty(\App\Models\CustomFieldMeta::where('custom_field_id',$key->id)->where('parent_id',$contribution->id)->where('category','contributions')->first())){{\App\Models\CustomFieldMeta::where('custom_field_id',$key->id)->where('parent_id',$contribution->id)->where('category','contributions')->first()->name}} @endif"> @endif
@endforeach

Click here to add custom fields on this page

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