@extends('layouts.app') @section('form-title') {{ __('User') }} @endsection @section('breadcrumb') @endsection @section('content') @include('partials.modals.maps') @include('users.signature') @php $google_maps_field = $settings__->google_maps_field ? json_decode($settings__->google_maps_field) : null; @endphp
@csrf @method('PUT')
@if($errors->has('name'))

{{ $errors->first('name') }}

@endif
@if(!empty($user->organisation))
@if(canViewUpdate('edit users of other organizations')) {!! organisations('organisation', old('organisation', $user->organisation_id)) !!} @if($errors->has('organisation'))

{{ $errors->first('organisation') }}

@endif
@else {{ $user->organisation->name }} @endif
@endif @if(allowedToUpdate($user))
{!! userRoles('role', old('role', $user->role), $user->organisation->application_owner) !!} @if($errors->has('role'))

{{ $errors->first('role') }}

@endif
@endif @if(canViewUpdate('edit driver') && $modules__->drivers === 'yes')
{!! driverOptions('driver', old('driver', $user->driver)) !!} @if($errors->has('driver'))

{{ $errors->first('driver') }}

@endif
@endif
@if($errors->has('color'))

{{ $errors->first('color') }}

@endif
@if($errors->has('zip'))

{{ $errors->first('zip') }}

@endif
@if($errors->has('house_number'))

{{ $errors->first('house_number') }}

@endif
@if($errors->has('street'))

{{ $errors->first('street') }}

@endif
@if($errors->has('city'))

{{ $errors->first('city') }}

@endif
@if($google_maps_field->option_to_fill_in === 'yes')
@if($google_maps_field->forward_to_gm_api === 'yes') @else @endif @if($errors->has('gml'))

{{ $errors->first('gml') }}

@endif
@endif
{!! countries(old('country',$user->country_id)) !!} @if($errors->has('country'))

{{ $errors->first('country') }}

@endif
@if($errors->has('mobile'))

{{ $errors->first('mobile') }}

@endif
@if($errors->has('phone'))

{{ $errors->first('phone') }}

@endif
@if(allowedToUpdate($user, 'email'))
@if($errors->has('email'))

{{ $errors->first('email') }}

@endif
@else
{{ $user->email }}
@endif
{!! notificationTypes('notification_type', old('notification_type',$user->notification_type)) !!} @if($errors->has('notification_type'))

{{ $errors->first('notification_type') }}

@endif
@if($errors->has('job_title'))

{{ $errors->first('job_title') }}

@endif
@if(getAuthUser()->can('edit user status'))
{!! userStatus('status', old('status', $user->status)) !!} @if($errors->has('status'))

{{ $errors->first('status') }}

@endif
@endif
{!! languages('language', old('language', $user->language)) !!} @if($errors->has('language'))

{{ $errors->first('language') }}

@endif
{{--
@if($errors->has('pass'))

{{ $errors->first('pass') }}

@endif
--}}
@if($errors->has('avatar'))

{{ $errors->first('avatar') }}

@endif
user profile image
@if($errors->has('avatar'))

{{ $errors->first('avatar') }}

@endif
{!! preferredUserSignature($user->id) !!}
@if(allowedToDeleteUser($user))
@endif
@if(allowedToDeleteUser($user))
@csrf @method('DELETE')
@endif
@include('partials.modals.change-password') @endsection @push('child-scripts') @include('partials.postcode-js') @endpush