@extends('admin.layouts.app') @section('content')

News & Update

@foreach (['success', 'info', 'danger', 'warning'] as $msg) @if (Session::has($msg)) @endif @endforeach
{{--

Search

@csrf @method('GET')
--}}
@can('create-news-update') Create @endcan Reset
@csrf @method('GET')
@foreach ($newsUpdates as $key => $newsUpdate) @endforeach
Sr.Nom Title Description Sort Order Status Have Popup Action
{{ $newsUpdate->id }} {{ \Illuminate\Support\Str::limit($newsUpdate->title ?? '', 20) }} {{ \Illuminate\Support\Str::limit($newsUpdate->description ?? '', 20) }} {{ $newsUpdate->sort_num ?? '😒' }}
@csrf @method('PUT')
@if ($newsUpdate->have_popup == 1) Active @else @endif
@can('edit-news-update') Edit @endcan @can('delete-news-update')
@csrf @method('DELETE')
@endcan
@endsection