@extends('admin.layouts.app')
@section('title', __('admin.teams_webinars.title') . ' — ' . __('admin.brand.name'))
@section('page_title', __('admin.teams_webinars.title'))
@push('styles')
@endpush
@section('content')
@include('admin.partials.flash')
@php
$s = $snapshot['status'];
[$badgeColor, $badgeLabel] = match ($s) {
\App\Models\GraphOAuthToken::STATUS_CONNECTED => ['#16a34a', __('admin.teams_webinars.status.connected')],
\App\Models\GraphOAuthToken::STATUS_RECONNECT_REQUIRED => ['#dc2626', __('admin.teams_webinars.status.reconnect_required')],
\App\Models\GraphOAuthToken::STATUS_EXPIRED => ['#d97706', __('admin.teams_webinars.status.expired')],
default => ['#64748b', __('admin.teams_webinars.status.disconnected')],
};
$connected = $snapshot['connected'];
$rel = fn ($iso) => $iso ? \Illuminate\Support\Carbon::parse($iso)->diffForHumans() : '—';
$abs = fn ($iso) => $iso ? \Illuminate\Support\Carbon::parse($iso)->format('Y-m-d H:i') : null;
@endphp
{{ __('admin.teams_webinars.connection.title') }}
{{ __('admin.teams_webinars.connection.subtitle') }}
@unless ($enabled)
· {{ __('admin.teams_webinars.feature_disabled') }}
@endunless
{{ __('admin.teams_webinars.how.title') }}
{{ __('admin.teams_webinars.how.body') }}
@endsection