@extends('task.layout') @section('content')

ルーブリック名 / 項目名

{{ $task->context_title }} {{ $task->title }} 評価活動概要

@if (session('success'))
{{ session('success') }}
@endif {{-- エラーメッセージ --}} @if ($errors->any())
@endif

発表形式: {{ $task->separate_locations == '0' ? 'クラス全体で' : 'ブースに分かれて' }}{{ $task->group_presentation == '0' ? '個人発表' : 'グループ発表' }}

{{-- ステータスと操作ボタン --}}
{{-- ステータス表示 + 切替ボタン --}}

相互評価ステータス: {{ $statusOptions[$task->status] ?? '未設定' }}

@csrf @method('PUT') @foreach ($statusOptions as $value => $label) @php $current = (int) $task->status; $target = (int) $value; $allowed = in_array($target, [$current - 1, $current, $current + 1]); $disabled = !$allowed || $target === $current; @endphp @endforeach
{{-- 編集・削除ボタン --}}
活動の編集
@csrf @method('DELETE')
{{-- 集計情報と 評価者一覧 --}}

集計情報(集計情報として何を表示するか検討要)

  • 登録数:{{ $booths->sum('target_count') }} 人
  • 実施数合計:{{ $booths->sum('implementation_count') }} 件
評価者一覧
{{-- ブース一覧 --}}
ブース一覧
@if ($task->separate_locations) @if ($booths->isEmpty())

ブースは登録されていません。

@else @foreach ($booths as $index => $booth) @endforeach
No. 名称 実施数 対象数 更新日時
{{ $index + 1 }} {{ $booth->name }} {{ $booth->implementation_count }} {{ $booth->target_count }} {{ \Carbon\Carbon::parse($booth->updated_at)->format('Y/m/d H:i') }}
@endif @else {{-- クラス発表形式の場合 --}}
名称 実施数 対象数 更新日時
クラス {{ $booths[0]->implementation_count }} {{ $booths[0]->target_count }} {{ \Carbon\Carbon::parse($booths[0]->updated_at)->format('Y/m/d H:i') }}
@endif
{{-- 備考 --}}
※ クラスで発表・評価を行う場合、ブース編成が完了していても「クラス」という名称で表示されます。
※ 相互評価ステータスによって無効化されるボタンもあります。
{{-- 戻るボタン --}}
戻る
@endsection