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

Blog / Manage Blog

ADD

@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 !== 'alt'&& $column !== 'author') {{-- Skip the 'id' column --}} @if ($column === '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 !== 'alt'&& $column !== 'author') {{-- Skip the 'id' column --}} @endif @endforeach @endforeach
Banner Image{{ ucfirst($column) }}Actions
@if ($column === 'image_path') {{-- Display thumbnail image --}} @if(!empty($item->{$column})) {{ $item->alt }} @endif @elseif ($column === 'status') {{ $item->{$column} == 1 ? 'Active' : 'Inactive' }} @elseif ($column === 'category') {{ $item->categoryModel->category }} @else {{ $item->{$column} }} @endif


@endsection