@extends('layouts.app') @section('title', 'ファネル一覧') @section('page-title', 'ファネル') @push('styles') @endpush @section('content')
ファネル一覧 アーカイブ済
{{-- 操作バー --}}
@php $canReorderFunnels = ! request('group'); @endphp @if($canReorderFunnels && $funnels->isNotEmpty())
保存しました
@endif
ファネルを作成
@if(! request('group') && $funnels->isNotEmpty())
各ファネルの で移動できます。ドラッグ&ドロップでの並び替えも可能です。
@endif {{-- グループタブ --}} @if($groups->isNotEmpty()) @endif {{-- フィルタリング後のファネル一覧 --}} @php $filteredFunnels = $funnels; if (request('group') === 'none') { $filteredFunnels = $funnels->whereNull('group_id'); } elseif (request('group')) { $filteredFunnels = $funnels->where('group_id', request('group')); } @endphp @if($filteredFunnels->isEmpty())
ファネルがありません

「ファネルを作成」ボタンから最初のファネルを作成しましょう。

ファネルを作成する
@else @php $groupedFunnels = $filteredFunnels->groupBy(function($funnel) { return $funnel->group_id ? ('g_'.$funnel->group_id) : 'none'; }); @endphp @foreach($groupedFunnels as $groupKey => $items) @php $first = $items->first(); $groupLabel = $groupKey === 'none' ? '未分類' : ($first && $first->group ? $first->group->name : 'グループ'); @endphp
{{ $groupLabel }}
@foreach($items as $funnel)
@if($canReorderFunnels)
@endif
{{ $funnel->name }}
会社: {{ $funnel->businessSetting?->displayName() ?: '未選択' }}
ページ一覧
@csrf @method('DELETE')
@endforeach
@endforeach @endif {{-- グループ管理モーダル --}} @push('scripts') @endpush @endsection