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

Latest Update

@foreach (['success', 'info', 'danger', 'warning'] as $msg) @if (Session::has($msg)) @endif @endforeach
@can('create-latest-update') Create @endcan Reset
@foreach ($latestUpdates as $key => $latestUpdate) @endforeach
Sr.Nom Title Content Link Status Action
{{ $latestUpdate->id }} {{ \Illuminate\Support\Str::limit($latestUpdate->title, 20) }} {{ \Illuminate\Support\Str::limit($latestUpdate->content, 20) }} {{ \Illuminate\Support\Str::limit($latestUpdate->link, 20) }}
@csrf @method('PUT')
@can('edit-latest-update') Edit @endcan @can('delete-latest-update')
@csrf @method('DELETE')
@endcan
@endsection