@extends('layouts.admin') @section('title', __('Permissions')) @section('content')

{{ __('Permissions') }}

{{ __('This grid is a record of who should be allowed what. The admin menu itself is controlled by the role (Staff sees orders and stock; Admin sees everything).') }}

@csrf @method('PUT')
@foreach ($m['roles'] as $r)@endforeach@forelse ($m['permissions'] as $p) @foreach ($m['roles'] as $r)@endforeach @empty@endforelse
{{ __('Permission') }}{{ __(ucwords(str_replace('_', ' ', $r->name))) }}
{{ $p->name }}id.':'.$p->id])) class="h-5 w-5 rounded">
{{ __('No permissions are defined yet.') }}
@if ($m['permissions'])
{{ __('Save permissions') }}
@endif
@endsection