@extends('layout.app', ['title' => 'Hướng dẫn giải đáp']) @push('style') @vite(['resources/css/landing.css', 'resources/css/level-test.css']) @endpush @php use App\Enums\UserRole; $roleTutorTeacher = Auth::check() && in_array(Auth::user()->role_id, [UserRole::TUTOR->value, UserRole::TEACHER->value]); $roleUser = Auth::check() && in_array(Auth::user()->role_id, [UserRole::USER->value]); function getImgPath(string $path): string|null { $parts = explode('/files/', $path); if (count($parts) > 1) { return '/upload' . '/' . $parts[1]; } return null; } @endphp @section('content')
@include('layout.landing_banner', [ 'title' => 'hướng dẫn giải đáp', 'description' => 'Bạn đang gặp khó khăn gì, đừng lo lắng hãy nói với Siêu Học nhé!', ]) @include('custom_errors.session-errors')

NỘI DUNG CÂU HỎI

@if (isset($question_content)) @endif @if (isset($file)) image question @endif
{{-- @endforeach --}} @if (!$roleTutorTeacher) @if ($roleUser) {{-- @include('modals.show_notice_anwser_guide') --}} @endif
Đồng ý với câu trả lời
@csrf
@endif {{-- @include('modals.show_loading') --}}
@endsection @push('script') @vite(['resources/js/exercise-guide.js']) @endpush