@extends('layouts.app') @section('title', '通知頻道管理') @push('styles') @endpush @section('content')

通知頻道管理

每個學校/客戶設定獨立的通知頻道(Google Chat 或 LINE),並選擇要接收的 CVE 分類

{{-- 頻道卡片列表 --}} @if($channels->isEmpty())

尚未設定任何通知頻道

@else
@foreach($channels as $ch)
@if($ch->channel_type === 'line') 💬 @else @endif {{ $ch->name }}
{{ $ch->channel_type === 'line' ? 'LINE' : 'Google Chat' }} {{ $ch->is_active ? '啟用' : '停用' }}
@if($ch->client)
{{ $ch->client?->name ?? '未分類' }}
@endif @if($ch->channel_type === 'line')
Group ID:{{ Str::mask($ch->line_group_id ?? '', '*', 10) }}
Token:{{ Str::mask($ch->line_token ?? '', '*', 20) }}
@else
{{ Str::mask($ch->webhook_url ?? '', '*', 50) }}
@endif
@foreach($ch->categories ?? [] as $cat) {{ $cat }} @endforeach
@if($ch->last_notified_at)
上次推送:{{ $ch->last_notified_at->format('Y-m-d H:i') }}
@else
尚未推送過
@endif
@endforeach
@endif
{{-- Modal:手動發訊息 --}} {{-- Modal:新增 / 編輯 --}} @endsection @push('scripts') @endpush