@extends('admin-panel::layouts.app') @section('header_title') Questions @endsection @section('head_left_btn') Add Question @endsection @section('content') @if(isset($questions[0]))
@foreach($questions as $question) @if ($question->descendants->isNotEmpty()) @foreach($question->descendants as $descendant) @endforeach @endif @endforeach
No Name Status Action
{{ $question->id }} {{ $question->question }} @if($question->is_published) @else @endif
@method('delete') @csrf
---- {{ $descendant->question }} @if($descendant->is_published) @else @endif
@method('delete') @csrf
@if ($questions->links()->paginator->hasPages())
{{ $questions->links() }}
@endif
@else

You haven't added any questions yet

@endif @vite('resources/css/app.css') @endsection