@extends($sc_templatePath.'.layout') @section('block_main')

{{ sc_language_render('customer.title_register') }}

{!! csrf_field() !!}
@if (sc_config('customer_lastname'))
@if ($errors->has('first_name')) {{ $errors->first('first_name') }} @endif
@if ($errors->has('last_name')) {{ $errors->first('last_name') }} @endif
@else
@if ($errors->has('first_name')) {{ $errors->first('first_name') }} @endif
@endif @if (sc_config('customer_name_kana'))
@if ($errors->has('first_name_kana')) {{ $errors->first('first_name_kana') }} @endif
@if ($errors->has('last_name_kana')) {{ $errors->first('last_name_kana') }} @endif
@endif
@if ($errors->has('email')) {{ $errors->first('email') }} @endif
@if (sc_config('customer_phone'))
@if ($errors->has('phone')) {{ $errors->first('phone') }} @endif
@endif @if (sc_config('customer_postcode'))
@if ($errors->has('postcode')) {{ $errors->first('postcode') }} @endif
@endif
@if ($errors->has('address1')) {{ $errors->first('address1') }} @endif
@if (sc_config('customer_address2'))
@if ($errors->has('address2')) {{ $errors->first('address2') }} @endif
@endif @if (sc_config('customer_address3'))
@if ($errors->has('address3')) {{ $errors->first('address3') }} @endif
@endif @if (sc_config('customer_company'))
@if ($errors->has('company')) {{ $errors->first('company') }} @endif
@endif @if (sc_config('customer_country'))
@if ($errors->has('country')) {{ $errors->first('country') }} @endif
@endif @if (sc_config('customer_sex'))
@if ($errors->has('sex')) {{ $errors->first('sex') }} @endif
@endif @if (sc_config('customer_birthday'))
@if ($errors->has('birthday')) {{ $errors->first('birthday') }} @endif
@endif @if (sc_config('customer_group'))
@if ($errors->has('group')) {{ $errors->first('group') }} @endif
@endif {{-- Custom fields --}} @php $customFields = isset($customFields) ? $customFields : []; $fields = []; @endphp @php sc_check_view($sc_templatePath.'.common.render_form'); @endphp @include($sc_templatePath.'.common.render_form', ['customFields' => $customFields, 'fields' => $fields]) {{-- //Custom fields --}}
@if ($errors->has('password')) {{ $errors->first('password') }} @endif
@if ($errors->has('password_confirmation')) {{ $errors->first('password_confirmation') }} @endif
{!! $viewCaptcha ?? ''!!}
@php $dataButton = [ 'class' => '', 'id' => 'sc_button-form-process', 'type_w' => '', 'type_t' => 'buy', 'type_a' => '', 'type' => 'submit', 'name' => ''.sc_language_render('customer.signup'), 'html' => 'name="SubmitCreate"' ]; @endphp @include($sc_templatePath.'.common.button.button', $dataButton)
@endsection