@extends('layouts.app', ['title' => "What's new"]) @section('content') @php($typeLabels = ['new' => ['New', 'text-bg-success'], 'improved' => ['Improved', 'text-bg-primary'], 'announcement' => ['Announcement', 'text-bg-warning']])

What's new

Recent improvements to {{ config('app.name') }}. {{ $unreadCount ? $unreadCount.' unread.' : 'You are up to date.' }}

@if ($unreadCount)
@csrf
@endif
@if ($grid)@endif
@if ($entries->isEmpty())
No updates match.
@else
@foreach ($entries as $e)
{{ \Carbon\Carbon::parse($e['date'])->format('d M Y') }} {{ $e['module'] }} {{ $typeLabels[$e['type']][0] ?? $e['type'] }} @if ($e['unread'])Unread@endif #{{ $e['id'] }}

{{ $e['title'] }}

    @foreach ($e['items'] as $item)
  • {{ $item }}
  • @endforeach
@endforeach
@endif @endsection @push('scripts') @endpush