@if(Sentinel::inRole('teller')) {{Lang::get('litigation.personal_details')}} @elseif((Sentinel::inRole('court-teller')) && (Sentinel::getUser()->court_type == "Appeal Court")) {{Lang::get('litigation.appeal_personal_details')}} @elseif((Sentinel::inRole('court-teller')) && (Sentinel::getUser()->court_type == "Regional Court")) {{Lang::get('litigation.regional_personal_details')}} @elseif((Sentinel::inRole('court-teller')) && (Sentinel::getUser()->court_type == "High Court")) {{Lang::get('litigation.high_personal_details')}} @elseif((Sentinel::inRole('court-teller'))) {{Lang::get('litigation.personal_details')}} @else {{Lang::get('customer.personal_details')}} @endif

@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'))) {{Lang::get('litigation.contact_details')}} @else {{Lang::get('customer.contact_details')}} @endif

@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(isset($customer->mobile_1))
{{substr($customer->mobile_1, 0, 2)}}
@else
0
{!! Form::text('mobile_1', null, ['class' => 'form-control', 'minlength' => '7', 'maxlength' => '7','onkeypress'=>"allowNumbersOnly(event)", 'oninput'=>"removeNonNumeric(this)",'onblur' => 'duplicateCustomerCheck()','oninput' => "enforceMaxLength(this, 7)"]) !!}
@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
{{substr($customer->mobile_2, 0, 2)}}
@else @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')) !!}:
Not Found
@endif @endif