@extends('layouts.app') @section('content')

{{__('texte.users_arr.edit.edit_user')}}

{{ method_field('PATCH') }} {{ csrf_field() }}
@if ($errors->has('name')) {{ $errors->first('name') }} @endif
user()->hasRole('Super Admin|Администратор') ? "hidden" : ""}}>
@if ($errors->has('roles')) {{ $errors->first('roles') }} @endif
user()->hasRole('Super Admin|Администратор') ? "readonly" : ""}} required/> @if ($errors->has('email')) {{ $errors->first('email') }} @endif
@if ($errors->has('phone')) {{ $errors->first('phone') }} @endif
@if(auth()->user()->id==$user->id)
@if ($errors->has('password')) {{ $errors->first('password') }} @endif
@if ($errors->has('password_confirmation')) {{ $errors->first('password_confirmation') }} @endif
@endif
@if ($errors->has('active')) {{ $errors->first('active') }} @endif
@endsection