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

{{ $target == 'store' ? '評価活動登録' : '評価活動編集' }}

{{-- フォーム項目のエラー --}}
@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
{{-- グループ編成未済でのブース編集エラー --}} @if (session('error'))
{{ session('error') }}
@endif {{-- 保存完了メッセージ --}} @if (session('success'))
{{ session('success') }}
@endif {{-- scriptに$target、$hasGroups(datasetに送る)を渡す --}}
@if($target == 'update')
@endif
@if($target == 'store')
@elseif($target == 'update') @method('PUT') @endif @csrf {{-- title --}}
{{-- description --}}
{{-- rubric_criterion_id --}} {{-- group_presentation --}}
group_presentation ?? 0) == '0' ? 'checked' : '' }}>
group_presentation ?? 0) == '1' ? 'checked' : '' }}>
@if($target == 'update') {{-- グループ編集リンク(初期は hidden) --}} @if($hasGroups) グループ編成済み @else グループ未編成 @endif @endif
{{-- separate_locations --}}
separate_locations ?? 0) == '0' ? 'checked' : '' }}>
separate_locations ?? 0) == '1' ? 'checked' : '' }}>
@if($target == 'update') {{-- ブース編集リンク(リアルタイムのgroup_presentationの値も渡す) --}} @if($hasBooths) @if($grouplabel == 0) 個人発表でのブース編成済み @else グループ発表でのブース編成済み @endif @else ブース未編成 @endif @endif
{{-- anonymous --}}
anonymous ?? 0) == '0' ? 'checked' : '' }}>
anonymous ?? 0) == '1' ? 'checked' : '' }}>
{{-- check_by_teacher --}}
check_by_teacher ?? 0) == 0 ? 'checked' : '' }}>
check_by_teacher ?? 0) == 1 ? 'checked' : '' }}>
{{-- self_assessment_mode --}}
@foreach ([0 => '自己評価なし', 1 => '相互評価と同時に自己評価', 2 => '結果公開後に自己評価'] as $value => $label)
self_assessment_mode ?? 0) == $value ? 'checked' : '' }}>
@endforeach
{{-- status --}} {{-- 日時フィールド --}} @php $dateFields = [ 'peer_review_start_date' => '相互評価開始日時', 'peer_review_end_date' => '相互評価終了日時', 'review_results_open_date' => '結果公開日時' ]; @endphp @foreach($dateFields as $field => $label)
@endforeach {{-- 登録・戻るボタン --}}
@if($target == 'store') 戻る @else 戻る @endif
{{-- ブース編成リンク(hidden属性) --}} @if($target == 'update') @endif
@endsection @push('scripts') @endpush