@extends('layouts.app') @section('template_title') {{ trans('profile.templateTitle') }} @endsection @section('content')
@if ($user->profile) @if (Auth::user()->id == $user->id)
{!! Form::model($user, array('action' => array('ProfilesController@updateUserAccount', $user->id), 'method' => 'PUT', 'id' => 'user_basics_form')) !!} {!! csrf_field() !!}
{!! Form::label('email', trans('forms.create_user_label_email'), array('class' => 'col-md-3 control-label')); !!}
{!! Form::text('email', $user->email, array('id' => 'email', 'class' => 'form-control', 'placeholder' => trans('forms.create_user_ph_email'))) !!}
@if ($errors->has('email')) {{ $errors->first('email') }} @endif
{!! Form::label('last_name', trans('forms.create_user_label_lastname'), array('class' => 'col-md-3 control-label')); !!}
{!! Form::text('last_name', $user->last_name, array('id' => 'last_name', 'class' => 'form-control', 'placeholder' => trans('forms.create_user_ph_lastname'))) !!}
@if($errors->has('last_name')) {{ $errors->first('last_name') }} @endif
{!! Form::label('first_name', trans('forms.create_user_label_firstname'), array('class' => 'col-md-3 control-label')); !!}
{!! Form::text('first_name', $user->first_name, array('id' => 'first_name', 'class' => 'form-control', 'placeholder' => trans('forms.create_user_ph_firstname'))) !!}
@if($errors->has('first_name')) {{ $errors->first('first_name') }} @endif
{!! Form::label('country', trans('forms.country'), array('class' => 'col-md-3 control-label')); !!}
{!! Form::text('country', $user->country, array('id' => 'country', 'class' => 'form-control', 'placeholder' => trans('forms.country'))) !!}
@if($errors->has('country')) {{ $errors->first('country') }} @endif
{!! Form::label('city', trans('forms.city'), array('class' => 'col-md-3 control-label')); !!}
{!! Form::text('city', $user->city, array('id' => 'city', 'class' => 'form-control', 'placeholder' => trans('forms.city'))) !!}
@if($errors->has('city')) {{ $errors->first('city') }} @endif
{!! Form::label('tel', trans('forms.tel'), array('class' => 'col-md-3 control-label')); !!}
{!! Form::text('tel', $user->tel, array('id' => 'tel', 'class' => 'form-control', 'placeholder' => trans('forms.tel'))) !!}
@if($errors->has('tel')) {{ $errors->first('tel') }} @endif
{!! Form::label('company', trans('forms.company'), array('class' => 'col-md-3 control-label')); !!}
{!! Form::text('company', $user->company, array('id' => 'company', 'class' => 'form-control', 'placeholder' => trans('forms.company'))) !!}
@if($errors->has('company')) {{ $errors->first('company') }} @endif
{!! Form::button( ' ' . trans('profile.submitProfileButton'), array( 'class' => 'btn btn-success start-hidden', 'id' => 'account_save_trigger', 'disabled' => true, 'type' => 'button', 'data-submit' => trans('profile.submitProfileButton'), 'data-target' => '#confirmForm', 'data-modalClass' => 'modal-success', 'data-toggle' => 'modal', 'data-title' => trans('modals.edit_user__modal_text_confirm_title'), 'data-message' => trans('modals.edit_user__modal_text_confirm_message') )) !!}
{!! Form::close() !!}
@else

{{ trans('profile.notYourProfile') }}

@endif @else

{{ trans('profile.noProfileYet') }}

@endif
@include('modals.modal-form') @endsection @section('footer_scripts') @include('scripts.form-modal-script') @if(config('settings.googleMapsAPIStatus')) @include('scripts.gmaps-address-lookup-api3') @endif @include('scripts.user-avatar-dz') @endsection