@extends('layouts.app') @section('cssExternal') @endsection @section('title', 'Detail Forum | GrowUp') @include('forum.editQuestionModal') @include('forum.editAnswerModal') @section('content')

{{ $forum->title }}


{{-- BUAT PERTANYAAN --}}

Buat Pertanyaan

@csrf
Judul
@error('title') {{ $message }} @enderror
@error('content') {{ $message }} @enderror
{{-- FORUM QUESTIONS --}}
@if (count($forum->questions) != 0)

Thread

@foreach ($forum->questions as $question)

{{ $question->title }}

{{ $question->content }}

{{ $question->user->name }}

@if ($question->user_id == Auth::user()->id) Edit Delete @endif
@if (count($question->answers) != 0) @foreach ($question->answers as $answer)

{{ $answer->content }}

{{ $answer->user->name }}

@if ($answer->user_id == Auth::user()->id) Edit Delete @endif
@endforeach @endif
@csrf
@error('answer') {{ $message }} @enderror
@endforeach @endif
@endsection @section('jsExternal') @endsection