509 lines
18 KiB
PHP
509 lines
18 KiB
PHP
@extends('layouts.app')
|
|
|
|
@section('title', 'Student Portal')
|
|
|
|
@section('content')
|
|
|
|
<style>
|
|
:root {
|
|
/* Premium Modern Automotive Palette matched from previous page */
|
|
--primary: #3E51B8; /* Tech Blue */
|
|
--primary-light: #0a67df; /* Vibrant Electric Blue */
|
|
--secondary: #BC1A1A; /* Deep Racing Red */
|
|
--secondary-hover: #822424; /* Dark Burnt Red */
|
|
--accent-dark: #753939; /* Muted Crimson */
|
|
--accent-orange: #e36414; /* Warning/Industrial Orange */
|
|
--accent-yellow: #FFE618; /* High-Visibility Electric Yellow */
|
|
--bg-light: #F8FAFC; /* Soft slate light gray */
|
|
|
|
/* Semantic Adjustments */
|
|
--text-main: #1E293B; /* Slate dark grey */
|
|
--text-muted: #64748B; /* Neutral gray */
|
|
--card-border: rgba(62, 81, 184, 0.1);
|
|
}
|
|
|
|
body {
|
|
font-family: 'Segoe UI', Arial, sans-serif;
|
|
color: var(--text-main);
|
|
}
|
|
|
|
.hero {
|
|
background: linear-gradient(rgba(214, 218, 238, 0.85), rgba(0, 0, 0, 0.6)),
|
|
url('https://images.pexels.com/photos/3802510/pexels-photo-3802510.jpeg');
|
|
|
|
background-size: cover;
|
|
background-position: center;
|
|
color: #fff;
|
|
padding: 80px 0;
|
|
text-align: center;
|
|
height: 480px;
|
|
}
|
|
|
|
.portal-card {
|
|
border: none;
|
|
border-radius: 15px;
|
|
transition: .4s cubic-bezier(0.165, 0.84, 0.44, 1);
|
|
box-shadow: 0 5px 20px rgba(0,0,0,.04);
|
|
border: 1px solid var(--card-border);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.portal-card:hover {
|
|
transform: translateY(-8px);
|
|
border-color: #5f3131;
|
|
box-shadow: 0 15px 30px rgba(62, 81, 184, 0.12);
|
|
}
|
|
|
|
.portal-icon {
|
|
width: 70px;
|
|
height: 70px;
|
|
background: #822a32;
|
|
color: #ffed8b;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 28px;
|
|
margin: auto;
|
|
transition: 0.4s ease;
|
|
}
|
|
|
|
.portal-card:hover .portal-icon {
|
|
background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-hover) 100%);
|
|
transform: scale(1.1);
|
|
box-shadow: 0 5px 15px rgba(188, 26, 26, 0.3);
|
|
}
|
|
|
|
.btn-portal {
|
|
background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-hover) 100%);
|
|
color: #fff;
|
|
padding: 12px 35px;
|
|
|
|
border-radius: 8px;
|
|
font-weight: 600;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.btn-portal:hover {
|
|
background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-hover) 100%);
|
|
color: #f4ff8d;
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 5px 15px rgba(188, 26, 26, 0.3);
|
|
|
|
}
|
|
|
|
.btn:hover {
|
|
border-color: rgba(255, 255, 255, 0.98);
|
|
}
|
|
|
|
.modal-content {
|
|
border: none;
|
|
border-radius: 16px;
|
|
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.modal.fade .modal-dialog {
|
|
transform: scale(0.85);
|
|
transition: transform 0.3s ease-out;
|
|
}
|
|
.modal.show .modal-dialog {
|
|
transform: scale(1);
|
|
}
|
|
|
|
.modal-header {
|
|
background: transparent;
|
|
border-bottom: none;
|
|
padding: 25px 25px 10px;
|
|
}
|
|
|
|
.modal-title {
|
|
color: var(--primary);
|
|
font-weight: 700;
|
|
font-size: 1.35rem;
|
|
}
|
|
|
|
.modal-body {
|
|
padding: 10px 25px 20px;
|
|
}
|
|
|
|
.input-group-text {
|
|
background-color: #f8fafc;
|
|
border-color: #cbd5e1;
|
|
color: #64748b;
|
|
border-top-left-radius: 8px;
|
|
border-bottom-left-radius: 8px;
|
|
}
|
|
|
|
.form-label {
|
|
color: #475569;
|
|
font-weight: 500;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.form-control {
|
|
border: 1px solid #cbd5e1;
|
|
padding: 0.65rem 0.75rem;
|
|
font-size: 0.95rem;
|
|
border-top-right-radius: 8px;
|
|
border-bottom-right-radius: 8px;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.form-control:focus {
|
|
border-color: var(--primary-light);
|
|
box-shadow: 0 0 0 4px rgba(10, 103, 223, 0.15);
|
|
outline: 0;
|
|
}
|
|
|
|
.input-group:focus-within .input-group-text {
|
|
border-color: var(--primary-light);
|
|
color: var(--primary-light);
|
|
}
|
|
|
|
.modal-footer {
|
|
background: transparent;
|
|
border-top: none;
|
|
padding: 0 25px 30px;
|
|
}
|
|
|
|
.btn-modal-cancel {
|
|
background: transparent;
|
|
border: 1.5px solid #cbd5e1;
|
|
color: #64748b;
|
|
font-weight: 600;
|
|
padding: 10px 0;
|
|
transition: all 0.2s;
|
|
width: 100%;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.btn-modal-cancel:hover {
|
|
background: #f1f5f9;
|
|
color: #334155;
|
|
border-color: #94a3b8;
|
|
}
|
|
|
|
.btn-modal-login {
|
|
background: var(--primary);
|
|
color: #fff;
|
|
border: none;
|
|
font-weight: 600;
|
|
padding: 10px 0;
|
|
box-shadow: 0 4px 12px rgba(62, 81, 184, 0.2);
|
|
transition: all 0.2s;
|
|
width: 100%;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.btn-modal-login:hover {
|
|
background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-hover) 100%);
|
|
color: #fff;
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 6px 15px rgba(188, 26, 26, 0.3);
|
|
}
|
|
|
|
.bg-light {
|
|
background: linear-gradient(rgba(162, 190, 255, 0.49), rgba(237, 235, 255, 0.9)), url('https://images.pexels.com/photos/3807277/pexels-photo-3807277.jpeg?auto=compress&cs=tinysrgb&w=1600');
|
|
background-position-x: 0%, 0%;
|
|
background-position-y: 0%, 0%;
|
|
background-repeat: repeat, repeat;
|
|
background-attachment: scroll, scroll;
|
|
background-size: auto, auto;
|
|
background-size: cover;
|
|
background-position: center;
|
|
background-repeat: no-repeat;
|
|
background-attachment: fixed;
|
|
color: white;
|
|
}
|
|
|
|
|
|
/* ========================================================
|
|
Custom CSS Scroll Animations
|
|
======================================================== */
|
|
.animate-item {
|
|
opacity: 0;
|
|
will-change: transform, opacity;
|
|
transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
|
|
}
|
|
|
|
.fade-up-init {
|
|
transform: translateY(30px);
|
|
}
|
|
|
|
.fade-in-init {
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
.slide-right-init {
|
|
transform: translateX(30px);
|
|
}
|
|
|
|
.animate-item.animated {
|
|
opacity: 1;
|
|
transform: translate(0) scale(1);
|
|
}
|
|
/* .rounded-pill {
|
|
border-radius: inherit;
|
|
} */
|
|
</style>
|
|
|
|
<section class="hero">
|
|
<div class="container" style="padding-top: 46px;">
|
|
<div class="animate-item animated fade-up-init">
|
|
<h1 class="fw-bold display-5">Student Portal</h1>
|
|
<p class="mt-3 fs-5" style="max-width: 700px; margin: auto;">
|
|
Access your courses, timetable, assignments, examination results,
|
|
payments and profile from one place.
|
|
</p>
|
|
|
|
<button onclick="studentlogin()" class="btn btn-portal mt-4 shadow">
|
|
Student Login
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- SERVICES SECTION -->
|
|
<section class="py-5 overflow-hidden">
|
|
<div class="container">
|
|
<div class="text-center mb-5 animate-item fade-up-init">
|
|
<h2 class="fw-bold">Student Services</h2>
|
|
<p class="text-muted">
|
|
Everything you need during your academic journey.
|
|
</p>
|
|
</div>
|
|
|
|
<div class="row g-4 animate-item fade-in-init">
|
|
<div class="col-md-4">
|
|
<div class="card portal-card h-100 text-center p-4" onclick="studentlogin()">
|
|
<div class="portal-icon">
|
|
<i class="fa-solid fa-book"></i>
|
|
</div>
|
|
<h4 class="mt-4 fw-bold">My Courses</h4>
|
|
<p class="text-muted mb-0">View enrolled courses and learning materials.</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-4">
|
|
<div class="card portal-card h-100 text-center p-4" onclick="studentlogin()">
|
|
<div class="portal-icon">
|
|
<i class="fa-solid fa-calendar-days"></i>
|
|
</div>
|
|
<h4 class="mt-4 fw-bold">Class Timetable</h4>
|
|
<p class="text-muted mb-0">Check your weekly lecture schedule.</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-4">
|
|
<div class="card portal-card h-100 text-center p-4" onclick="studentlogin()">
|
|
<div class="portal-icon">
|
|
<i class="fa-solid fa-file-lines"></i>
|
|
</div>
|
|
<h4 class="mt-4 fw-bold">Assignments</h4>
|
|
<p class="text-muted mb-0">Submit assignments and download resources.</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-4">
|
|
<div class="card portal-card h-100 text-center p-4" onclick="studentlogin()">
|
|
<div class="portal-icon">
|
|
<i class="fa-solid fa-square-poll-vertical"></i>
|
|
</div>
|
|
<h4 class="mt-4 fw-bold">Exam Results</h4>
|
|
<p class="text-muted mb-0">View semester and final examination results.</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-4">
|
|
<div class="card portal-card h-100 text-center p-4" onclick="studentlogin()">
|
|
<div class="portal-icon">
|
|
<i class="fa-solid fa-credit-card"></i>
|
|
</div>
|
|
<h4 class="mt-4 fw-bold">Fee Payments</h4>
|
|
<p class="text-muted mb-0">Pay course fees and download payment receipts.</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-4">
|
|
<div class="card portal-card h-100 text-center p-4" onclick="studentlogin()">
|
|
<div class="portal-icon">
|
|
<i class="fa-solid fa-user"></i>
|
|
</div>
|
|
<h4 class="mt-4 fw-bold">Student Profile</h4>
|
|
<p class="text-muted mb-0">Update your personal information securely.</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- QUICK LINKS -->
|
|
<!-- <section class="py-5 bg-light overflow-hidden">
|
|
<div class="container">
|
|
<div class="text-center mb-5 animate-item fade-up-init">
|
|
<h2 class="fw-bold">Quick Links</h2>
|
|
</div>
|
|
|
|
<div class="row text-center animate-item slide-right-init" style="color:white;">
|
|
<div class="col-md-3 mb-3">
|
|
<a href="#" class="btn btn-outline-dark w-100 py-2 fw-semibold rounded-pill" style="color:white;">Academic Calendar</a>
|
|
</div>
|
|
<div class="col-md-3 mb-3">
|
|
<a href="#" class="btn btn-outline-dark w-100 py-2 fw-semibold rounded-pill" style="color:white;">Student Handbook</a>
|
|
</div>
|
|
<div class="col-md-3 mb-3">
|
|
<a href="#" class="btn btn-outline-dark w-100 py-2 fw-semibold rounded-pill" style="color:white;">Examination Notices</a>
|
|
</div>
|
|
<div class="col-md-3 mb-3">
|
|
<a href="#" class="btn btn-outline-dark w-100 py-2 fw-semibold rounded-pill" style="color:white;">Contact Support</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section> -->
|
|
|
|
<section class="py-5 overflow-hidden"
|
|
style="background: linear-gradient(rgba(25, 48, 102, 0.49), rgba(10, 9, 17, 0.9)), url('https://images.pexels.com/photos/3807277/pexels-photo-3807277.jpeg?auto=compress&cs=tinysrgb&w=1600'); background-size: cover; background-position: center; background-repeat: no-repeat; background-attachment: fixed; color: white; height: 395px; ">
|
|
<div class="container">
|
|
|
|
<!-- Section Title -->
|
|
<div class="text-center mb-5 animate-item fade-up-init">
|
|
<h2 class="fw-bold mb-2" style="color: #ffffff;">Quick Links</h2>
|
|
<p style="color: #ffffff; font-size: 0.95rem; font-weight: 500;">Access important student portals and resources instantly</p>
|
|
</div>
|
|
|
|
<!-- Quick Links Grid -->
|
|
<div class="row g-3 justify-content-center animate-item slide-right-init">
|
|
|
|
<!-- Link 1 -->
|
|
<div class="col-6 col-md-3">
|
|
<a href="#" class="d-flex flex-column align-items-center text-decoration-none p-4 rounded-4 text-center"
|
|
style="background: rgba(255, 255, 255, 0.75); border: 1px solid rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); transition: all 0.3s ease;">
|
|
<div style="color: #0284c7; font-size: 2rem;" class="mb-2">
|
|
<i class="bi bi-calendar-event"></i>
|
|
</div>
|
|
<span class="fw-bold" style="color: #002886; font-size: 19px;">Academic Calendar</span>
|
|
</a>
|
|
</div>
|
|
|
|
<!-- Link 2 -->
|
|
<div class="col-6 col-md-3">
|
|
<a href="#" class="d-flex flex-column align-items-center text-decoration-none p-4 rounded-4 text-center"
|
|
style="background: rgba(255, 255, 255, 0.75); border: 1px solid rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); transition: all 0.3s ease;">
|
|
<div style="color: #0284c7; font-size: 2rem;" class="mb-2">
|
|
<i class="bi bi-journal-bookmark"></i>
|
|
</div>
|
|
<span class="fw-bold" style="color: #002886; font-size: 19px;">Student Handbook</span>
|
|
</a>
|
|
</div>
|
|
|
|
<!-- Link 3 -->
|
|
<div class="col-6 col-md-3">
|
|
<a href="#" class="d-flex flex-column align-items-center text-decoration-none p-4 rounded-4 text-center"
|
|
style="background: rgba(255, 255, 255, 0.75); border: 1px solid rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); transition: all 0.3s ease;">
|
|
<div style="color: #0284c7; font-size: 2rem;" class="mb-2">
|
|
<i class="bi bi-file-earmark-text"></i>
|
|
</div>
|
|
<span class="fw-bold" style="color: #002886; font-size: 19px;">Examination Notices</span>
|
|
</a>
|
|
</div>
|
|
|
|
<!-- Link 4 -->
|
|
<div class="col-6 col-md-3">
|
|
<a href="#" class="d-flex flex-column align-items-center text-decoration-none p-4 rounded-4 text-center"
|
|
style="background: rgba(255, 255, 255, 0.75); border: 1px solid rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); transition: all 0.3s ease;">
|
|
<div style="color: #0284c7; font-size: 2rem;" class="mb-2">
|
|
<i class="bi bi-headset"></i>
|
|
</div>
|
|
<span class="fw-bold" style="color: #002886; font-size: 19px;">Contact Support</span>
|
|
</a>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- BOTTOM CTA -->
|
|
<section class="py-5 bg-white">
|
|
<div class="container text-center animate-item fade-up-init">
|
|
<h2 class="fw-bold">Ready to Access Your Student Account?</h2>
|
|
<p class="text-muted fs-5">Log in to manage your academic activities and stay updated.</p>
|
|
<button onclick="studentlogin()" class="btn btn-portal mt-3 shadow">
|
|
Student Login
|
|
</button>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- LOGIN MODAL -->
|
|
<div class="modal fade" id="studentLoginModal" tabindex="-1" aria-labelledby="studentLoginModalLabel" aria-hidden="true">
|
|
<div class="modal-dialog modal-dialog-centered">
|
|
<div class="modal-content">
|
|
<div class="modal-header d-flex align-items-center justify-content-between">
|
|
<h5 class="modal-title w-100 text-center" id="studentLoginModalLabel">
|
|
<i class="fa-solid fa-lock-open me-2" style="font-size: 20px; color: var(--secondary);"></i>
|
|
Student Portal Login
|
|
</h5>
|
|
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
|
</div>
|
|
<form action="{{ route('student.login.submit') }}" method="POST" id="studentLoginForm">
|
|
@csrf
|
|
|
|
<div class="modal-body">
|
|
<div class="mb-3">
|
|
<label for="username" class="form-label">Username / Student ID</label>
|
|
<div class="input-group">
|
|
<span class="input-group-text"><i class="fa-solid fa-user-graduate"></i></span>
|
|
<input type="text" name="username" id="username" class="form-control" placeholder="Enter your student ID" required>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label for="password" class="form-label">Password</label>
|
|
<div class="input-group">
|
|
<span class="input-group-text"><i class="fa-solid fa-key"></i></span>
|
|
<input type="password" name="password" id="password" class="form-control" placeholder="Enter your password" required>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label for="pin" class="form-label">Security PIN</label>
|
|
<div class="input-group">
|
|
<span class="input-group-text"><i class="fa-solid fa-shield-halved"></i></span>
|
|
<input type="password" name="pin" id="pin" class="form-control" maxlength="6" placeholder="Enter 4-6 digit PIN" required>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal-footer d-flex gap-2 justify-content-center">
|
|
<button type="button" class="btn btn-modal-cancel" data-bs-dismiss="modal">Cancel</button>
|
|
<button type="submit" class="btn btn-modal-login"> Login </button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
function studentlogin() {
|
|
var myModal = new bootstrap.Modal(document.getElementById('studentLoginModal'));
|
|
myModal.show();
|
|
}
|
|
|
|
document.addEventListener('DOMContentLoaded', function () {
|
|
const animatedElements = document.querySelectorAll('.animate-item');
|
|
|
|
const observer = new IntersectionObserver((entries) => {
|
|
entries.forEach(entry => {
|
|
if (entry.isIntersecting) {
|
|
entry.target.classList.add('animated');
|
|
observer.unobserve(entry.target);
|
|
}
|
|
});
|
|
}, {
|
|
threshold: 0.10
|
|
});
|
|
|
|
animatedElements.forEach(el => observer.observe(el));
|
|
});
|
|
</script>
|
|
|
|
@endsection |