@extends('layouts.app') @section('title', 'Notificações') @section('content')

Notificações

@if ($notifications->total() > 0)
@csrf
@endif
@if ($notifications->isEmpty())

Nenhuma notificação por aqui ainda.

Quando uma vaga compatível com seu perfil for publicada, você será avisado aqui.

@else
@foreach ($notifications as $notification) @php $jobUrl = $notification->jobListing ? route('vagas.show', $notification->jobListing) : null; @endphp
{{ $notification->title }} {{ $notification->created_at->diffForHumans() }}
@if ($notification->body)

{{ $notification->body }}

@endif
@if ($jobUrl) Ver vaga @endif @if (! $notification->read)
@csrf
@endif
@endforeach
{{ $notifications->links() }}
@endif
@endsection