296 lines
7.5 KiB
PHP
296 lines
7.5 KiB
PHP
@extends('layouts.studentportalnav')
|
|
|
|
@section('title', 'Dashboard')
|
|
|
|
@section('content')
|
|
|
|
<style>
|
|
:root {
|
|
--theme-navy: #2D355B; /* Primary Dark Navy */
|
|
--theme-footer-navy: #1F2541; /* Darker Navy */
|
|
--theme-red: #822424; /* Primary Accent Red */
|
|
--theme-red-hover: #df2c3e; /* Red Hover State */
|
|
--theme-yellow: #FFEA85; /* Accent Gold/Yellow */
|
|
--theme-bg: #F6F6F6; /* Page Background */
|
|
--text-dark: #333333;
|
|
}
|
|
|
|
body {
|
|
background-color: var(--theme-bg);
|
|
color: var(--text-dark);
|
|
}
|
|
|
|
/* Header */
|
|
.dashboard-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 30px;
|
|
padding-bottom: 15px;
|
|
border-bottom: 2px solid #e2e8f0;
|
|
}
|
|
|
|
.dashboard-header h2 {
|
|
font-weight: 700;
|
|
color: var(--theme-navy);
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.dashboard-header p {
|
|
color: #6c757d;
|
|
margin: 0;
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.avatar {
|
|
width: 55px;
|
|
height: 55px;
|
|
border-radius: 50%;
|
|
background: var(--theme-navy);
|
|
color: var(--theme-yellow);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-weight: bold;
|
|
font-size: 20px;
|
|
box-shadow: 0 4px 10px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
/* Statistic Cards */
|
|
.stat-card {
|
|
background: #ffffff;
|
|
border-radius: 12px;
|
|
padding: 24px;
|
|
box-shadow: 0 4px 12px rgba(0,0,0,0.05);
|
|
transition: all 0.3s ease;
|
|
height: 100%;
|
|
border: 1px solid #e2e8f0;
|
|
}
|
|
|
|
.stat-card:hover {
|
|
transform: translateY(-5px);
|
|
box-shadow: 0 8px 20px rgba(45, 53, 91, 0.12);
|
|
border-color: var(--theme-navy);
|
|
}
|
|
|
|
.stat-icon {
|
|
width: 55px;
|
|
height: 55px;
|
|
border-radius: 10px;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
color: #ffffff;
|
|
font-size: 22px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.stat-card h3 {
|
|
font-weight: 700;
|
|
color: var(--theme-navy);
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.stat-card p {
|
|
color: #6c757d;
|
|
font-size: 0.9rem;
|
|
font-weight: 600;
|
|
margin: 0;
|
|
}
|
|
|
|
/* Services */
|
|
.section-title {
|
|
font-size: 22px;
|
|
font-weight: 700;
|
|
color: var(--theme-navy);
|
|
margin: 40px 0 20px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.section-title::before {
|
|
content: '';
|
|
display: inline-block;
|
|
width: 5px;
|
|
height: 24px;
|
|
background-color: var(--theme-red);
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.service-card {
|
|
background: #ffffff;
|
|
border-radius: 12px;
|
|
padding: 30px 20px;
|
|
text-align: center;
|
|
transition: all 0.3s ease;
|
|
box-shadow: 0 4px 12px rgba(0,0,0,0.05);
|
|
height: 100%;
|
|
border: 1px solid #e2e8f0;
|
|
}
|
|
|
|
.service-card:hover {
|
|
transform: translateY(-6px);
|
|
box-shadow: 0 8px 22px rgba(0,0,0,0.1);
|
|
border-color: var(--theme-red);
|
|
}
|
|
|
|
.service-card i {
|
|
font-size: 40px;
|
|
color: var(--theme-red);
|
|
margin-bottom: 16px;
|
|
transition: transform 0.3s ease, color 0.3s ease;
|
|
}
|
|
|
|
.service-card:hover i {
|
|
transform: scale(1.1);
|
|
color: var(--theme-red-hover);
|
|
}
|
|
|
|
.service-card h5 {
|
|
font-weight: 700;
|
|
color: var(--theme-navy);
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.service-card p {
|
|
color: #6c757d;
|
|
font-size: 13.5px;
|
|
margin: 0;
|
|
line-height: 1.5;
|
|
}
|
|
</style>
|
|
|
|
<div class="container-fluid">
|
|
|
|
<!-- Dashboard Header -->
|
|
<div class="dashboard-header">
|
|
<div>
|
|
<h2>Welcome Back, {{ Auth::check() ? Auth::user()->first_name : 'Student' }}!</h2>
|
|
<p>Manage your academic activities and course updates from your dashboard.</p>
|
|
</div>
|
|
|
|
@if(Auth::check())
|
|
<div class="avatar" title="{{ Auth::user()->first_name }}">
|
|
{{ strtoupper(substr(Auth::user()->first_name, 0, 1)) }}
|
|
</div>
|
|
@endif
|
|
</div>
|
|
|
|
<!-- Statistics Cards -->
|
|
<div class="row g-4">
|
|
|
|
<div class="col-lg-3 col-md-6">
|
|
<div class="stat-card">
|
|
<div class="stat-icon" style="background: var(--theme-navy);">
|
|
<i class="fa-solid fa-book"></i>
|
|
</div>
|
|
<h3>6</h3>
|
|
<p>Enrolled Courses</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-lg-3 col-md-6">
|
|
<div class="stat-card">
|
|
<div class="stat-icon" style="background: #0d9488;">
|
|
<i class="fa-solid fa-file-lines"></i>
|
|
</div>
|
|
<h3>3</h3>
|
|
<p>Assignments</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-lg-3 col-md-6">
|
|
<div class="stat-card">
|
|
<div class="stat-icon" style="background: #d97706;">
|
|
<i class="fa-solid fa-chart-column"></i>
|
|
</div>
|
|
<h3>78%</h3>
|
|
<p>Average Result</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-lg-3 col-md-6">
|
|
<div class="stat-card">
|
|
<div class="stat-icon" style="background: var(--theme-red);">
|
|
<i class="fa-solid fa-bell"></i>
|
|
</div>
|
|
<h3>2</h3>
|
|
<p>Exam Notices</p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- Student Services Section -->
|
|
<div class="section-title">
|
|
Student Services
|
|
</div>
|
|
|
|
<div class="row g-4">
|
|
|
|
<div class="col-lg-4 col-md-6">
|
|
<a href="/mycourse" class="text-decoration-none">
|
|
<div class="service-card">
|
|
<i class="fa-solid fa-book"></i>
|
|
<h5>My Courses</h5>
|
|
<p>Access all learning materials, lectures, and course content.</p>
|
|
</div>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="col-lg-4 col-md-6">
|
|
<a href="/timetable" class="text-decoration-none">
|
|
<div class="service-card">
|
|
<i class="fa-solid fa-calendar-days"></i>
|
|
<h5>Class Timetable</h5>
|
|
<p>View your weekly lecture schedule and upcoming classes.</p>
|
|
</div>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="col-lg-4 col-md-6">
|
|
<a href="/results" class="text-decoration-none">
|
|
<div class="service-card">
|
|
<i class="fa-solid fa-square-poll-vertical"></i>
|
|
<h5>Exam Results</h5>
|
|
<p>Check semester examination marks and performance reports.</p>
|
|
</div>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="col-lg-4 col-md-6">
|
|
<a href="/Studentguidelines" class="text-decoration-none">
|
|
<div class="service-card">
|
|
<i class="fa-solid fa-book-open"></i>
|
|
<h5>Student Guidelines</h5>
|
|
<p>Read campus rules, regulations, and academic guidelines.</p>
|
|
</div>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="col-lg-4 col-md-6">
|
|
<a href="/Feedback&Complain" class="text-decoration-none">
|
|
<div class="service-card">
|
|
<i class="fa-solid fa-comments"></i>
|
|
<h5>Feedback & Complaint</h5>
|
|
<p>Send feedback or submit inquiries directly to administration.</p>
|
|
</div>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="col-lg-4 col-md-6">
|
|
<a href="/StudentProfile" class="text-decoration-none">
|
|
<div class="service-card">
|
|
<i class="fa-solid fa-user"></i>
|
|
<h5>Student Profile</h5>
|
|
<p>Manage and update your personal student profile details.</p>
|
|
</div>
|
|
</a>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endsection |