@extends('frontend.layouts.app') @section('content')
@php if(Auth::guard('web')->check()){ $topics = App\Models\Admin\HelpDeskTopic::whereHas('question',function($query){ $query->where('show','after')->orWhere('show','both'); })->with('question',function($q){ $q->where('show','after')->orWhere('show','both'); })->get(); }else{ $topics = App\Models\Admin\HelpDeskTopic::whereHas('question',function($query){ $query->where('show','before')->orWhere('show','both'); })->with('question',function($q){ $q->where('show','before')->orWhere('show','both'); })->get(); } @endphp @endsection