@extends('layouts.app') @section('title', 'Notifikasi - SIAKAD') @section('page-title', 'Notifikasi') @section('content') @php $userRole = auth()->user()->role; @endphp
Daftar Notifikasi
@if($notifications->where('is_read', false)->count() > 0) Tandai semua dibaca @endif

@forelse($notifications as $notif)
@if($notif->type == 'krs_approved')
@elseif($notif->type == 'krs_rejected')
@elseif($notif->type == 'krs_request')
@elseif($notif->type == 'nilai_new')
@elseif($notif->type == 'nilai_reminder')
@elseif($notif->type == 'jadwal_change')
@else
@endif
{{ $notif->title }}

{{ $notif->message }}

{{ $notif->created_at->diffForHumans() }}
@if(!$notif->is_read) @endif
@csrf @method('DELETE')
@empty

Belum ada notifikasi

@endforelse @if($notifications->hasPages()) @endif
Info
    @if($userRole === 'dosen')
  • Permintaan KRS - Mahasiswa meminta persetujuan KRS
  • Pengingat Nilai - Deadline input nilai 3 hari lagi
  • Perubahan Jadwal - Jadwal mengajar berubah
  • @endif @if($userRole === 'mahasiswa')
  • KRS Disetujui - KRS anda telah disetujui
  • KRS Ditolak - KRS anda ditolak
  • Nilai Baru - Nilai mata kuliah telah diinput
  • @endif @if($userRole === 'admin')
  • KRS Disetujui
  • KRS Ditolak
  • Nilai Baru
  • Permintaan KRS
  • @endif
@endsection