367 lines
14 KiB
PHP
367 lines
14 KiB
PHP
@extends('layouts.studentportalnav')
|
|
|
|
@section('title', 'My Course')
|
|
|
|
@section('content')
|
|
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
|
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap" rel="stylesheet">
|
|
|
|
<style>
|
|
:root {
|
|
--purple-main: #5E244E;
|
|
--purple-dark: #4a1c3e;
|
|
--purple-light: #744a68;
|
|
--gold-accent: #D4AF37;
|
|
--gold-hover: #b8972e;
|
|
--bg-light: #f8fafc;
|
|
--white: #ffffff;
|
|
}
|
|
|
|
body {
|
|
background: var(--bg-light);
|
|
font-family: 'Poppins', sans-serif;
|
|
}
|
|
|
|
.main-portal-content {
|
|
padding: 20px 15px;
|
|
min-height: 100vh;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
/* Premium Hero Section */
|
|
.hero {
|
|
background: linear-gradient(135deg, var(--purple-main) 0%, var(--purple-dark) 100%) !important;
|
|
color: var(--white) !important;
|
|
border-radius: 20px;
|
|
padding: 30px 20px;
|
|
margin-bottom: 30px;
|
|
box-shadow: 0 10px 30px rgba(74, 28, 62, 0.15);
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.hero::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: -30%;
|
|
right: -10%;
|
|
width: 350px;
|
|
height: 350px;
|
|
background: rgba(255, 255, 255, 0.04);
|
|
border-radius: 50%;
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* Course Card */
|
|
.course-card {
|
|
border: none !important;
|
|
border-radius: 20px !important;
|
|
overflow: hidden;
|
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
|
|
background: var(--white);
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.course-card img {
|
|
height: 200px;
|
|
object-fit: cover;
|
|
width: 100%;
|
|
}
|
|
|
|
/* Sidebar Info Boxes */
|
|
.info-box {
|
|
border-radius: 16px !important;
|
|
padding: 20px 24px;
|
|
background: var(--white);
|
|
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
|
|
border: 1px solid rgba(94, 36, 78, 0.05) !important;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.info-box:hover {
|
|
transform: translateY(-3px);
|
|
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06) !important;
|
|
}
|
|
|
|
.stat-icon {
|
|
width: 48px;
|
|
height: 48px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 12px;
|
|
font-size: 18px;
|
|
background: rgba(94, 36, 78, 0.08);
|
|
color: var(--purple-main);
|
|
}
|
|
|
|
/* Modules Card */
|
|
.module-card {
|
|
border: 1px solid rgba(94, 36, 78, 0.06) !important;
|
|
border-radius: 16px !important;
|
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
background: var(--white);
|
|
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
|
|
}
|
|
|
|
.module-card:hover {
|
|
transform: translateY(-5px);
|
|
box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08) !important;
|
|
border-color: var(--purple-light) !important;
|
|
}
|
|
|
|
/* Progress bar customizations */
|
|
.progress {
|
|
height: 10px !important;
|
|
border-radius: 50px !important;
|
|
background-color: #f1f5f9 !important;
|
|
}
|
|
|
|
.progress-bar {
|
|
border-radius: 50px !important;
|
|
background: linear-gradient(90deg, var(--gold-accent), #f4d05e) !important;
|
|
}
|
|
|
|
/* Status Badges */
|
|
.status {
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
padding: 5px 14px;
|
|
border-radius: 50px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.completed { background: rgba(94, 36, 78, 0.1); color: var(--purple-main); }
|
|
.progressing { background: rgba(212, 175, 55, 0.15); color: #9c7e1c; }
|
|
.locked { background: #f1f5f9; color: #64748b; }
|
|
|
|
/* Custom Buttons */
|
|
.btn-gold {
|
|
background-color: var(--gold-accent) !important;
|
|
border-color: var(--gold-accent) !important;
|
|
color: #fff !important;
|
|
border-radius: 10px;
|
|
font-weight: 600;
|
|
}
|
|
.btn-gold:hover { background-color: var(--gold-hover) !important; }
|
|
|
|
.btn-purple {
|
|
background-color: var(--purple-main) !important;
|
|
border-color: var(--purple-main) !important;
|
|
color: #fff !important;
|
|
border-radius: 10px;
|
|
font-weight: 500;
|
|
}
|
|
.btn-purple:hover { background-color: var(--purple-dark) !important; }
|
|
|
|
.btn-continue {
|
|
background-color: #fff !important;
|
|
color: var(--purple-main) !important;
|
|
border-radius: 10px;
|
|
}
|
|
.btn-continue:hover { background-color: #f1f5f9 !important; }
|
|
|
|
/* Responsive Media Queries */
|
|
@media (min-width: 768px) {
|
|
.main-portal-content {
|
|
padding: 34px;
|
|
}
|
|
.hero {
|
|
padding: 45px;
|
|
}
|
|
.course-card img {
|
|
height: 280px;
|
|
}
|
|
}
|
|
|
|
@media (min-width: 992px) {
|
|
.main-portal-content {
|
|
margin-left: 18px;
|
|
}
|
|
}
|
|
</style>
|
|
|
|
<div class="main-portal-content">
|
|
<div class="container-fluid">
|
|
|
|
<!-- Hero Section -->
|
|
<div class="hero">
|
|
<div class="row align-items-center">
|
|
<div class="col-lg-9 col-md-8 text-start">
|
|
<h1 class="fw-bold display-6 mb-2">Diploma in Automotive Engineering</h1>
|
|
<p class="lead mb-4 small opacity-75">Welcome back! Continue your learning journey and complete all modules.</p>
|
|
<a href="#" class="btn btn-continue px-4 py-2 fw-semibold shadow-sm">
|
|
<i class="fa fa-play me-2"></i> Continue Learning
|
|
</a>
|
|
</div>
|
|
<div class="col-lg-3 col-md-4 text-center d-none d-md-block">
|
|
<i class="fa-solid fa-car-side" style="font-size:100px; opacity:.2; color: var(--gold-accent);"></i>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Main Content Grid -->
|
|
<div class="row g-4">
|
|
|
|
<!-- LEFT COLUMN: Course details & Modules -->
|
|
<div class="col-lg-8 col-12">
|
|
|
|
<!-- Main Course Card -->
|
|
<div class="card course-card">
|
|
<img src="https://images.unsplash.com/photo-1486262715619-67b85e0b08d3?auto=format&fit=crop&w=1200&q=80" alt="Course Image">
|
|
<div class="card-body p-4">
|
|
<div class="d-flex flex-wrap justify-content-between align-items-start gap-2 mb-3">
|
|
<div>
|
|
<h3 class="fw-bold text-dark mb-1">AE101</h3>
|
|
<p class="text-muted small mb-0">
|
|
<i class="fa-solid fa-building me-1" style="color: var(--purple-light);"></i> Automotive Engineering Department
|
|
</p>
|
|
</div>
|
|
<span class="badge bg-dark px-3 py-2 rounded-pill">Diploma</span>
|
|
</div>
|
|
|
|
<p class="text-secondary small lh-base">
|
|
Master engine diagnostics, suspension systems, transmission technology, electrical systems and hybrid vehicle maintenance.
|
|
</p>
|
|
|
|
<div class="mt-4">
|
|
<div class="d-flex justify-content-between mb-2 small">
|
|
<span class="text-dark fw-semibold">Overall Progress</span>
|
|
<span class="fw-bold" style="color: var(--purple-main);">55%</span>
|
|
</div>
|
|
<div class="progress">
|
|
<div class="progress-bar" style="width:55%"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Modules Header -->
|
|
<div class="my-4">
|
|
<h4 class="fw-bold text-dark">
|
|
<i class="fa-solid fa-list-check me-2" style="color: var(--gold-accent);"></i> Course Modules
|
|
</h4>
|
|
</div>
|
|
|
|
<!-- Modules Sub-Grid -->
|
|
<div class="row g-4">
|
|
<!-- Module 1 -->
|
|
<div class="col-md-6 col-12">
|
|
<div class="card module-card h-100">
|
|
<div class="card-body p-4 d-flex flex-column justify-content-between">
|
|
<div>
|
|
<div class="d-flex justify-content-between align-items-start gap-2 mb-2">
|
|
<h6 class="fw-bold text-dark mb-0">Engine Fundamentals</h6>
|
|
<span class="status completed">Completed</span>
|
|
</div>
|
|
<p class="text-muted small">Learn engine parts and working principles.</p>
|
|
</div>
|
|
<div class="mt-3">
|
|
<button class="btn btn-purple w-100 btn-sm py-2">Review Module</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Module 2 -->
|
|
<div class="col-md-6 col-12">
|
|
<div class="card module-card h-100">
|
|
<div class="card-body p-4 d-flex flex-column justify-content-between">
|
|
<div>
|
|
<div class="d-flex justify-content-between align-items-start gap-2 mb-2">
|
|
<h6 class="fw-bold text-dark mb-0">Transmission Systems</h6>
|
|
<span class="status progressing">In Progress</span>
|
|
</div>
|
|
<p class="text-muted small">Manual & Automatic transmission systems.</p>
|
|
</div>
|
|
<div class="mt-3">
|
|
<button class="btn btn-gold w-100 btn-sm py-2">Continue Learning</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Module 3 -->
|
|
<div class="col-md-6 col-12">
|
|
<div class="card module-card h-100">
|
|
<div class="card-body p-4 d-flex flex-column justify-content-between">
|
|
<div>
|
|
<div class="d-flex justify-content-between align-items-start gap-2 mb-2">
|
|
<h6 class="fw-bold text-secondary mb-0">Brake Systems</h6>
|
|
<span class="status locked"><i class="fa fa-lock me-1"></i> Locked</span>
|
|
</div>
|
|
<p class="text-muted small">Complete previous module to unlock.</p>
|
|
</div>
|
|
<div class="mt-3">
|
|
<button class="btn btn-secondary w-100 btn-sm py-2" disabled>Locked</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Module 4 -->
|
|
<div class="col-md-6 col-12">
|
|
<div class="card module-card h-100">
|
|
<div class="card-body p-4 d-flex flex-column justify-content-between">
|
|
<div>
|
|
<div class="d-flex justify-content-between align-items-start gap-2 mb-2">
|
|
<h6 class="fw-bold text-secondary mb-0">Hybrid Technology</h6>
|
|
<span class="status locked"><i class="fa fa-lock me-1"></i> Locked</span>
|
|
</div>
|
|
<p class="text-muted small">Learn EV and Hybrid systems.</p>
|
|
</div>
|
|
<div class="mt-3">
|
|
<button class="btn btn-secondary w-100 btn-sm py-2" disabled>Locked</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- RIGHT COLUMN: Sidebar Statistics -->
|
|
<div class="col-lg-4 col-12">
|
|
<div class="row g-3">
|
|
<div class="col-12">
|
|
<div class="info-box d-flex align-items-center">
|
|
<div class="stat-icon"><i class="fa fa-book"></i></div>
|
|
<div class="ms-3">
|
|
<h5 class="fw-bold mb-0" style="color: var(--purple-dark);">12</h5>
|
|
<span class="text-muted small">Modules Available</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-12">
|
|
<div class="info-box d-flex align-items-center">
|
|
<div class="stat-icon"><i class="fa fa-clock"></i></div>
|
|
<div class="ms-3">
|
|
<h5 class="fw-bold mb-0" style="color: var(--purple-dark);">2 Years</h5>
|
|
<span class="text-muted small">Course Duration</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-12">
|
|
<div class="info-box d-flex align-items-center">
|
|
<div class="stat-icon"><i class="fa fa-award"></i></div>
|
|
<div class="ms-3">
|
|
<h5 class="fw-bold mb-0" style="color: var(--purple-dark);">NVQ Level 5</h5>
|
|
<span class="text-muted small">Qualification</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div> <!-- End Row -->
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
|
|
@endsection |