@php $formatPartialDate = function ($year, $month, $day) { if (!$year) return '?'; $text = $year . '年'; if ($month) $text .= $month . '月'; if ($day) $text .= $day . '日'; return $text; }; $topTypeLabels = [ 'top_star' => 'トップスター', 'top_musumeyaku' => 'トップ娘役', ]; $managementRoleLabels = [ 'kumicho' => '組長', 'fuku_kumicho' => '副組長', ]; @endphp

{{ $troupe->name }}

@if ($topCombinations->isNotEmpty())

歴代トップコンビ

トップ一覧を見る
@foreach ($topCombinations as $combo) @endforeach
@endif @if ($managementHistories->isNotEmpty())

歴代管理職

リセット
@foreach ($managementHistories as $history)
{{ $managementRoleLabels[$history->role_type] ?? $history->role_type }}

{{ $history->person?->name ?? '人物未設定' }}

{{ $formatPartialDate($history->start_year, $history->start_month, $history->start_day) }} 〜 {{ $formatPartialDate($history->end_year, $history->end_month, $history->end_day) }}

@endforeach
@endif

生徒一覧

すべて見る
@forelse ($people as $person)
@if ($person->classYear) {{ $person->classYear->number }}期 @else 期未設定 @endif

{{ $person->name }}

{{ $person->name_kana ?: '読み未設定' }} @if ($person->classYear?->entrance_year) / {{ $person->classYear->entrance_year }}年入団 @endif

@empty

未登録

@endforelse

{{ $troupe->name }}の公演

すべて見る
@forelse ($performances as $performance)
{{ $performance->performanceType?->name ?? '公演区分未設定' }}

{{ $performance->display_name }}

@if ($performance->lead_names)

主演:{{ $performance->lead_names }}

@endif
@empty

公演データは未登録です。

@endforelse