@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($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
@foreach($keyword->sub_keywords as $sub)
@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
@foreach($category->{"allowedsourcedatafor".$pageType} as $source)
@endforeach
@endforeach
@endif @if($controls->countries_filters_enable==1)
{{$controls->countries_filters_name}}
@endif
@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]))) --}}
@include('user.ExternalMaterials.components.card-view',["articles" =>$articles,'col_md'=>6]) {{$articles->links()}} {{-- @endif --}}
@endsection @section('script') @endsection