@extends('Layout::user') @section('content')

{{!empty($recovery) ?__('Recovery news') : __("Manage news")}} @if(Auth::user()->hasPermissionTo('news_create')&& empty($recovery)) {{__("Add News")}} @endif

@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')}} {{ __('Date')}} {{ __('Status')}}
{{$row->title}} {{$row->cat->name ?? '' }} {{ display_date($row->updated_at)}} {{ $row->status }} {{__('Edit')}}
{{__("No data")}}
{{$rows->appends(request()->query())->links()}}
@endsection