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

Edit Role

Back to Roles

Role Information

@csrf @method('PUT')
@if(in_array($role->name, ['super_admin', 'admin'], true)) {{-- Used by the system by name: shown, not changeable --}}
System role: the name cannot be changed.
@else @endif Use lowercase, no spaces
Permissions:
@if($role->is_superadmin)
Super admin has every permission, whatever is ticked below (including editing and deleting sales). To limit someone, give them a different role.
@else
To stop this role changing sales, untick Edit POS sell (editing) and Delete POS sell (deleting) under POS, then save. Attempts are refused and shown in Loss Prevention.
@endif @foreach($permissions as $group => $groupPermissions)
@foreach($groupPermissions as $permission)
permissions->contains($permission) ? 'checked' : '' }}>
@endforeach
@endforeach
Created: {{ $role->created_at->format('M d, Y H:i') }} | Updated: {{ $role->updated_at->format('M d, Y H:i') }}
Cancel
@endsection