@extends('layouts.app') @section('title') CCKH {{ucfirst($pageType)}} search @endsection @section('content') @php if(isset($_GET['selected_id'])){ $selected_ids = explode("$$",$_GET['selected_id']); foreach ($selected_ids as $key => &$value) { $value = str_replace("$","",$value); } } @endphp @if(isset($_GET['c'])) @foreach($_GET['c'] as $c) @endforeach @endif @if(isset($_GET['publication_type'])) @foreach($_GET['publication_type'] as $publication_type) @endforeach @endif @if(isset($_GET['orderBy'])) @endif {{--@if(isset($_GET['operator']))--}} {{----}} {{-- @endif--}} @if(isset($_GET['sources'])) @foreach($_GET['sources'] as $source) @endforeach @endif @if(isset($_GET['keywords'])) @foreach($_GET['keywords'] as $keyword) @endforeach @endif @if(isset($_GET['viewType'])) @endif @if((isset($_GET['q']) && !empty($_GET['q'])) || (isset($_GET['c'][0]) && !empty($_GET['c'][0])) || (isset($_GET['publication_type'][0]) && !empty($_GET['publication_type'][0])) || (isset($_GET['sources'][0]) && !empty($_GET['sources'][0])) || (isset($_GET['keywords'][0]) && !empty($_GET['keywords'][0]))) @if(Auth::check() && Auth::user()->type == "user" && $pageType == "publications") @if($isSaved) Un-Save Search @else Save Search @endif @else @endif @else @endif @if($controls->subjects_filters_enable==1) {{$controls->subjects_filters_name}} @foreach($keywords as $key => $keyword) @php $arrIntersect = array(); if(isset( $_GET['keywords'][0])){ $keywordIdsArr = $keyword->sub_keywords->pluck("id")->toArray(); $arrIntersect =array_values( array_intersect($_GET['keywords'],$keywordIdsArr)); if(count($arrIntersect)== count($keywordIdsArr)){ $allChecked = 1; }else{ $allChecked = 0; } } @endphp {{$keyword->keyword_en}} @foreach($keyword->sub_keywords as $sub) id , $_GET['keywords'])?"checked":""):""}} name="keywords[]" value="{{$sub->id}}"> {{$sub->keyword_en}} @endforeach @endforeach @endif @if($controls->sources_filters_enable==1) {{$controls->sources_filters_name}} @foreach($categories as $key => $category) @php $arrIntersect = array(); if(isset( $_GET['sources'][0])){ $categoryIdsArr = $category->{"allowedsourcedatafor".$pageType}->pluck("name")->toArray(); $arrIntersect =array_values( array_intersect($_GET['sources'],$categoryIdsArr)); if(count($arrIntersect) == count($categoryIdsArr)){ $allChecked = 1; }else{ $allChecked = 0; } } @endphp {{$category->name_en}} @foreach($category->{"allowedsourcedatafor".$pageType} as $source) name , $_GET['sources'])?"checked":""):""}} name="sources[]" value="{{$source->name}}"> {{$source->descriptive_name}} @endforeach @endforeach @endif @if($controls->countries_filters_enable==1) {{$controls->countries_filters_name}} @foreach($countries as $country) id,$_GET['c'] )?"selected":""):""}} value="{{$country->id}}">{{$country->name}} @endforeach @endif Filter Clear @php $addTofav =''; $isFavorite =''; @endphp {{-- @if((isset($_GET['q']) && !empty($_GET['q'])) || (isset($_GET['c'][0]) && !empty($_GET['c'][0])) || (isset($_GET['publication_type'][0]) && !empty($_GET['publication_type'][0])) || (isset($_GET['sources'][0]) && !empty($_GET['sources'][0])) || (isset($_GET['keywords'][0]) && !empty($_GET['keywords'][0]))) --}} Showing ( {{$total}} ) results Export All Export Selected full()."?orderBy=":url()->full()."&orderBy=latest"}}"> Most Recent full()."?orderBy=":url()->full()."&orderBy=popular"}}"> Most popular @include('user.ExternalMaterials.components.card-view',["articles" =>$articles,'col_md'=>6]) {{$articles->links()}} {{-- @endif --}} @endsection @section('script') @endsection
Showing ( {{$total}} ) results