@extends('layouts.app') @section('title', $scenario->name . ' - ' . $pageTitle) @php $scenarioGroupName = optional($scenario->group)->name ?: '未分類'; @endphp @section('page-title', $scenarioGroupName . ' / ' . $scenario->name) @section('page-subtitle', '選択中のシナリオ画面です。メール向け・LINE向けの設定は、それぞれの列にまとめています。') @push('styles') @endpush @section('content') @include('account.scenario._workspace_archive_bar', ['account' => $account, 'scenario' => $scenario, 'slug' => $slug]) @if($slug === 'overview') @php // 各メニューのアイコンと一言説明(初期設定と同じタイル型で見やすく) $wsMeta = [ '読者一覧' => ['bi-people', '登録している読者の一覧・追加・状態変更'], '読者数推移' => ['bi-graph-up', '日別の登録・解除と読者数の推移'], 'メール一斉送信' => ['bi-envelope-paper', '対象の読者へメールを一斉送信'], 'ステップ配信' => ['bi-clock-history', '登録からの経過で順番に自動送信'], 'リマインダ配信' => ['bi-alarm', 'イベント前後に自動でリマインド'], '予約中' => ['bi-hourglass-split', 'これから送る予約分の一覧'], '送信済' => ['bi-check2-circle', '送信済みメールの記録'], 'メール配信エラー' => ['bi-envelope-exclamation', '送信に失敗したメール'], '登録フォーム・読者項目' => ['bi-input-cursor-text', '登録フォームの項目を設定'], '登録・解除フォーム' => ['bi-ui-checks', '公開の登録/解除フォーム'], '登録経路' => ['bi-signpost-2', 'どこから登録されたかの管理'], '独自置き換え文字' => ['bi-braces', '%name% などの差し込み文字'], 'LINEチャット' => ['bi-chat-dots', '友だちと1対1でやり取り'], '読者数推移(LINE)' => ['bi-graph-up', 'LINE読者の推移'], '登録経路(LINE)' => ['bi-signpost', 'LINEの流入経路'], 'LINE一斉送信' => ['bi-send', '友だちへLINEを一斉送信'], 'LINEステップ配信' => ['bi-clock-history', '登録からの経過でLINEを自動送信'], 'LINE友だち' => ['bi-person-hearts', '友だちの一覧・取り込み'], 'LINE自動応答' => ['bi-robot', 'キーワードに自動で返信'], 'LINEリッチメニュー' => ['bi-grid-3x3-gap', 'トーク下部のメニューを設定'], 'LINEテンプレート' => ['bi-file-text', 'よく使う定型文を保存'], 'LINEカスタム送信者' => ['bi-person-badge', '送信者の名前・アイコン'], 'LINEアカウント' => ['bi-gear', 'LINE連携の設定'], 'LINE通知設定' => ['bi-bell', '申込などの通知'], 'LINE配信エラー' => ['bi-exclamation-triangle', '送信に失敗したLINE'], 'LINE登録ページ' => ['bi-file-earmark-person', 'LINE友だち追加ページ'], 'ラベル設定' => ['bi-tags', '読者に付けるラベルの管理'], 'シナリオ設定' => ['bi-sliders', 'シナリオの既定値・紐づけ'], ]; @endphp
シナリオ一覧へ戻る

やりたいことのカードを選んでください。「準備中」以外はすぐ使えます。

