@extends('layouts.admin') @section('title', 'Admins & roles') @section('content')

Admins & roles

Least privilege: an admin can do only what is ticked. Super admins can do everything and are created from the command line.

Make an existing reseller an admin

@csrf @foreach ($permissions as $key => $label)@endforeach
@foreach ($admins as $a)

{{ $a->name }} {{ $a->role }}

{{ $a->email }}

@if ($a->role === 'admin')
@csrf @method('PUT') @foreach ($permissions as $key => $label)@endforeach
@csrf @method('DELETE')
@else

Has every permission.

@endif
@endforeach @endsection