{{__('Profile Picture')}}

@if($user->profile && $user->profile->picture) @endif
{{__('Click here to upload.')}}

{{__('Profile Settings')}}

{!! Form::open(['url' => route('profile.settings.update-profile', ['user' => $user->name]), 'method' => 'POST', 'data-ajax']) !!}

{{__('PHONE')}} {{__('Change')}}

{!! Form::tel('phone', $user->phone, ['class' => 'form-control', 'v-model' => 'profile.phone', 'id' => 'phone', ':disabled' => '!profile.options.edit_phone']) !!} {!! Form::hidden('phone_country', null, ['id' => 'phone-country']) !!}

{{__('Unverified')}} {{__('Save the entry first, and then enter the code you receive')}} {{__('Resend?')}}

{!! Form::text('phone_code', null, ['class' => 'form-control round', 'placeholder' => __('Enter confirmation code.'), 'v-model' => 'form.phone_code']) !!}

{{__('EMAIL')}} {{__('Change')}}

{!! Form::email('email', $user->email, ['class' => 'form-control', 'v-model' => 'profile.email', ':disabled' => '!profile.options.edit_email']) !!}

{{__('Unverified')}} {{__('Please follow the link provided in the verification email!')}} {{__('Resend?')}}

{{__('Personal Info')}}

{!! Form::label('first_name', __('First Name')) !!} {!! Form::text('first_name', $profile->first_name, ['class' => 'form-control']) !!}
{!! Form::label('last_name', __('Last Name')) !!} {!! Form::text('last_name', $profile->last_name, ['class' => 'form-control']) !!}
{!! Form::label('bio', __('Bio')) !!} {!! Form::textarea('bio', $profile->bio, ['class' => 'form-control', 'rows' => '4']) !!}
{!! Form::label('currency', __('Preferred Currency')) !!} {{Form::select('currency', get_iso_currencies(), $user->currency, ['is' => 'select2', 'html-class' => 'form-control', 'placeholder' => __('Select currency'), 'v-model' => 'profile.currency'])}}

{{__('Notifications')}}

@foreach($notification_settings as $notification)
@if($notification->database !== null) {{Form::checkbox("notification[{$notification->name}][database]", 1, $notification->database)}} @endif
@if($notification->email !== null) {{Form::checkbox("notification[{$notification->name}][email]", 1, $notification->email)}} @endif
@if($notification->sms !== null) {{Form::checkbox("notification[{$notification->name}][sms]", 1, $notification->sms)}} @endif
@endforeach

{{__('Others')}}

{{Form::label('timezone', __('Select Timezone'), ['class' => 'col-xl-3'])}}
{{Form::select('timezone', get_php_timezones(), $user->timezone, ['is' => 'select2', 'html-class' => 'form-control', 'placeholder' => __('Select timezone')])}}
{{Form::password('current_password', ['class' => 'form-control', 'placeholder' => __('Enter Password')])}}

{{__('This is required when you make changes to your phone number or email address.')}}

{!! Form::close() !!}
@push('scripts') @endpush