338 lines
10 KiB
PHP
338 lines
10 KiB
PHP
@extends('layouts.app')
|
|
|
|
@section('title', 'Student Portal')
|
|
|
|
@section('content')
|
|
|
|
<style>
|
|
:root{
|
|
--primary:#5E244E;
|
|
--secondary:#8B3A74;
|
|
--light:#f8f4f7;
|
|
}
|
|
|
|
.hero{
|
|
background:linear-gradient(rgba(0,0,0,.65),rgba(0,0,0,.65)),
|
|
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;
|
|
}
|
|
|
|
.portal-card{
|
|
border:none;
|
|
border-radius:15px;
|
|
transition:.3s;
|
|
box-shadow:0 5px 20px rgba(0,0,0,.08);
|
|
}
|
|
|
|
.portal-card:hover{
|
|
transform:translateY(-8px);
|
|
}
|
|
|
|
.portal-icon{
|
|
width:70px;
|
|
height:70px;
|
|
background:#5E244E;
|
|
color:#fff;
|
|
border-radius:50%;
|
|
display:flex;
|
|
align-items:center;
|
|
justify-content:center;
|
|
font-size:28px;
|
|
margin:auto;
|
|
}
|
|
|
|
.btn-portal{
|
|
background:#5E244E;
|
|
color:#fff;
|
|
padding:10px 30px;
|
|
border: none;
|
|
transition: 0.2s ease;
|
|
}
|
|
|
|
.btn-portal:hover{
|
|
background:#8B3A74;
|
|
color:#fff;
|
|
}
|
|
|
|
|
|
.modal-content {
|
|
border: none;
|
|
border-radius: 16px;
|
|
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.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(--secondary);
|
|
box-shadow: 0 0 0 4px rgba(139, 58, 116, 0.12);
|
|
outline: 0;
|
|
}
|
|
|
|
|
|
.input-group:focus-within .input-group-text {
|
|
border-color: var(--secondary);
|
|
color: var(--secondary);
|
|
}
|
|
|
|
.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%;
|
|
}
|
|
|
|
.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(94, 36, 78, 0.2);
|
|
transition: all 0.2s;
|
|
width: 100%;
|
|
}
|
|
|
|
.btn-modal-login:hover {
|
|
background: var(--secondary);
|
|
color: #fff;
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 6px 15px rgba(94, 36, 78, 0.3);
|
|
}
|
|
</style>
|
|
|
|
<section class="hero">
|
|
<div class="container">
|
|
<h1 class="fw-bold">Student Portal</h1>
|
|
<p class="mt-3">
|
|
Access your courses, timetable, assignments, examination results,
|
|
payments and profile from one place.
|
|
</p>
|
|
|
|
<button onclick="studentlogin()" class="btn btn-portal mt-3">
|
|
Student Login
|
|
</button>
|
|
</div>
|
|
</section>
|
|
|
|
<section class="py-5">
|
|
<div class="container">
|
|
<div class="text-center mb-5">
|
|
<h2>Student Services</h2>
|
|
<p class="text-muted">
|
|
Everything you need during your academic journey.
|
|
</p>
|
|
</div>
|
|
|
|
<div class="row g-4">
|
|
<div class="col-md-4">
|
|
<div class="card portal-card h-100 text-center p-4">
|
|
<div class="portal-icon">
|
|
<i class="fa-solid fa-book"></i>
|
|
</div>
|
|
<h4 class="mt-4">My Courses</h4>
|
|
<p class="text-muted">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">
|
|
<div class="portal-icon">
|
|
<i class="fa-solid fa-calendar-days"></i>
|
|
</div>
|
|
<h4 class="mt-4">Class Timetable</h4>
|
|
<p class="text-muted">Check your weekly lecture schedule.</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-4">
|
|
<div class="card portal-card h-100 text-center p-4">
|
|
<div class="portal-icon">
|
|
<i class="fa-solid fa-file-lines"></i>
|
|
</div>
|
|
<h4 class="mt-4">Assignments</h4>
|
|
<p class="text-muted">Submit assignments and download resources.</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-4">
|
|
<div class="card portal-card h-100 text-center p-4">
|
|
<div class="portal-icon">
|
|
<i class="fa-solid fa-square-poll-vertical"></i>
|
|
</div>
|
|
<h4 class="mt-4">Exam Results</h4>
|
|
<p class="text-muted">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">
|
|
<div class="portal-icon">
|
|
<i class="fa-solid fa-credit-card"></i>
|
|
</div>
|
|
<h4 class="mt-4">Fee Payments</h4>
|
|
<p class="text-muted">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">
|
|
<div class="portal-icon">
|
|
<i class="fa-solid fa-user"></i>
|
|
</div>
|
|
<h4 class="mt-4">Student Profile</h4>
|
|
<p class="text-muted">Update your personal information securely.</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<section class="py-5 bg-light">
|
|
<div class="container">
|
|
<div class="text-center mb-5">
|
|
<h2>Quick Links</h2>
|
|
</div>
|
|
|
|
<div class="row text-center">
|
|
<div class="col-md-3 mb-3">
|
|
<a href="#" class="btn btn-outline-dark w-100">Academic Calendar</a>
|
|
</div>
|
|
<div class="col-md-3 mb-3">
|
|
<a href="#" class="btn btn-outline-dark w-100">Student Handbook</a>
|
|
</div>
|
|
<div class="col-md-3 mb-3">
|
|
<a href="#" class="btn btn-outline-dark w-100">Examination Notices</a>
|
|
</div>
|
|
<div class="col-md-3 mb-3">
|
|
<a href="#" class="btn btn-outline-dark w-100">Contact Support</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<section class="py-5">
|
|
<div class="container text-center">
|
|
<h2>Ready to Access Your Student Account?</h2>
|
|
<p class="text-muted">Log in to manage your academic activities and stay updated.</p>
|
|
<button onclick="studentlogin()" class="btn btn-portal mt-3">
|
|
Student Login
|
|
</button>
|
|
</div>
|
|
</section>
|
|
|
|
<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="#" method="POST" id="studentLoginForm"> -->
|
|
<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();
|
|
}
|
|
</script>
|
|
|
|
@endsection |