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

Notificaciones

@if(Auth::user()->unreadNotifications->count() > 0) @endif
@if($notifications->count() > 0) @foreach($notifications as $notification)
{{ $notification->data['post_title'] ?? 'Notificación' }}

{!! $notification->data['message'] !!}

{{ $notification->created_at->diffForHumans() }}
@if(!$notification->read_at) @endif
@endforeach
{{ $notifications->links() }}
@else

No hay notificaciones

@endif
@endsection