TenantAtlas/resources/views/admin-consent-callback.blade.php
ahmido 2ca989c00f feat/031-tenant-portfolio-context-switch (#32)
Tenant Switch implemented

Co-authored-by: Ahmed Darrazi <ahmeddarrazi@adsmac.local>
Reviewed-on: #32
2026-01-04 21:28:08 +00:00

42 lines
1.6 KiB
PHP

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>TenantPilot Admin Consent</title>
<style>
body { font-family: sans-serif; max-width: 640px; margin: 2rem auto; padding: 1.5rem; line-height: 1.6; }
.card { border: 1px solid #e2e8f0; border-radius: 12px; padding: 1.25rem; box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
.status { display: inline-block; padding: 0.35rem 0.75rem; border-radius: 999px; font-size: 0.9rem; }
.ok { background: #dcfce7; color: #166534; }
.error { background: #fee2e2; color: #991b1b; }
.warning { background: #fef3c7; color: #92400e; }
a { color: #2563eb; text-decoration: none; }
</style>
</head>
<body>
<div class="card">
<h1>Admin Consent Status</h1>
<p><strong>Tenant:</strong> {{ $tenant->name }} ({{ $tenant->graphTenantId() }})</p>
<p>
<span class="status {{ $status === 'ok' ? 'ok' : ($status === 'consent_denied' ? 'warning' : 'error') }}">
Status: {{ ucfirst(str_replace('_', ' ', $status)) }}
</span>
</p>
@if($error)
<p><strong>Error:</strong> {{ $error }}</p>
@elseif($consentGranted === false)
<p>Admin consent wurde abgelehnt.</p>
@else
<p>Admin consent wurde bestätigt.</p>
@endif
<p>
<a href="{{ route('filament.admin.resources.tenants.view', ['tenant' => $tenant->external_id, 'record' => $tenant]) }}">
Zurück zur Tenant-Detailseite
</a>
</p>
</div>
</body>
</html>