@php /* $layout_page = shop_profile ** Variables:** - $customer - $countries */ @endphp @extends($sc_templatePath.'.account.layout') @section('block_main_profile')
{{ $title }}
@csrf @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 (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
{{ $customer['email'] }}
@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_country')) @php $country = (old('country'))?old('country'):$customer['country']; @endphp
@if ($errors->has('country')) {{ $errors->first('country') }} @endif
@endif @if (sc_config('customer_sex')) @php $sex = old('sex')?old('sex'):$customer['sex']; @endphp
@if($errors->has('sex')) {{ $errors->first('sex') }} @endif
@endif @if (sc_config('customer_birthday'))
@if($errors->has('birthday')) {{ $errors->first('birthday') }} @endif
@endif {{-- Custom fields --}} @php $customFields = isset($customFields) ? $customFields : []; $fields = !empty($customer) ? $customer->getCustomFields() : []; @endphp @php sc_check_view($sc_templatePath.'.common.render_form'); @endphp @include($sc_templatePath.'.common.render_form', ['customFields' => $customFields, 'fields' => $fields]) {{-- //Custom fields --}}
@php $dataButton = [ 'class' => '', 'id' => '', 'type_w' => '', 'type_t' => 'buy', 'type_a' => '', 'type' => 'submit', 'name' => ''.sc_language_render('customer.update_infomation'), 'html' => '' ]; @endphp @include($sc_templatePath.'.common.button.button', $dataButton)
@endsection