@extends('admin.layouts.master') @section('css') @endsection @section('contents')
@if(auth()->user()->can('create_blogs')) @endif
@include('admin.blogs.search_form')

{{ __('Blogs') }} {{ $rows->total() }}

| @foreach($sortedCategories as $category) {{ $category->name }} {{ $categoryCounts->get($category->id, 0) }} @endforeach @if(isset($categoryCounts['']) || isset($categoryCounts[null]) || isset($categoryCounts[0])) {{ __('بدون تصنيف') }} {{ $categoryCounts[''] ?? $categoryCounts[null] ?? $categoryCounts[0] ?? 0 }} @endif
@foreach($rows as $row) @endforeach
# {{__('Image')}} {{__('Title')}} {{__('Category')}} {{__('Focus Keyword')}} {{__('Status')}} {{__('Created At')}} {{__('Actions')}}
{{ $rows->total() - (($rows->currentPage() - 1) * $rows->perPage() + $loop->index) }} {{$row->title}} {{$row->title ?? __('None')}} @if($row->category) {{$row->category->name}} @else - @endif @if($row->focus_keyword) {{$row->focus_keyword}} @else - @endif {{$row->status ? __('Active') : __('Inactive')}} {{Carbon\Carbon::parse($row->created_at)->format('M j, Y')}}
{{Carbon\Carbon::parse($row->created_at)->format('g:i A')}}
@if(auth()->user()->can('update_blogs')) @endif @if(auth()->user()->can('delete_blogs')) @endif
@include('admin.components.advanced-pagination', ['paginator' => $rows])
@endsection @section('js') @endsection