@extends('layouts/contentNavbarLayout') @section('title', 'Shabeersaleel - Blogs') @section('page-script') @endsection @section('content')

Blog / Manage Blog

@if (isset($userGroupPermissions['blogs']) && $userGroupPermissions['blogs']['adds'] == 1) @else ADD @endif
Blog Category

@if (isset($userGroupPermissions['blogs'])) @if ($userGroupPermissions['blogs']['adds'] == 0) @endif @if ($userGroupPermissions['blogs']['edits'] == 0) @endif @if ($userGroupPermissions['blogs']['deletes'] == 0) @endif @endif @if (session('success') || session('error'))
{{ session('success') ? session('success') : session('error') }}
@endif
Manage Blog
@foreach ($columns as $column) @if ( $column !== 'id' && $column !== 'metta_title' && $column !== 'metta_description' && $column !== 'metta_keyword' && $column !== 'url' && $column !== 'description' && $column !== 'updated_at' && $column !== 'created_at' && $column !== 'alt' && $column !== 'tags' && $column !== 'quotes' && $column !== 'quotes_auther') {{-- Skip the 'id' column --}} @if ($column === 'image_path') @elseif ($column === 'sub_image_path') @else @endif @endif @endforeach @foreach ($paginationdata as $item) @foreach ($columns as $column) @if ( $column !== 'id' && $column !== 'metta_title' && $column !== 'metta_description' && $column !== 'metta_keyword' && $column !== 'url' && $column !== 'description' && $column !== 'updated_at' && $column !== 'created_at' && $column !== 'alt' && $column !== 'tags' && $column !== 'quotes' && $column !== 'quotes_auther') {{-- Skip the 'id' column --}} @endif @endforeach @endforeach
Banner ImageSub Image{{ ucfirst($column) }}Actions
@if ($column === 'image_path') {{-- Display thumbnail image --}} @if (!empty($item->{$column})) {{ $item->alt }} @endif @elseif ($column === 'sub_image_path') {{-- Display thumbnail image --}} @if (!empty($item->{$column})) @endif @elseif ($column === 'status') {{ $item->{$column} == 1 ? 'Active' : 'Inactive' }} @elseif ($column === 'category') {{ $item->categoryModel->category }} @elseif ($column === 'country') {{ $countries[$item->country] }} @elseif ($column === 'state') {{ $item->stateModel ? $item->stateModel->name : 'No state' }} @elseif ($column === 'author') {{ $item->author }} @else {{-- Display other column values --}} {{ $item->{$column} }} @endif


@endsection