@if($hasMailChannel)
メール管理
@foreach($workspaceNav['delivery'] as $item) @php $m = $wsMeta[$item['label']] ?? ['bi-arrow-right-circle', '']; @endphp
{{ $item['label'] }} {{ $item['stub'] ? '準備中' : '利用可' }}
@if(!empty($m[1]))
{{ $m[1] }}
@endif
@endforeach
@endif @if($hasLineChannel)
LINE管理
@foreach($workspaceNav['line'] as $item) @php $m = $wsMeta[$item['label']] ?? ['bi-arrow-right-circle', '']; @endphp
{{ $item['label'] }} {{ $item['stub'] ? '準備中' : '利用可' }}
@if(!empty($m[1]))
{{ $m[1] }}
@endif
@endforeach
@endif
共通(設定など)
@foreach($workspaceNav['settings'] as $item) @php $m = $wsMeta[$item['label']] ?? ['bi-arrow-right-circle', '']; @endphp
{{ $item['label'] }} {{ $item['stub'] ? '準備中' : '利用可' }}
@if(!empty($m[1]))
{{ $m[1] }}
@endif
@endforeach
@elseif($slug === 'registration-fields') @include('account.scenario._registration_fields', ['account' => $account, 'scenario' => $scenario, 'readerFormFields' => $readerFormFields]) @elseif($slug === 'registration-routes') @include('account.scenario._registration_routes', [ 'account' => $account, 'scenario' => $scenario, 'mailRegistrationRoutes' => $mailRegistrationRoutes ?? collect(), 'lineRegistrationRoutes' => $lineRegistrationRoutes ?? collect(), 'lineRouteSubscriberCounts' => $lineRouteSubscriberCounts ?? [], 'lineRouteVisitCounts' => $lineRouteVisitCounts ?? [], 'lineRouteFollowCounts' => $lineRouteFollowCounts ?? [], 'activeRegistrationRoutesTab' => $activeRegistrationRoutesTab ?? 'email', 'hasMailChannel' => $hasMailChannel, 'hasLineChannel' => $hasLineChannel, ]) @elseif(in_array($slug, ['form-unsubscribe', 'form-unsubscribe-register', 'form-unsubscribe-cancel', 'form-unsubscribe-settings', 'form-unsubscribe-tags'], true)) @include('account.scenario._form_unsubscribe', ['account' => $account, 'scenario' => $scenario, 'slug' => $slug, 'publicFormSettings' => $publicFormSettings, 'embedSnippet' => $embedSnippet ?? null, 'embedFormFields' => $embedFormFields ?? collect()]) @elseif(in_array($slug, ['line-register-page', 'line-register-page-settings'], true)) @include('account.scenario._line_register', ['account' => $account, 'scenario' => $scenario, 'slug' => $slug, 'lineRegisterSettings' => $lineRegisterSettings]) @elseif($slug === 'scenario-settings') @include('account.scenario._scenario_settings_form', [ 'account' => $account, 'scenario' => $scenario, 'scenarioGroups' => $scenarioGroupsForSettings, 'extended' => $scenarioExtendedSetting, 'readerFormFieldsForSettings' => $readerFormFieldsForSettings, 'customPlaceholdersForSettings' => $customPlaceholdersForSettings, 'mailAccounts' => $mailAccounts ?? collect(), 'lineAccounts' => $lineAccounts ?? collect(), ]) @elseif($slug === 'placeholders') @include('account.scenario._custom_placeholders', [ 'account' => $account, 'scenario' => $scenario, 'accountCustomPlaceholders' => $customPlaceholdersForSettings, 'scenarioPlaceholderValuesByPhId' => $scenarioPlaceholderValuesByPhId, ]) @elseif($slug === 'label-settings') @include('account.scenario._label_settings', [ 'account' => $account, 'scenario' => $scenario, 'scenarioLabelRows' => $scenarioLabelRows ?? collect(), ]) @elseif($slug === 'line-notifications') @include('account.scenario._line_notifications', [ 'account' => $account, 'scenario' => $scenario, 'extended' => $scenarioExtendedSetting, ]) @elseif($slug === 'line-auto-reply') @include('account.scenario._line_auto_reply', [ 'account' => $account, 'scenario' => $scenario, 'lineAutoReplyRows' => $lineAutoReplyRows ?? collect(), ]) @elseif($slug === 'line-chat') @include('account.scenario._line_chat', [ 'account' => $account, 'scenario' => $scenario, 'lineAccount' => $lineAccount, 'lineChatFriends' => $lineChatFriends, 'lineChatTimeline' => $lineChatTimeline, 'lineChatSelectedLineUserId' => $lineChatSelectedLineUserId, 'lineChatSelectedSubscriber' => $lineChatSelectedSubscriber, 'lineChatSearchQuery' => $lineChatSearchQuery, 'lineBotPictureUrl' => $lineBotPictureUrl, 'lineBotDisplayName' => $lineBotDisplayName, ]) @elseif($slug === 'line-friends') @include('account.scenario._line_friends', [ 'account' => $account, 'scenario' => $scenario, 'lineAccount' => $lineAccount, 'lineFriendsRows' => $lineFriendsRows ?? collect(), 'lineFriendsNameQuery' => $lineFriendsNameQuery, 'lineFriendsLabelQuery' => $lineFriendsLabelQuery, 'lineFriendsLabelSuggestions' => $lineFriendsLabelSuggestions ?? collect(), 'scenarioLabelRows' => $scenarioLabelRows ?? collect(), ]) @elseif($slug === 'bulk-email') @include('account.scenario._bulk_email', ['account' => $account, 'scenario' => $scenario]) @elseif($slug === 'bulk-line') @include('account.scenario._line_bulk', ['account' => $account, 'scenario' => $scenario]) @elseif($slug === 'line-delivery-errors') @include('account.scenario._line_delivery_errors', [ 'account' => $account, 'scenario' => $scenario, 'lineDeliveryErrors' => $lineDeliveryErrors ?? collect(), ]) @elseif($slug === 'line-template') @include('account.scenario._line_templates', [ 'account' => $account, 'scenario' => $scenario, 'lineTemplates' => $lineTemplates ?? collect(), ]) @elseif($slug === 'line-custom-sender') @include('account.scenario._line_custom_senders', [ 'account' => $account, 'scenario' => $scenario, 'lineCustomSenders' => $lineCustomSenders ?? collect(), ]) @elseif($slug === 'line-rich-menu') @include('account.scenario._line_rich_menus', [ 'account' => $account, 'scenario' => $scenario, 'lineRichMenus' => $lineRichMenus ?? collect(), ]) @elseif($slug === 'line-reader-trends') @include('account.scenario._line_reader_trends', [ 'account' => $account, 'scenario' => $scenario, 'readerTrendRows' => $readerTrendRows ?? [], 'readerTrendTotals' => $readerTrendTotals ?? [], 'readerTrendFromStr' => $readerTrendFromStr ?? '', 'readerTrendToStr' => $readerTrendToStr ?? '', 'readerTrendRangeError' => $readerTrendRangeError ?? null, ]) @elseif($slug === 'reader-trends') @include('account.scenario._reader_trends', [ 'account' => $account, 'scenario' => $scenario, 'readerTrendRows' => $readerTrendRows ?? [], 'readerTrendTotals' => $readerTrendTotals ?? [], 'readerTrendFromStr' => $readerTrendFromStr ?? '', 'readerTrendToStr' => $readerTrendToStr ?? '', 'readerTrendRangeError' => $readerTrendRangeError ?? null, ]) @elseif($slug === 'reminder-delivery') @include('account.scenario._reminder_delivery', [ 'account' => $account, 'scenario' => $scenario, 'scenarioReminders' => $scenarioReminders ?? collect(), 'reminderEvents' => $reminderEvents ?? collect(), ]) @elseif($slug === 'email-errors') @include('account.scenario._mail_delivery_errors', [ 'account' => $account, 'scenario' => $scenario, 'mailDeliveryErrors' => $mailDeliveryErrors ?? collect(), ]) @elseif(in_array($slug, ['scheduled', 'sent'], true)) @include('account.scenario._mail_deliveries', [ 'account' => $account, 'scenario' => $scenario, 'mailDeliveries' => $mailDeliveries ?? collect(), 'status' => $slug === 'scheduled' ? 'reserved' : 'sent', ]) @elseif($isStub)

{{ $pageTitle }}

今後追加予定のプレースホルダです。配信・フォーム・経路などの処理は今後ここに実装します。

シナリオ概要へ戻る
@endif @endsection