@php $ext = $extended; $cards = [ ['prefix' => 'line_message', 'title' => 'LINE メッセージ通知設定', 'sub' => null], ['prefix' => 'line_upper_alert', 'title' => 'LINE 上限アラート通知設定', 'sub' => '(午前7時頃通知)'], ['prefix' => 'line_account_ban', 'title' => 'LINE アカウントBAN通知設定', 'sub' => null], ]; @endphp @push('styles') @endpush

LINE通知設定

通知先を選ぶと、下に連携情報入力欄が出ます。LINEアカウントBAN通知は、停止(Suspend)を検知したときに自動送信します(5分ごとの API 確認・Messaging API エラー・モジュール Webhook の botSuspended)。メッセージ通知・上限アラートは保存のみ(送信処理は後続)。

@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
@csrf @method('PUT') @foreach($cards as $card) @php $p = $card['prefix']; $destField = $p.'_notify_destination'; $destValue = old($destField, $ext?->{$destField} ?? 'none'); if ($destValue === 'line') { $destValue = 'none'; } $configField = $p.'_notify_config'; $config = old($configField, $ext?->{$configField}); $cfg = is_array($config) ? $config : []; @endphp
{{ $card['title'] }} @if($card['sub']) {{ $card['sub'] }} @endif
@error($destField)
{{ $message }}
@enderror
@error($p.'_chatwork_api_token')
{{ $message }}
@enderror
@error($p.'_chatwork_room_id')
{{ $message }}
@enderror
@error($p.'_slack_bot_token')
{{ $message }}
@enderror
@error($p.'_slack_channel')
{{ $message }}
@enderror
@error($p.'_discord_webhook_url')
{{ $message }}
@enderror
@endforeach
@push('scripts') @endpush