@extends('admin.layouts.master') @section('contents')
@include('admin.notifications.search_form')
@if(count($resources) > 0) @foreach($resources as $key => $resource) @endforeach @endif
# {{__('Title')}} {{__('Content')}} {{__('Created At')}} {{__('Read At')}} {{__('ACTIONS')}}
{{$resource->id}} {{ lang()=='en'?$resource->title_en:$resource->title_ar}} {{ lang()=='en'?$resource->content_en:$resource->content_ar}} {{Carbon\Carbon::parse($resource->created_at)->format('M j, Y')}}
{{Carbon\Carbon::parse($resource->created_at)->format('g:i A')}}
@if($resource->read_at) {{Carbon\Carbon::parse($resource->read_at)->format('M j, Y')}}
{{Carbon\Carbon::parse($resource->read_at)->format('g:i A')}}
@else --- @endif
@if(auth()->user()->hasRole('super-admin')) @endif
@include('admin.components.advanced-pagination', ['paginator' => $resources])
@endsection