@extends('BackEnd.Layouts.main') @section('title') {{ __('messages.View Categories') }} @endsection @section('content')
@include('BackEnd.Layouts.breadcrumb') @if (session('success'))
{{ session('success') }}
@endif @if (session('error'))
{{ session('error') }}
@endif
@include('BackEnd.Layouts.tableheader')
{{-- @ability(['admin','super_admin'],['']) --}} {{-- @endability --}} @foreach ($categories as $category) {{-- @ability(['admin','super_admin'],['']) --}} {{-- @endability --}} @foreach ($subcategories as $subcategory) @if ($subcategory->parent_id==$category->id) {{-- @ability(['admin','super_admin'],['']) --}} {{-- @endability --}} @endif @endforeach @endforeach
م اسم القسم عدد الأخبارالحالةتاريخ الإضافة الناشر آخر تعديل بواسطة {{ __('messages.CONTROL') }}
{{ $loop->iteration }} {{ $category->parent_id > 0 ? '--' : '' }} {{ $category->name_ar }} {{ $category->news->count() }} {{ $category->created_at->toDateString() }}
{{ $category->created_at->toTimeString() }}
{{ $category->getUser->name ?? '' }} {{ $category->getEditor->name ?? '' }} {{-- @ability(['publisher','admin','super_admin'],['']) --}} @if (true) @endif {{-- @endability --}}
{{ $loop->iteration }} {{ $subcategory->parent_id > 0 ? '--' : '' }} {{ $subcategory->name_ar }} {{ $subcategory->subnews->count() }} {{ $subcategory->created_at->toDateString() }}
{{ $subcategory->created_at->toTimeString() }}
{{ $subcategory->getUser->name ?? '' }} {{ $subcategory->getEditor->name ?? '' }} {{-- @ability(['publisher','admin','super_admin'],['']) --}} @if (true) @endif {{-- @endability --}}
{{ $categories->links() }}
@endsection @push('plugin_js') @endpush @push('custom_js') {{-- --}} @endpush @push('is_active_ajax') @endpush