@extends('layout') @section('page_title', __('firstcop.auth.register')) @section('content')

{{__('Register')}}

@csrf
{{ Form::text('email', old('email'), ['class' => 'fc-input' . ($errors->has('email') ? ' is-invalid' : ''), 'required'=> true,'placeholder' => __('Email')]) }} @if ($errors->has('email')) {{ $errors->first('email') }} @endif
{{ Form::text('lastname', old('lastname'), ['class' => 'fc-input' . ($errors->has('lastname') ? ' is-invalid' : ''), 'required'=> true,'placeholder' =>__('Prénom')]) }} @if ($errors->has('lastname')) {{ $errors->first('lastname') }} @endif
{{ Form::text('name', old('name'), ['class' => 'fc-input' . ($errors->has('name') ? ' is-invalid' : ''), 'required'=> true,'placeholder' => __('Nom')]) }} @if ($errors->has('name')) {{ $errors->first('name') }} @endif
@if ($errors->has('password')) {{ $errors->first('password') }} @endif
{{--
@if ($errors->has('firstname')) {{ $errors->first('firstname') }} @endif
@if ($errors->has('lastname')) {{ $errors->first('lastname') }} @endif
--}}
@if ($errors->has('address1')) {{ $errors->first('address1') }} @endif
@if ($errors->has('address2')) {{ $errors->first('address2') }} @endif
@if ($errors->has('city')) {{ $errors->first('city') }} @endif
@if ($errors->has('postalCode')) {{ $errors->first('postalCode') }} @endif
@if ($errors->has('phone')) {{ $errors->first('phone') }} @endif
{{Form::select('country', \App\Models\Country::isActive()->get()->pluck('name', 'name'), $address->country??'France', ['class' => ['fc-input']])}}
@if ($errors->has('country')) {{ $errors->first('country') }} @endif
@endsection