@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 source page it will have resource type id--}} @if($resource_type_id != 0) @if(Auth::check() && Auth::user()->role_id ==1)
@endif
@foreach($data['sources'] as $source)

name")}}"> {{$source->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
@endforeach
{{-- else it will be resource types page--}} @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