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

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

{!! Form::open(array('url' => url('member/'.$member->id.'/update'), 'method' => 'post', 'id' => 'add_member_form',"enctype"=>"multipart/form-data")) !!}
{!! Form::label('branch_id',trans_choice('general.branch',1),array('class'=>' control-label')) !!} {!! Form::select('branch_id',$branches,$member->branch_id, array('class' => 'form-control select2','placeholder'=>'','required'=>'required','id'=>'contribution_batch_id')) !!}
{!! Form::label('first_name',trans_choice('general.first_name',1),array('class'=>'')) !!} {!! Form::text('first_name',$member->first_name, array('class' => 'form-control', 'placeholder'=>trans_choice('general.first_name',1),'required'=>'required')) !!}
{!! Form::label('middle_name',trans_choice('general.middle_name',1),array('class'=>'')) !!} {!! Form::text('middle_name',$member->middle_name, array('class' => 'form-control', 'placeholder'=>'')) !!}
{!! Form::label('last_name',trans_choice('general.last_name',1),array('class'=>'')) !!} {!! Form::text('last_name',$member->last_name, array('class' => 'form-control', 'placeholder'=>'','required'=>'required')) !!}
{!! Form::label('gender',trans_choice('general.gender',1),array('class'=>'')) !!} {!! Form::select('gender',array('male'=>trans_choice('general.male',1),'female'=>trans_choice('general.female',1),'unknown'=>trans_choice('general.unknown',1)),$member->gender, array('class' => 'form-control',''=>'')) !!}
{!! Form::label('marital_status',trans_choice('general.marital_status',1),array('class'=>'')) !!} {!! Form::select('marital_status',array('single'=>trans_choice('general.single',1),'engaged'=>trans_choice('general.engaged',1),'married'=>trans_choice('general.married',1),'divorced'=>trans_choice('general.divorced',1),'widowed'=>trans_choice('general.widowed',1),'separated'=>trans_choice('general.separated',1),'unknown'=>trans_choice('general.unknown',1)),$member->marital_status, array('class' => 'form-control',''=>'')) !!}
{!! Form::label('status',trans_choice('general.status',1),array('class'=>'')) !!} {!! Form::select('status',array('attender'=>trans_choice('general.attender',1),'visitor'=>trans_choice('general.visitor',1),'inactive'=>trans_choice('general.inactive',1),'unknown'=>trans_choice('general.unknown',1)),$member->status, array('class' => 'form-control',''=>'')) !!}
{!! Form::label('home_phone',trans_choice('general.home_phone',1),array('class'=>'')) !!} {!! Form::text('home_phone',$member->home_phone, array('class' => 'form-control')) !!}
{!! Form::label('mobile_phone',trans_choice('general.mobile_phone',1),array('class'=>'')) !!} {!! Form::text('mobile_phone',$member->mobile_phone, array('class' => 'form-control', 'placeholder'=>trans_choice('general.numbers_only',1))) !!}
{!! Form::label('work_phone',trans_choice('general.work_phone',1),array('class'=>'')) !!} {!! Form::text('work_phone',$member->work_phone, array('class' => 'form-control')) !!}
{!! Form::label('email',trans_choice('general.email',1),array('class'=>'')) !!} {!! Form::text('email',$member->email, array('class' => 'form-control', 'placeholder'=>trans_choice('general.email',1))) !!}
{!! Form::label('dob',trans_choice('general.dob',1),array('class'=>'')) !!} {!! Form::text('dob',$member->dob, array('class' => 'form-control date-picker', 'placeholder'=>"yyyy-mm-dd")) !!}
{!! Form::label('address',trans_choice('general.address',1),array('class'=>'')) !!} {!! Form::textarea('address',$member->address, array('class' => 'form-control', 'rows'=>"3")) !!}
{!! Form::label('photo',trans_choice('general.photo',1),array('class'=>'')) !!} {!! Form::file('photo', array('class' => 'form-control', 'placeholder'=>"")) !!}
{!! Form::label('notes',trans_choice('general.description',1),array('class'=>'')) !!} {!! Form::textarea('notes',$member->notes, array('class' => 'form-control', 'placeholder'=>"")) !!}
{!! Form::label('files',trans_choice('general.member',1).' '.trans_choice('general.file',2).'('.trans_choice('general.borrower_file_types',2).')',array('class'=>'')) !!} {!! Form::file('files[]', array('class' => 'form-control', 'multiple'=>"multiple")) !!} {{trans_choice('general.select_thirty_files',2)}}
@foreach(unserialize($member->files) as $key=>$value) {!! $value!!}
@endforeach
{!! Form::label('tags',trans_choice('general.assign',2). ' '.trans_choice('general.tag',2),array('class'=>'')) !!}
  • {{trans_choice('general.all',2)}} {{trans_choice('general.tag',2)}} ({{\App\Models\MemberTag::count()}} {{trans_choice('general.people',2)}}) {!! \App\Helpers\GeneralHelper::createTreeView(0,$menus,$selected_tags) !!}

{{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',$member->id)->where('category','members')->first())){{\App\Models\CustomFieldMeta::where('custom_field_id',$key->id)->where('parent_id',$member->id)->where('category','members')->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',$member->id)->where('category','members')->first())){{\App\Models\CustomFieldMeta::where('custom_field_id',$key->id)->where('parent_id',$member->id)->where('category','members')->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',$member->id)->where('category','members')->first())){{\App\Models\CustomFieldMeta::where('custom_field_id',$key->id)->where('parent_id',$member->id)->where('category','members')->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',$member->id)->where('category','members')->first())){{\App\Models\CustomFieldMeta::where('custom_field_id',$key->id)->where('parent_id',$member->id)->where('category','members')->first()->name}} @endif"> @endif @if($key->field_type=="select") @endif @if($key->field_type=="radiobox") @foreach(explode(',',$key->radio_box_values) as $v)
@endforeach @endif @if($key->field_type=="checkbox") @if(!empty(\App\Models\CustomFieldMeta::where('custom_field_id',$key->id)->where('parent_id',$member->id)->where('category','members')->first()))