@extends('layouts.app') @section('content')

Meu perfil

@if(session('success'))

{{ session('message') }}

@endif @if(session('success') && session('success') == false)

{{ session('message') }}

@endif
@csrf
@if($errors->has('name'))
{{ $errors->first('name') }}
@endif
@if($errors->has('email'))
{{ $errors->first('email') }}
@endif
@if($errors->has('gender'))
{{ $errors->first('gender') }}
@endif

Endereço

@if($errors->has('address'))
{{ $errors->first('address') }}
@endif
@if($errors->has('number'))
{{ $errors->first('number') }}
@endif
@if($errors->has('neighborhood'))
{{ $errors->first('neighborhood') }}
@endif
@if($errors->has('complement'))
{{ $errors->first('complement') }}
@endif
{{ Form::select( 'state_id', ['' => null] + to_select(states()), old('state_id', @$auth->address->state->id), [ 'class' => 'custom-select form-control ' . (($errors->has('state_id')) ? 'is-invalid' : ''), 'id' => 'state_id' ]) }} @if($errors->has('state_id'))
{{ $errors->first('state_id') }}
@endif
{{ Form::select( 'city_id', [to_select($cities)], old('city_id', @$auth->address->city->id), [ 'class' => 'custom-select form-control ' . (($errors->has('city_id')) ? 'is-invalid' : ''), 'id'=>'city_id', ]) }} @if($errors->has('city_id'))
{{ $errors->first('city_id') }}
@endif
@if($errors->has('zipcode'))
{{ $errors->first('zipcode') }}
@endif

Contato

@if($errors->has('phone'))
{{ $errors->first('phone') }}
@endif
@if($errors->has('cellphone'))
{{ $errors->first('cellphone') }}
@endif
@if($errors->has('site'))
{{ $errors->first('site') }}
@endif

Dados de acesso

@if($errors->has('current_password'))
{{ $errors->first('current_password') }}
@endif
@if($errors->has('password'))
{{ $errors->first('password') }}
@endif
@if($errors->has('password_confirmation'))
{{ $errors->first('password_confirmation') }}
@endif
@endsection