@extends('EcomAuthViews::layouts.authentication.layout' , ['title' => 'Register Account']) @section('content')
Complete your profile by filling the below required information.
@if($user->email)
@include('EcomAuthViews::icons.envelope') {{$user->email }}
@endif @if($user->phone)
@include('EcomAuthViews::icons.phone') {{$user->phone }}
@endif
@csrf @foreach($fields as $field) @switch($field['type']) @case('date') @component('EcomGeneralViews::components.form.input', [ "parentClass" => "", "size" => $field['size'], "type" => "date", "label" => __($field['label']). " ". ( $field['required'] ? "*" : "") ])
@component('EcomGeneralViews::components.form.input', [ "parentClass" => "", "size" => "third not-responsive", "type" => "select", "label" => ___('ecom.day') ]) @endcomponent @component('EcomGeneralViews::components.form.input', [ "parentClass" => "", "size" => "third not-responsive", "type" => "select", "label" => ___('ecom.month') ]) @endcomponent @component('EcomGeneralViews::components.form.input', [ "parentClass" => "", "size" => "third not-responsive", "type" => "select", "label" => ___('ecom.year') ]) @endcomponent
@error($field['name']) {{$message}} @enderror @endcomponent @break @case('text') @component('EcomGeneralViews::components.form.input', [ "parentClass" => "", "size" => $field['size'], "type" => "text", "label" => ___($field['label']). " ". ( $field['required'] ? "*" : "") ]) @error($field['name']) {{$message}} @enderror @endcomponent @break @case('password') @component('EcomGeneralViews::components.form.input', [ "parentClass" => "", "size" => $field['size'], "type" => "text", "label" => ___($field['label']). " ". ( $field['required'] ? "*" : "") ])
@error($field['name']) {{$message}} @enderror @endcomponent @break @case('phone') @component('EcomAuthViews::components.phone' , ['phone_value' => $field['value'] , 'country_code' =>$country_code ] ) @endcomponent @break @endswitch @endforeach @component('EcomGeneralViews::components.form.input', [ "parentClass" => "", "size" => "full", "type" => "submit", "label" => "" ]) @endcomponent
@endsection @section('scripts') @endsection