@php $selectedBrand = request()->brand ?? (isset($modelTable) ? Session::get("crud.$modelTable.brand") : null); $selectedQuestion = request()->question ?? (isset($modelTable) ? Session::get("crud.$modelTable.question") : null); $selectedAnswer = request()->answer ?? (isset($modelTable) ? Session::get("crud.$modelTable.answer") : null); $search = request()->search ?? (isset($modelTable) ? Session::get("crud.$modelTable.search") : null); $sortCol = request()->sort_col ?? (isset($modelTable) ? Session::get("crud.$modelTable.sort_col") : null); $sortWay = request()->sort_way ?? (isset($modelTable) ? Session::get("crud.$modelTable.sort_way") : null); $routes = !request()->routeIs('bo.activity_logs.*') && !request()->routeIs('bo.users.*') && !request()->routeIs('bo.brands.*') && !request()->routeIs('bo.questions.answers*'); @endphp
@if ($routes) @php $routeCondition = request()->routeIs('bo.single_optins.*') || request()->routeIs('bo.customers.*'); @endphp
{{-- BRAND SELECT --}} {{-- QUESTION SELECT --}} @if ($routeCondition && $selectedBrand && isset($questionModels) && !$questionModels->isEmpty()) @endif {{-- ANSWER SELECT --}} @if ($routeCondition && $selectedQuestion && isset($questionModels) && !$questionModels->isEmpty() && isset($answerModels) && !$answerModels->isEmpty()) @endif
@endif
{{-- SEARCH FIELD --}} {{-- ACTION BUTTONS --}}
@php $parameters = ['rstFltrs' => 'true', 'search' => null, 'page' => null]; if ($routes) { $parameters = array_merge($parameters, ['brand' => null, 'question' => null, 'answer' => null, 'subject' => null]); } @endphp