@if(Sentinel::inRole('teller'))
{!! Form::label('customer_type', Lang::get('litigation.customer_type'))!!} * :
@elseif((Sentinel::inRole('court-teller')) && (Sentinel::getUser()->court_type == "Appeal Court"))
{!! Form::label('customer_type', Lang::get('litigation.appeal_customer_type'))!!} * :
@elseif((Sentinel::inRole('court-teller')) && (Sentinel::getUser()->court_type == "Regional Court"))
{!! Form::label('customer_type', Lang::get('litigation.regional_customer_type'))!!} * :
@elseif((Sentinel::inRole('court-teller')) && (Sentinel::getUser()->court_type == "High Court"))
{!! Form::label('customer_type', Lang::get('litigation.high_customer_type'))!!} * :
@elseif((Sentinel::inRole('court-teller')))
{!! Form::label('customer_type', Lang::get('litigation.customer_type'))!!} * :
@else
{!! Form::label('customer_type', Lang::get('customer.customer_type'))!!} * :
@endif
{!! Form::select('customer_type', $customer_type, null, ['placeholder' => Lang::get('customer.please_select'), 'class' => 'form-control'] ) !!}
@if(Sentinel::inRole('teller') || (Sentinel::inRole('court-teller')))
{!! Form::label('first_name', Lang::get('litigation.first_name'))!!} * :
@else
{!! Form::label('first_name', Lang::get('customer.first_name')) !!} * :
@endif
{!! Form::text('first_name', null, ['class' => 'form-control','onblur' => 'duplicateCustomerCheck()','onkeyup' => 'this.value = this.value.toUpperCase()']) !!}
@if(Sentinel::inRole('teller') || (Sentinel::inRole('court-teller')))
{!! Form::label('second_name', Lang::get('litigation.second_name'))!!} * :
@else
{!! Form::label('second_name', Lang::get('customer.second_name')) !!} * :
@endif
{!! Form::text('second_name', null, ['class' => 'form-control','onblur' => 'duplicateCustomerCheck()','onkeyup' => 'this.value = this.value.toUpperCase()']) !!}
@if(Sentinel::inRole('teller') || (Sentinel::inRole('court-teller')))
{!! Form::label('third_name', Lang::get('litigation.third_name'))!!} * :
@else
{!! Form::label('third_name', Lang::get('customer.third_name')) !!} * :
@endif
{!! Form::text('third_name', null, ['class' => 'form-control','onblur' => 'duplicateCustomerCheck()','onkeyup' => 'this.value = this.value.toUpperCase()']) !!}
@if(Sentinel::inRole('teller') || (Sentinel::inRole('court-teller')))
{!! Form::label('fourth_name', Lang::get('litigation.fourth_name'))!!}:
@else
{!! Form::label('fourth_name', Lang::get('customer.fourth_name')) !!}:
@endif
{!! Form::text('fourth_name', null, ['class' => 'form-control','onblur' => 'duplicateCustomerCheck()','onkeyup' => 'this.value = this.value.toUpperCase()']) !!}
{!! Form::label('date_of_birth', Lang::get('customer.date_of_birth')) !!}:
{!! Form::text('date_of_birth', null, ['class' => 'form-control','onhchange' => 'duplicateCustomerCheck()', 'onkeypress' => "javascript:return isNumber(event)"]) !!}
{!! Form::label('place_of_birth', Lang::get('customer.place_of_birth')) !!}:
{!! Form::text('place_of_birth', null, ['class' => 'form-control']) !!}
{!! Form::label('gender', Lang::get('customer.gender')) !!} * :
@if((Sentinel::inRole('teller')) || (Sentinel::inRole('court-teller')))
{!! Form::label('phone_carrier', Lang::get('litigation.phone_carrier')) !!} * :
@else
{!! Form::label('phone_carrier', Lang::get('customer.phone_carrier')) !!} * :
@endif
{!! Form::select('phone_carrier', $phone_carriers, null, ['placeholder' => Lang::get('customer.please_select'), 'class' => 'form-control'] ) !!}
@if((Sentinel::inRole('teller')) || (Sentinel::inRole('court-teller')))
{!! Form::label('mobile_1', Lang::get('litigation.contact_number')) !!} * :
@else
{!! Form::label('mobile_1', Lang::get('customer.contact_number')) !!} * :
@endif
@if(Sentinel::inRole('teller'))
{!! Form::label('phone_carrier2', Lang::get('litigation.phone_carrier')) !!}:
@else
{!! Form::label('phone_carrier2', Lang::get('customer.phone_carrier2')) !!}:
@endif
{!! Form::select('phone_carrier2', $phone_carriers2, null, ['placeholder' => Lang::get('customer.please_select'), 'class' => 'form-control'] ) !!}
@if(isset($customer->mobile_2))
mobile_2 == Null) style="display: none;" @endif>
@if(Sentinel::inRole('teller'))
{!! Form::label('mobile_2', Lang::get('customer.customer_mobile_number')) !!}
@else
{!! Form::label('mobile_2', Lang::get('litigation.customer_mobile_number')) !!}
@endif
@else
@if(Sentinel::inRole('teller'))
{!! Form::label('mobile_2', Lang::get('customer.customer_mobile_number')) !!}
@else
{!! Form::label('mobile_2', Lang::get('litigation.customer_mobile_number')) !!}
@endif
@endif
{!! Form::label('email', Lang::get('customer.email')) !!}:
{!! Form::email('email', null, ['class' => 'form-control']) !!}
{!! Form::label('address', Lang::get('customer.address')) !!}:
{!! Form::text('address', null, ['class' => 'form-control']) !!}
@if(isset($customer))
:
@else
:
@endif
@if(isset($customer))
{!! Form::label('district', Lang::get('customer.district')) !!}:
{!! Form::select('district', $districts, null, ['placeholder' => Lang::get('customer.please_select'),'class' => 'form-control'] ) !!}
@else
{!! Form::label('district', Lang::get('customer.district')) !!}:
@endif
@if(isset($customer))
{!! Form::label('sub_division', Lang::get('customer.sub_division')) !!}:
{!! Form::select('sub_division', $sub_divisions, null, ['placeholder' => Lang::get('customer.please_select'),'class' => 'form-control','required' => 'true'] ) !!}
@else
{!! Form::label('sub_division', Lang::get('customer.sub_division')) !!}:
@endif
@if((Sentinel::inRole('teller')) || (Sentinel::inRole('court-teller')))
{!! Form::label('area', Lang::get('litigation.section')) !!}:
@else
{!! Form::label('area', Lang::get('customer.section')) !!}:
@endif
{!! Form::text('area', null, ['class' => 'form-control']) !!}
@if((Sentinel::inRole('teller')) || (Sentinel::inRole('court-teller')))
{!! Form::label('block',Lang::get('litigation.block')) !!}:
@else
{!! Form::label('block',Lang::get('customer.block')) !!}:
@endif
{!! Form::text('block', null, ['class' => 'form-control']) !!}
{!! Form::label('photo', Lang::get('customer.photo')) !!}:
@if ($mode == 'edit')
@if (isset($customer->file_path) && Storage::disk('local')->exists($customer->file_path))
{!! Form::label('uploaded_photo', Lang::get('customer.uploaded_photo')) !!}:
@endif
@endif