@if(isset($user->id))Edit @else Add @endif user

id)) action="{{ route('admin.user.update',$user->id) }}" @else action="{{ route('admin.user.store') }}"" @endif method="post"> @csrf
@error('name')
{{ $message }}
@enderror
@error('email')
{{ $message }}
@enderror
id)) required @endif> @if(isset($user->id)) Password will be updated only if you enter it. Leave it blank to keep it as it is. @endif @error('password')
{{ $message }}
@enderror
id) && $user->is_admin=='1') || ! isset($user->is_admin)) checked @endif>