@extends('core::base.layouts.master') @section('title') {{ translate('Post Category') }} @endsection @section('custom_css') @include('core::base.includes.data_table.css') @endsection @section('main_content')
| {{ translate('Name') }} | {{ translate('Parent') }} | {{ translate('Featured') }} | {{ translate('Status') }} | {{ translate('Actions') }} | |
|---|---|---|---|---|---|
| {{ $bcategory->translation('name', getLocale()) }} | @if ($bcategory->parentCategory != null) {{ $bcategory->parentCategory->name }} @endif | @if ($bcategory->permalink !== 'uncategorized') @endif | @if ($bcategory->permalink !== 'uncategorized') @endif | @if ($bcategory->permalink !== 'uncategorized') @endif |
{{ translate('Showing') }} @if (!request()->input('page') || request()->input('page') == 1) 1 to {{ count($bcategories) }} @else @php if (request()->input('per_page')) { $per_page_count = request()->input('per_page'); } else { $per_page_count = 10; } $start_count = ((int) request()->input('page') - 1) * $per_page_count + 1; if (request()->input('page') == $bcategories->lastPage()) { $end_count = $bcategories->total(); } else { $end_count = (int) request()->input('page') * $per_page_count; } @endphp {{ $start_count . ' to ' . $end_count }} @endif {{ translate('items of') }} {{ $bcategories->total() }}