@extends('layouts.customer')
@section('title', trans('general.title.edit', ['type' => trans('auth.profile')]))
@section('content')
{!! Form::model($user, [
'method' => 'PATCH',
'files' => true,
'url' => ['customers/profile/update'],
'role' => 'form',
'class' => 'form-loading-button'
]) !!}
{{ Form::textGroup('name', trans('general.name'), 'id-card-o') }}
{{ Form::emailGroup('email', trans('general.email'), 'envelope') }}
{{ Form::textGroup('tax_number', trans('general.tax_number'), 'percent', []) }}
{{ Form::textGroup('phone', trans('general.phone'), 'phone', []) }}
{{ Form::textareaGroup('address', trans('general.address')) }}
{{ 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()) }}
{{ Form::fileGroup('picture', trans_choice('general.pictures', 1)) }}
@permission(['update-customers-profile'])
@endpermission
{!! Form::close() !!}
@endsection
@push('js')
@endpush
@push('css')