@extends('layouts.app') @section('title', 'Latest Updates') @section('content') @php $filter = request('filter'); @endphp
{{-- Page header --}}
Updates & News

Latest updates

Announcements, events, research highlights and patient stories — all in one place for the Myositis community.

{{-- Filter pills --}}
@php $baseClasses = 'text-[12px] md:text-[13px] font-semibold px-3.5 py-1.5 rounded-full transition-all'; @endphp All New Events Research
{{-- GRID of cards (no sidebar, no list look) --}} @if($updates->isEmpty())
No updates available yet. Please check back soon.
@else
@foreach($updates as $update)
{{-- Category chip --}}
{{ $update->category ?? 'Update' }}
{{-- Title --}}

{{ \Illuminate\Support\Str::limit($update->title, 90) }}

{{-- Short description (no date, equal-ish length) --}} @if($update->excerpt)

{{ \Illuminate\Support\Str::limit($update->excerpt, 160) }}

@endif {{-- Bottom row: pinned + button (pushed to bottom for equal card height) --}}
@if($update->is_pinned) Pinned @endif
Know more
@endforeach
{{-- Pagination --}}
{{ $updates->links() }}
@endif
@endsection