@extends('layouts.app') @section('title', $user->name) @section('content')
{{ $user->name }}
@csrf @method('PUT')
@if($errors->has('name')) {{ $errors->first('name') }} @endif
@if($errors->has('email')) {{ $errors->first('email') }} @endif
@if($errors->has('password')) {{ $errors->first('password') }} @endif
@unless (($user->id == 2 or $user->id == 1) and Auth::user()->id != 1)
@if($errors->has('permissions[]')) {{ $errors->first('permissions[]') }} @endif
@endunless
@endsection @section('scripts') @endsection