@extends('layouts.app') @section('title', $post->title) @section('page-title', '๐Ÿ’ฌ Forum Dialektika') @section('content') {{-- Preview Banner --}} @if($isPreview)
๐Ÿ”’ Konten diskusi disensor. Login untuk membaca
@endif {{-- Breadcrumb --}} {{-- Pertanyaan utama --}}
@if($post->is_solved) โœ… Terjawab @else โ“ Belum Terjawab @endif {{ $post->course->name }} @if($post->material) ๐Ÿ“Ž {{ $post->material->title }} @endif

{{ $post->title }}

{{ strtoupper(substr($post->user->name, 0, 1)) }}
{{ $post->user->name }} {{ $post->user->role }}
ยท {{ $post->created_at->diffForHumans() }} ยท ๐Ÿ‘๏ธ {{ number_format($post->views) }} dilihat
{{-- Isi pertanyaan --}} @if(!$isPreview)
{!! nl2br(e($post->body)) !!}
@else

โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“ Login untuk membaca isi diskusi โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“

โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“

Login untuk membaca
@endif {{-- Code snippet --}} @if($post->has_code_snippet && !$isPreview)
{{ strtoupper($post->code_language) }}
{{ $post->code_snippet }}
@elseif($post->has_code_snippet && $isPreview)
{{ strtoupper($post->code_language) }}
โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“ // Kode disensor, login untuk melihat โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“
@endif
{{-- Jawaban --}} @if(!$isPreview)

๐Ÿ’ฌ {{ $post->comments->count() }} Jawaban

@forelse($post->comments->whereNull('parent_id') as $comment)
@if($comment->is_verified_solution)
โœ… Verified Solution
@endif
{{ strtoupper(substr($comment->user->name, 0, 1)) }}
{{ $comment->user->name }} {{ $comment->user->role }}
{{ $comment->created_at->diffForHumans() }}
{!! nl2br(e($comment->body)) !!}
@if($comment->has_code_snippet)
{{ strtoupper($comment->code_language) }}
{{ $comment->code_snippet }}
@endif {{-- Actions --}}
@auth @if(!$comment->is_verified_solution && (auth()->id() === $post->user_id || auth()->user()->isDosen()))
@csrf
@endif @endauth
{{-- Replies --}} @if($comment->replies->count() > 0)
@foreach($comment->replies as $reply)
{{ strtoupper(substr($reply->user->name, 0, 1)) }}
{{ $reply->user->name }} {{ $reply->created_at->diffForHumans() }}

{!! nl2br(e($reply->body)) !!}

@endforeach
@endif
@empty
Belum ada jawaban. Bantu jawab! ๐Ÿ’ก
@endforelse
{{-- Form jawaban --}} @auth

โœ๏ธ Tulis Jawaban

@csrf {{-- Code snippet --}}
@else
Login untuk menjawab
@endauth @else {{-- Preview: sensor semua jawaban --}}

๐Ÿ’ฌ Jawaban

๐Ÿ”’ Jawaban disensor. Login untuk membaca dan ikut berdiskusi.

Login Sekarang
@endif @push('scripts') @endpush @endsection