@extends('layouts.portal') @section('title', trans('general.title.edit', ['type' => trans('auth.profile')])) @section('content')
{!! Form::model($user, [ 'id' => 'profile', 'method' => 'PATCH', 'route' => ['portal.profile.update', $user->id], '@submit.prevent' => 'onSubmit', '@keydown' => 'form.errors.clear($event.target.name)', 'files' => true, 'role' => 'form', 'class' => 'form-loading-button', 'novalidate' => true ]) !!}
{{ Form::textGroup('name', trans('general.name'), 'user') }} {{ Form::emailGroup('email', trans('general.email'), 'envelope') }} {{ Form::textGroup('tax_number', trans('general.tax_number'), 'percent', [], $user->contact->tax_number) }} {{ Form::textGroup('phone', trans('general.phone'), 'phone', [], $user->contact->phone) }} {{ Form::textareaGroup('address', trans('general.address'), [], $user->contact->address) }} {{ Form::textGroup('city', trans_choice('general.cities', 1), 'city', [], $user->contact->city) }} {{ Form::textGroup('zip_code', trans('general.zip_code'), 'mail-bulk', [], $user->contact->zip_code) }} {{ Form::textGroup('state', trans('general.state'), 'city', [], $user->contact->state) }} {{ Form::selectGroup('country', trans_choice('general.countries', 1), 'globe-americas', trans('countries'), $user->contact->country, []) }} {{ Form::passwordGroup('password', trans('auth.password.current'), 'key', []) }} {{ Form::passwordGroup('password_confirmation', trans('auth.password.current_confirm'), 'key', []) }} {{ Form::selectGroup('locale', trans_choice('general.languages', 1), 'flag', language()->allowed(), $user->locale) }} {{ Form::fileGroup('picture', trans_choice('general.pictures', 1), '', ['dropzone-class' => 'form-file']) }}
@canany(['update-portal-profile']) @endcanany {!! Form::close() !!}
@endsection @push('scripts_start') @endpush