@extends('layouts.app') @php $editing = $user->exists; $self = $editing && $user->is(auth()->user()); @endphp @section('title', $editing ? 'Edit '.$user->name : 'New user') @section('content')
@csrf @if ($editing) @method('PUT') @endif @include('partials.error-summary')
@foreach ($roles as $r) @endforeach
Good to know
  • Roles are managed under Roles — you can make your own, e.g. a "Warehouse" role.
  • Changing a password or deactivating someone signs them out straight away.
  • There must always be one active Owner, so the last Owner can't be demoted, deactivated or deleted.
  • @if ($self)
  • You are editing your own account, so you can't deactivate it.
  • @endif
Cancel Unsaved changes
@endsection