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

Notifications / Manage Notifications


@if (session('success') || session('error'))
{{ session('success') ? session('success') : session('error') }}
@endif
Manage Notifications
@foreach ($columns as $column) @if ($column !== 'id' && $column !== 'notification_type') {{-- Skip the 'id' column --}} @if ($column === 'image_path') @else @endif @endif @endforeach @foreach ($paginationdata as $item) @foreach ($columns as $column) @if ($column !== 'id' && $column !== 'notification_type') {{-- 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') @if ($item->status == 1) Intrested
@csrf
@else Assigned @endif @elseif ($column === 'message') @if ($item->status == 1) {{ $item->message }}

{{ \Carbon\Carbon::parse($item->created_at)->diffForHumans() }}

@else {{ $item->message }}

{{ \Carbon\Carbon::parse($item->created_at)->diffForHumans() }}

@endif @elseif ($column === 'name')

{{ $item->loginModel->email ?? 'No data available' }}

{{ $item->logindataModel->institution_name ?? 'Cyber Hygiene Community' }} {{ $item->loginModel->usertype ?? 'No data available' }} @else {{ $item->{$column} }} @endif



@endsection