@extends('layouts.front') @section('title') @lang('Profile Settings') - {{config('app.name')}} @endsection @section('meta-tags') @endsection @section('meta-tags-og') @endsection @section('styles') @include('partials.phone_style') @endsection @section('sidebar') @include('includes.user-account-sidebar') @endsection @section('above_content') @endsection @section('content')

@lang('Profile Settings')

@if(session()->has('profile_updated')) @endif @include('includes.form_errors') @if(config('settings.phone_otp_verification')) @if(!$user->mobile)
@lang('Please add your phone number.')
@elseif(!$user->mobile->verified)
@lang('Please verify your phone number.') {!! Form::open(['method'=>'post', 'action'=>'SendVerificationSMS@sendOtp', 'id'=>'send-otp-form']) !!}
{!! Form::submit(__('Click here to send verification code to your phone.'), ['class'=>'btn-primary btn-link', 'name'=>'submit_button', 'id'=>'send-otp-btn']) !!}
{{ Form::close() }}
@endif @endif
{!! Form::model($user, ['method'=>'patch', 'action'=>['FrontSettingsController@updateProfile'], 'onsubmit'=>'submit_button.disabled = true; submit_button.value = "' . __('Please Wait...') . '"; return true;', 'id'=>'update-profile-form']) !!}
{!! Form::label('name', __('Name:')) !!} {!! Form::text('name', null, ['class'=>'form-control', 'placeholder'=>__('Enter name'), 'required'])!!}
{!! Form::label('username', __('Username:')) !!} {!! Form::text('username', null, ['class'=>'form-control', 'placeholder'=>__('Enter username'), 'required'])!!}
{!! Form::label('email', __('Email:')) !!} {!! Form::email('email', null, ['class'=>'form-control', 'placeholder'=>__('Enter email'), 'required']) !!}
@if(config('settings.phone_otp_verification'))
{!! Form::label('phone-number','Phone Number:') !!}
@endif
{!! Form::label('password', __('Password:')) !!} {!! Form::password('password', ['class'=>'form-control', 'placeholder'=>__('Enter password')]) !!}
{!! Form::label('password_confirmation', __('Confirm Password:')) !!} {!! Form::password('password_confirmation', ['class'=>'form-control', 'placeholder'=>__('Enter password again')]) !!}
{!! Form::close() !!}
@endsection @section('scripts') @include('partials.phone_script') @endsection