@extends('layouts.app') @section('title', $course->name . ' — コメント') @section('page-title', $course->name) @section('page-subtitle-heading', '【この画面でできること】') @section('page-subtitle') 受講生がレッスンに投稿したコメントの確認・返信・表示/非表示・削除を行います。 @endsection @section('content') @include('site.course.partials._workspace_toolbar') @if(session('success'))
{{ session('success') }}
@endif @php $modeLabels = \App\Support\BundleCourseComments::modeLabels(); $modeLabel = $modeLabels[$commentsMode] ?? $commentsMode; @endphp
コメント機能: {{ $modeLabel }} @if($commentsMode === 'disabled') コース基本設定で有効にしてください。 @endif @if(($unrepliedCount ?? 0) > 0) 未返信 {{ $unrepliedCount }} 件 @endif
コメント設定を開く
@if($commentsMode === 'disabled')
このコースではコメント機能がオフです。受講生の投稿・返信は行われません。
@elseif($comments->isEmpty())
まだコメントはありません。コメントを有効にしたレッスンで、受講生が投稿するとここに表示されます。
@else
@foreach($comments as $comment) @endforeach
日時 レッスン 投稿者 コメント 運営返信 操作
{{ $comment->created_at?->timezone(config('app.timezone'))->format('Y-m-d H:i') }} @if($comment->lesson)
{{ $comment->lesson->name }}
{{ $comment->lesson->course?->name }}
@else — @endif
{{ $comment->author_name ?: '—' }}
{{ $comment->body }}
@if(! $comment->is_visible) 承認待ち / 非表示 @endif
@csrf @method('PUT')
id, $comment->is_visible))>
@if($comment->admin_replied_at)
返信日時: {{ $comment->admin_replied_at->timezone(config('app.timezone'))->format('Y-m-d H:i') }}
@endif
@csrf @method('DELETE')
@if($comments->hasPages()) @endif
@endif @endsection