@extends('layouts.contentLayoutMaster') @section('title', 'Manage Resources') @section('content')
{{-- Session flash is shown in the layout; do not duplicate here. --}}

Resources

Create New
@forelse($resources as $r) @empty @endforelse
ID Thumb Title Subtitle Description Tags Actions
{{ $r->id }} @if(!empty($r->thumb_url)) @else @endif {{ $r->title }} {{ $r->subtitle }} {{ Str::limit(strip_tags($r->description ?? ''), 200) }} @php $tags = is_array($r->tags) ? $r->tags : (is_string($r->tags) && trim($r->tags) !== '' ? explode(',', $r->tags) : []); $tags = array_map('trim', $tags); @endphp @if(!empty($tags)) @foreach($tags as $t) @if($t !== '') {{ $t }} @endif @endforeach @endif Edit
@csrf @method('DELETE')
No resources yet.
{{ $resources->links() }}
@endsection