@extends('layouts.app') @section('content')
Meu perfil
@if(session('success'))
{{ session('message') }}
@endif @if(session('success') && session('success') == false)
{{ session('message') }}
@endif
@csrf
Nome
@if($errors->has('name'))
{{ $errors->first('name') }}
@endif
E-mail
@if($errors->has('email'))
{{ $errors->first('email') }}
@endif
Sexo
@foreach(\App\Models\Gender::all() as $gender)
information('gender') == $gender->short_name ) ? 'selected="selected"' : '' }}>{{ $gender->name }}
@endforeach
@if($errors->has('gender'))
{{ $errors->first('gender') }}
@endif
Endereço
Endereço (rua, av ...)
@if($errors->has('address'))
{{ $errors->first('address') }}
@endif
Número
@if($errors->has('number'))
{{ $errors->first('number') }}
@endif
Bairro
@if($errors->has('neighborhood'))
{{ $errors->first('neighborhood') }}
@endif
Complemento
@if($errors->has('complement'))
{{ $errors->first('complement') }}
@endif
Estado
{{ 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
Cidade
{{ 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
CEP
@if($errors->has('zipcode'))
{{ $errors->first('zipcode') }}
@endif
Contato
Telefone
@if($errors->has('phone'))
{{ $errors->first('phone') }}
@endif
Celular
@if($errors->has('cellphone'))
{{ $errors->first('cellphone') }}
@endif
Site
@if($errors->has('site'))
{{ $errors->first('site') }}
@endif
Dados de acesso
Senha atual
@if($errors->has('current_password'))
{{ $errors->first('current_password') }}
@endif
Senha
@if($errors->has('password'))
{{ $errors->first('password') }}
@endif
Confirme nova senha
@if($errors->has('password_confirmation'))
{{ $errors->first('password_confirmation') }}
@endif
Salvar
@endsection