@php $inSetupFlow = in_array($setupChannel ?? null, ['mail', 'line'], true); @endphp @extends($inSetupFlow ? 'layouts.setup' : 'layouts.app') @section('title') @if(($setupChannel ?? null) === 'mail') メール設定 @elseif(($setupChannel ?? null) === 'line') LINE設定 @else メール・LINE配信 - 送信用アカウント @endif @endsection @if(! $inSetupFlow) @section('delivery-primary-tabs') @include('account.partials.mail-delivery-primary-tabs', ['mailDeliveryTab' => 'accounts']) @endsection @endif @section('page-title') @if(($setupChannel ?? null) === 'mail') メール設定 @elseif(($setupChannel ?? null) === 'line') LINE設定 @else メール・LINE配信 @endif @endsection @if(! $inSetupFlow) @section('page-subtitle') @if(($setupChannel ?? null) === 'mail') @if(! empty($archived ?? false)) メール送信(またはメール併用)のうち、アーカイブ済みだけを表示しています。初期設定の「メール設定」から絞り込み中です。 @else 初期設定の「メール設定」から開いている画面です。**メールのみ**および**メール+LINE**の送信用アカウントだけを一覧しています(複数登録可)。一覧の「各種設定」で送信者・SMTP 等を入力してください。 @endif @elseif(($setupChannel ?? null) === 'line') @if(! empty($archived ?? false)) LINE 向け(またはメール併用)のうち、アーカイブ済みだけを表示しています。初期設定の「LINE設定」から絞り込み中です。 @else 初期設定の「LINE設定」から開いている画面です。**LINEのみ**および**メール+LINE**の送信用アカウントだけを一覧しています(複数登録可)。シナリオ一覧の「LINEアカウント」で Messaging API を設定してください。 @endif @elseif(! empty($archived ?? false)) アーカイブ済みの送信用アカウントだけを表示しています。復帰は「各種設定」から。画面上部のタブにマウスを乗せると、送信用アカウントと送信ドメイン認証の違いが表示されます。 @else 送信用アカウントの一覧です。**トップバー直下のタブ**が中項目(送信用アカウント/送信ドメイン認証)、注意事項の下に**小項目(一覧/アーカイブ)**があります。左メニューの「配信」や初期設定の「メール設定」「LINE設定」からも開けます。 @endif @endsection @endif @push('styles') @endpush @if($inSetupFlow) @section('setup_body') @else @section('content') @endif @php if ($inSetupFlow) { $tipList = ($setupChannel ?? null) === 'line' ? '運用中の LINE 設定だけを表示します。変更は各行の「各種設定」から。' : '運用中のメール設定だけを表示します。変更は各行の「各種設定」から。'; $tipArchived = '一覧からアーカイブしたものだけを表示します。復帰は「各種設定」から。'; } else { $tipList = '運用中の送信用アカウントだけを表示します(小項目)。アカウント名をクリックするとシナリオ一覧へ進みます。'; $tipArchived = '一覧からアーカイブしたアカウントだけを表示します。復帰は各行の「各種設定」から。'; } $listActiveQuery = array_filter(['setup_channel' => $setupChannel ?? null]); $listArchivedQuery = array_filter(['archived' => 1, 'setup_channel' => $setupChannel ?? null]); $createQuery = array_filter(['setup_channel' => $setupChannel ?? null]); $editQuery = array_filter(['setup_channel' => $setupChannel ?? null]); @endphp @php $mailIncompleteCount = $accounts->filter(function($a){ return in_array($a->type, ['email','both'], true) && (empty($a->from_email) || empty($a->from_name)); })->count(); @endphp @if(empty($archived ?? false) && ($setupChannel ?? null) !== 'line' && $mailIncompleteCount > 0)
送信者名・送信元メールが未入力の設定が {{ $mailIncompleteCount }} 件あります。各行の「各種設定」から入力してください。
@endif
@if(empty($archived ?? false)) 追加 @if(empty($setupChannel ?? null)) @endif @else アーカイブの解除は各行の「各種設定」から行えます。 @endif
@if($accounts->isEmpty())
@if(! empty($archived ?? false)) アーカイブ済みの送信用アカウントはありません @elseif(($setupChannel ?? null) === 'mail') メール設定はまだありません @elseif(($setupChannel ?? null) === 'line') LINE設定はまだありません @else 送信用アカウントがありません @endif
@if(empty($archived ?? false)) 追加する @endif
@else
@php $groups = $groups ?? collect(); $groupedAccounts = $accounts->groupBy(function($account) { return $account->group_id ? ('g_'.$account->group_id) : 'none'; }); @endphp @foreach($groupedAccounts as $groupKey => $items) @php $groupName = '未分類'; if ($groupKey !== 'none') { $groupId = (int) str_replace('g_', '', $groupKey); $group = $groups->firstWhere('id', $groupId); $groupName = $group ? $group->name : 'グループ'; } @endphp
{{ $groupName }}
@foreach($items as $account)
@if($inSetupFlow) {{ $account->name }} @else {{ $account->name }} @endif @if(in_array($account->type, ['line', 'both'], true) && filled($account->line_messaging_memo))
{{ $account->line_messaging_memo }}
@endif @if(in_array($account->type, ['line', 'both'], true)) @include('account.partials.line-list-profile', ['account' => $account]) @endif
@if(in_array($account->type, ['email','both'], true) && (empty($account->from_email) || empty($account->from_name))) メール設定未完了 @endif @if(empty($setupChannel ?? null)) {{ $account->type === 'email' ? 'メール用' : ($account->type === 'line' ? 'LINE用' : 'メール・LINE併用') }} @endif 各種設定
@endforeach
@endforeach
@endif @push('scripts') @endpush @endsection