How it works

@if(Auth::user()->hasRole('admin') || Auth::user()->hasRole('super-admin')) @endif

@foreach($questions as $question)
{{ $question->question }} {{-- dropdown menu --}} @if(Auth::user()->hasRole('admin') || Auth::user()->hasRole('super-admin')) @endif {{-- end dropdown menu --}}
{{-- --}}
@endforeach
{{ $questions->onEachSide(2)->links() }}
@push('modals') @livewire('dashboard.questions.question-form') @endpush