@extends('layouts.app') @section('title', __('lang_v1.my_profile')) @section('content') @lang('lang_v1.my_profile') {!! Form::open(['url' => action('UserController@updateProfile'), 'method' => 'post', 'id' => 'edit_user_profile_form', 'class' => 'form-horizontal', 'files' => true ]) !!} @lang('user.edit_profile') {!! Form::label('surname', __('business.prefix') . ':', ['class' => 'col-sm-3 control-label']) !!} {!! Form::text('surname', $user->surname, ['class' => 'form-control','placeholder' => __('business.prefix_placeholder')]); !!} {!! Form::label('first_name', __('business.first_name') . ':', ['class' => 'col-sm-3 control-label']) !!} {!! Form::text('first_name', $user->first_name, ['class' => 'form-control','placeholder' => __('business.first_name'), 'required']); !!} {!! Form::label('last_name', __('business.last_name') . ':', ['class' => 'col-sm-3 control-label']) !!} {!! Form::text('last_name', $user->last_name, ['class' => 'form-control','placeholder' => __('business.last_name')]); !!} {!! Form::label('email', __('business.email') . ':', ['class' => 'col-sm-3 control-label']) !!} {!! Form::email('email', $user->email, ['class' => 'form-control','placeholder' => __('business.email') ]); !!} {!! Form::label('language', __('business.language') . ':', ['class' => 'col-sm-3 control-label']) !!} {!! Form::select('language',$languages, $user->language, ['class' => 'form-control select2']); !!} @lang('messages.update') {!! Form::close() !!} {!! Form::open(['url' => action('UserController@updatePassword'), 'method' => 'post', 'id' => 'edit_password_form', 'class' => 'form-horizontal' ]) !!} @lang('user.change_password') {!! Form::label('current_password', __('user.current_password') . ':', ['class' => 'col-sm-3 control-label']) !!} {!! Form::password('current_password', ['class' => 'form-control','placeholder' => __('user.current_password'), 'required']); !!} {!! Form::label('new_password', __('user.new_password') . ':', ['class' => 'col-sm-3 control-label']) !!} {!! Form::password('new_password', ['class' => 'form-control','placeholder' => __('user.new_password'), 'required']); !!} {!! Form::label('confirm_password', __('user.confirm_new_password') . ':', ['class' => 'col-sm-3 control-label']) !!} {!! Form::password('confirm_password', ['class' => 'form-control','placeholder' => __('user.confirm_new_password'), 'required']); !!} @lang('messages.update') {!! Form::close() !!} @endsection