@extends('admin.layouts.app') @section('content')

{{ trans('admin/main.blog_categories') }}

@can('admin_blog_categories') @if(!empty($blogCategories))
@foreach($blogCategories as $category) @endforeach
{{ trans('admin/main.title') }} {{ trans('admin/main.posts') }} {{ trans('admin/main.action') }}
{{ $category->title }} {{ $category->blog_count }} @can('admin_edit_trending_categories') @endcan @can('admin_delete_trending_categories') @include('admin.includes.delete_button',['url' => getAdminPanelUrl('/blog/categories/'. $category->id .'/delete'), 'btnClass' => '']) @endcan
@endif @endcan @can('admin_blog_categories_create')
{{ csrf_field() }}
@error('title')
{{ $message }}
@enderror
@endcan
@endsection @push('scripts_bottom') @endpush