{{-- MCP-behörigheter in Admin, Drift (admin.mcp.grants, McpAdminController@index, superadmin only; DESIGN.md Page patterns 2; #2957 slice 15, card #3102). Expects $grants (the 100 newest McpAccessGrant). Same columns as before, folded into five; "Återkalla" (approved and not revoked, as before) opens a native dialog that posts to admin.mcp.grants.revoke. The status is the stored word, as before; only the pill colour is new. --}} @extends('layouts.nuhet') @section('_pageTitle', __('mcp.nh.title')) @section('page') @include('partials.nh-admin-back')
{{ __('mcp.nh.lead') }}
| {{ __('mcp.nh.grant') }} | {{ __('mcp.nh.status') }} | {{ __('mcp.nh.approvedBy') }} | {{ __('mcp.nh.times') }} | {{ __('mcp.nh.columnActions') }} |
|---|---|---|---|---|
| {{ $grant->request_id }} {{ __('mcp.nh.scopes') }}: {{ implode(', ', $grant->scope_list) }} | {{ optional($grant->approvedBy)->fullName() }} | {{ __('mcp.nh.expires') }}: {{ \App\Support\DisplayDate::timestamp($grant->expires_at) }} {{ __('mcp.nh.lastUsed') }}: {{ \App\Support\DisplayDate::timestamp($grant->last_used_at) }} |
@if ($nhRevocable->contains($grant))
|