@extends('master') @section('title') Editar mi información @stop @section('custom_js_files') @stop @section('content')
@include('components.user_account_edit_sidebar')

Editar mi información

{{ Form::open(['url' => '#', 'id' => 'form_acc_edit', 'files' => true]) }} {!! Form::file('avatar', ['id' => 'field_acc_avatar', 'style' => 'display: none;', 'accept' => 'image/*']) !!}
{{ Form::text('name', Auth::user()->name, ['class' => 'input']) }}
{{ Form::email('email', Auth::user()->email, ['class' => 'input', 'disabled']) }}
{{ Form::number('phone', Auth::user()->phone, ['class' => 'input']) }}
{{ Form::select('gender', getGender(), Auth::user()->gender, ['class' => 'input form-select']) }}
@if(is_null(Auth::user()->birthday)) {{ Form::number('bd_day', null, ['class' => 'input', 'placeholder' => 'Día', 'min' => '1', 'max' => '31']) }} @else {{ Form::number('bd_day', explode('-', Auth::user()->birthday)[2], ['class' => 'input', 'placeholder' => 'Día', 'min' => '1', 'max' => '31']) }} @endif
@if(is_null(Auth::user()->birthday)) {{ Form::select('db_month', getMonths(), null, ['class' => 'input form-select']) }} @else {{ Form::select('db_month', getMonths(), explode('-', Auth::user()->birthday)[1], ['class' => 'input form-select']) }} @endif
@if(is_null(Auth::user()->birthday)) {{ Form::number('bd_year', null, ['class' => 'input', 'placeholder' => 'Año', 'min' => date('Y') - 70, 'max' => date('Y') - 18]) }} @else {{ Form::number('bd_year', explode('-', Auth::user()->birthday)[0], ['class' => 'input', 'placeholder' => 'Año', 'min' => date('Y') - 70, 'max' => date('Y') - 18]) }} @endif
{{ Form::close() }}
@stop