@extends('layouts/contentNavbarLayout')
@section('title', 'Designplus - Blog-category')
@section('content')
Blog Category / Manage Blog Category
@if (isset($userGroupPermissions['blog_category']))
@if ($userGroupPermissions['blog_category']['adds'] == 0)
You do not have
permission to add blog category on this page.
@endif
@if ($userGroupPermissions['blog_category']['edits'] == 0)
You do not have permission to
edit blog category on this page.
@endif
@if ($userGroupPermissions['blog_category']['deletes'] == 0)
You do not have permission to
delete blog category on this page.
@endif
@endif
@if (session('success') || session('error'))
{{ session('success') ? session('success') : session('error') }}
@endif
@foreach ($columns as $column)
@if ($column !== 'id' && $column !== 'title')
{{-- Skip the 'id' column --}}
@if ($column === 'image_path')
Category Image |
@elseif ($column === 'status')
{{ ucfirst($column) }} |
@else
{{ ucfirst($column) }} |
@endif
@endif
@endforeach
Actions |
@foreach ($paginationdata as $item)
@foreach ($columns as $column)
@if ($column !== 'id' && $column !== 'title')
{{-- Skip the 'id' column --}}
@if ($column === 'image_path')
{{-- Display thumbnail image --}}
@if (!empty($item->{$column}))
@endif
@elseif ($column === 'status')
{{-- Display human-readable status --}}
@if ($item->{$column} == 1)
Active
@else
Inactive
@endif
@else
{{ $item->{$column} }}
@endif
|
@endif
@endforeach
|
@foreach ($item->getTableColumns() as $column)
@if ($column !== 'id')
- {{ ucfirst(str_replace('_', ' ', $column)) }}:
-
@if ($column === 'image_path' && !empty($item->{$column}))
@elseif ($column === 'status')
{{ $item->{$column} == 1 ? 'Active' : 'Inactive' }}
@else
{{ $item->{$column} }}
@endif
@endif
@endforeach
@endforeach
@endsection