@extends('admin.layouts.app') @section('title','News') @section('content')

{{__("All news")}}

@include('admin.message')
@if(!empty($rows))
{{csrf_field()}}
@endif

{{__('Found :total items',['total'=>$rows->total()])}}

@if($rows->total() > 0) @foreach($rows as $row) @endforeach @else @endif
{{ __('Name')}} {{ __('Category')}} {{ __('Author')}} {{ __('Date')}} {{ __('Status')}}
{{$row->title}} {{$row->getCategory->name ?? '' }} @if(!empty($row->getAuthor)) {{$row->getAuthor->getDisplayName()}} @else {{__("[Author Deleted]")}} @endif {{ display_date($row->updated_at)}} {{ $row->status }} {{__('Edit')}}
{{__("No data")}}
{{$rows->appends(request()->query())->links()}}
@endsection