@extends('layouts.app') @section('title') News Feed @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
{{$controls->sources_filters_name}}
@foreach($categories as $key => $category) @php $arrIntersect = array(); if(isset( $_GET['sources'][0])){ $categoryIdsArr = $category->rss->pluck("id")->toArray(); $arrIntersect =array_values( array_intersect($_GET['sources'],$categoryIdsArr)); if(count($arrIntersect) == count($categoryIdsArr)){ $allChecked = 1; }else{ $allChecked = 0; } } @endphp
@foreach($category->rss as $source)
@endforeach
@endforeach
@endsection @section('script') @endsection