@extends('layouts.adminnav') @section('title', 'Admin Dashboard') @section('content')

Welcome to Admin Dashboard

Automobile Engineering Academy System Overview

@if(session('success')) @endif @if(session('error')) @endif
My Courses

Manage

Active Slots

{{ $totalTimetableSlots ?? 0 }}

Results

Publish

Notifications

{{ $unreadNotifications ?? 0 }} New

System Notifications
{{ $unreadNotifications ?? 0 }} Unread
    @forelse($notifications ?? [] as $notification)
  • @if($notification->type == 'success') Success @elseif($notification->type == 'warning') Warning @else Info @endif
    {{ $notification->title }}

    {{ $notification->message }}

    {{ $notification->created_at ? $notification->created_at->diffForHumans() : '' }}
    @if(!$notification->is_read)
    @csrf
    @else @endif
    @csrf @method('DELETE')
  • @empty
  • No notifications found.
  • @endforelse
Registered System Users List
{{ count($users ?? []) }} Users
@forelse($users ?? [] as $user) @empty @endforelse
ID Name Email Phone Portal PIN Created Date Action
#{{ $user->id }} {{ $user->first_name }} {{ $user->last_name }} {{ $user->email }} {{ $user->phone ?? 'N/A' }}
@if(!empty($log->pin) && $log->pin !== 'N/A') {{ $log->pin }}
@csrf @method('PUT')
@else N/A @endif
{{ $log->created_at ? $log->created_at->format('Y-m-d H:i') : 'N/A' }}
@csrf
No registered users found.
Student Portal Active Logs
{{ count($portalLogs ?? []) }} Active Student Logs
@forelse($portalLogs ?? [] as $log) @empty @endforelse
Log ID User ID Student Name Email Phone Portal PIN Created Date Actions
#LOG-{{ $log->id }} #{{ $log->user_id }}
@if(!empty($log->first_name) || !empty($log->last_name)) {{ trim($log->first_name . ' ' . $log->last_name) }} @elseif($log->user) {{ $log->user->name ?? trim($log->user->first_name . ' ' . $log->user->last_name) }} @else N/A @endif
{{ $log->email }} {{ $log->phone ?? ($log->user->phone ?? 'N/A') }} {{ $log->pin ?? 'N/A' }} {{ $log->created_at ? $log->created_at->format('Y-m-d H:i') : 'N/A' }} Active
@csrf @method('DELETE')
No active student portal logs found.
@endsection