@extends('student.layouts.app') @section('title', __('dashboard.General Notifications')) @section('content')
@foreach($notifications as $notification) @php $isSeen = $notification->isSeenBy(auth()->id()); @endphp
@if($notification->is_image) @elseif($notification->attachment) @else @endif
{{ $notification->title }} {{ $notification->created_at->diffForHumans() }}

{{ Str::limit(strip_tags($notification->description), 100) }}

@if(!$isSeen)
@endif
@endforeach @if(($notifications)->isEmpty())
{{ __('dashboard.No notifications found.') }}
@endif
{{ $notifications->links() }}
@endsection