@extends("layouts.app") @section("title") Articles @endsection @section("content") @php if(isset($_GET['resource_type_id'])){ $resource_type_id = $_GET['resource_type_id']; }else{ $resource_type_id = 0; } @endphp
@if($resource_type_id != 0)
@foreach($data['sources'] as $source) @php $url = url("view?view=RDashboard&source_id=$source->name"); if (isset($_GET['keywords'][0])) { foreach ($_GET['keywords'] as $key => $value) { $url .="&keywords[]=$value"; } } @endphp

{{$source->descriptive_name}} @if($source->status == "suspended") ({{$source->status}}) @endif

{{$source->published}} Published
{{$source->ready_to_be_published}} Ready to be published
{{$source->in_review}} In review
{{--
{{$source->rejected}} Rejected
--}}
@endforeach
@else
@foreach($data['resource_types'] as $resource_type)

id")}}"> {{$resource_type->name_en}} @if($resource_type->status == "suspended") ({{$resource_type->status}}) @endif

{{$resource_type->published}} Published
{{$resource_type->ready_to_be_published}} Ready to be published
{{$resource_type->in_review}} In review
@endforeach
@endif @endsection @section("script") @endsection