@extends('layouts.app') @section('title', ' - Edit User') @section('content')
{{ __('application.user.edit_user') }} {{ __('application.user.user_list') }}
@csrf @method('PUT')
@if ($errors->has('name')) {{ $errors->first('name') }} @endif
{{ __('application.user.this_email_will_be_used_as_your_login_email') }} @if ($errors->has('email')) {{ $errors->first('email') }} @endif
@if ($errors->has('language_id')) {{ $errors->first('language_id') }} @endif
@if ($errors->has('place_id')) {{ $errors->first('place_id') }} @endif
@if ($errors->has('role')) {{ $errors->first('role') }} @endif
@if ($errors->has('password')) {{ $errors->first('password') }} @endif
@if (!auth()->user()->hasRole('admin'))
You need to provide your current password to update profile @if ($errors->has('currentPassword')) {{ $errors->first('currentPassword') }} @endif
@endif
@endsection @push('scripts') @endpush