@extends('layouts/contentNavbarLayout') @section('title', 'Designplus - Projects') @section('content')

Category / Manage Category

ADD CATEGORY

@if(session('success') || session('error'))
{{ session('success') ? session('success') : session('error') }}
@endif
Manage Project Category
@foreach($columns as $column) @if ($column !== 'id' && $column !== 'title') {{-- Skip the 'id' column --}} @if ($column === 'image_path') @elseif ($column === 'status') @else @endif @endif @endforeach @foreach($paginationdata as $item) @foreach($columns as $column) @if ($column !== 'id' && $column !== 'title') {{-- Skip the 'id' column --}} @endif @endforeach @endforeach
Category Image{{ ucfirst($column) }}{{ ucfirst($column) }}Actions
@if ($column === 'image_path') {{-- Display thumbnail image --}} @if(!empty($item->{$column})) {{ $item->alt }} @endif @elseif ($column === 'status') {{-- Display human-readable status --}} @if ($item->{$column} == 1) Active @else Inactive @endif @else {{ $item->{$column} }} @endif


@endsection