@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 @if(isset($_GET['sources'])) @foreach($_GET['sources'] as $source) @endforeach @endif {{$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 {{$category->name_en}} @foreach($category->rss as $source) id , $_GET['sources'])?"checked":""):""}} name="sources[]" value="{{$source->id}}"> {{$source->name}} - {{$source->source}} @endforeach @endforeach Filter Clear Showing ({{$total}} results) Export All Export Selected @foreach ($articles as $article) {{$article->rss->name}} - {{$article->rss->source}} type == "user") onclick="Read('{{$article->href}}','{{$article->id}}')" href="{{$article->href}}" @else href="{{$article->href}}" target="_blank" @endif> {{str_limit(strip_tags($article->title),66)}} @if($article->updated_at->diffInHours(Carbon\Carbon::now()->toDateTimeString()) <= 72) New @endif id, $selected_ids))?"checked":""}} data-id="{{$article->id}}"> @if($article->body) more details {{$article->body}} @endif @endforeach {{$articles->links()}} @endsection @section('script') @endsection
Showing ({{$total}} results)