@extends('backend.superadmin.index') @section('body')

{{$heading}} List

@if(session('success'))
@endif @if(session('error'))
@endif @if($errors->any())
@endif
Title
Category
Type
@foreach($articles as $key=>$article) @endforeach
SN Image Title Author Category Status Action
{{++$key}} @php if (isset($article->client_id)){ $client = \App\Client\Client::find($article->client_id); $user = \App\User::find($client->user_id); $image_url = config('filesystems.asset').'/'.'clients'.'/'.$user->name.'/article'; }else{ $image_url = config('filesystems.asset').'/'.'articles'; } @endphp @if($article->type=='Featured') {{\Illuminate\Support\Str::limit($article->title,70)}} @else {{\Illuminate\Support\Str::limit($article->title,70)}} @endif {{$article->user->name}} @if(isset($article->category->name)){{$article->category->name}} @else Uncategorized @endif @if($article->status=='Active')
{{csrf_field()}}
@else
{{csrf_field()}}
@endif
@endsection