@extends('layouts.app') @section('title', 'My account') @section('content') @php($groups = \App\Support\Permissions::groups())
@csrf @method('PUT')
Ask an administrator to change your sign-in email.
@csrf @method('PUT')
Your access {{ $user->role->name ?? 'No role' }}
@if ($user->role?->description)

{{ $user->role->description }}

@endif @if ($user->isOwner())
You have full access to everything.
@else @foreach ($groups as $group) @php($mine = collect($group['permissions'])->filter(fn ($v, $k) => $user->hasPermission($k))) @continue($mine->isEmpty())
{{ $group['label'] }}
{{ $mine->map(fn ($v) => $v[0])->join(' ยท ') }}
@endforeach @if (! collect($groups)->flatMap(fn ($g) => array_keys($g['permissions']))->contains(fn ($k) => $user->hasPermission($k)))

Your role doesn't include any access yet. Ask an administrator.

@endif @endif
@if ($user->last_login_at)@endif
@endsection