@php use App\Models\Content; use App\Models\Article; use App\Enums\Common\Status; use App\Enums\Content\TimerUsageType; use App\Enums\Content\CategoryUsageType; use Illuminate\Support\Facades\Route; @endphp {{-- タイトルを非表示 --}} {{-- @php $title = $content->name; @endphp --}} @extends('layouts.user-admin.page') @section('breadcrumb') {{-- パンくずリストの位置を左側に配置 --}}
@endsection @section('search') {{-- ステータス --}}
ステータス
{{-- カテゴリ --}} @if ($content->category_usage_type !== CategoryUsageType::None)
カテゴリ
@endif {{-- キーワード --}}
キーワード
検索 クリア
@endsection @section('content') @php $cardTitle = "登録一覧 - {$articles->total()}件の登録"; @endphp
{{-- ボタンエリア --}}
新規作成 掲載終了を表示 @foreach (request()->except('show_expired', 'page') as $key => $value) @endforeach
@if (!$isSearching) @endif @if ($content->timer_usage_type !== TimerUsageType::None) @endif @if ($content->is_copy_enabled) @endif @if ($content->is_preview_enabled) @endif @if (!$isSearching) @endif @foreach ($articles as $article) @if (!$isSearching) {{-- 順序 --}} @endif {{-- No --}} {{ $article->id }} {{-- ステータス --}} {{-- 掲載期間 --}} {{-- 公開タイマー機能利用時のみ --}} @if ($content->timer_usage_type !== TimerUsageType::None)
{{ $article->timer_start_at ? $article->timer_start_at->format('Y/m/d H:i') : '' }} 〜
{{-- 公開タイマー機能 - from~to 利用時のみ --}} @if ($content->timer_usage_type === TimerUsageType::Between && !is_null($article->timer_end_at))
{{ $article->timer_end_at ? $article->timer_end_at->format('Y/m/d H:i') : '' }}
@endif
@endif {{-- タイトル --}} @if ($content->category_usage_type === CategoryUsageType::Single)
{{ $article->singleCategory ? $article->singleCategory->name : '未設定' }}
@endif @if ($content->category_usage_type === CategoryUsageType::Multiple)
@if ($article->multipleCategories->isEmpty()) 未設定 @endif @foreach ($article->multipleCategories as $category) {{ $category->name }} @endforeach
@endif
{{ $article->title }}
{{-- 編集 --}} {{-- コピー --}} @if ($content->is_copy_enabled) @endif {{-- プレビュー --}} @if ($content->is_preview_enabled) @endif @if (!$isSearching) {{-- 並び替え --}} @endif
@endforeach
{{ $articles->links('components.pages.user-admin.pagination') }}
@endsection @if ($content->is_copy_enabled) @section('modal') @foreach ($articles as $article) @php $url = $article->getLinkCopyUrl(isCopy: true); $key = $article->id; @endphp {{-- Copyモーダル --}}

記事のデータを複製しますか?

@endforeach @endsection @endif