538 lines
15 KiB
PHP
538 lines
15 KiB
PHP
@extends('layouts.app')
|
|
|
|
@section('title', 'Our Courses')
|
|
|
|
@section('content')
|
|
|
|
<style>
|
|
:root {
|
|
/* Premium Modern Automotive Palette */
|
|
--primary: #3E51B8;
|
|
--primary-light: #0a67df;
|
|
--secondary: #BC1A1A;
|
|
--secondary-hover: #822424;
|
|
--accent-dark: #753939;
|
|
--accent-light: rgba(227, 100, 20, 0.1);
|
|
--accent-orange: #e36414;
|
|
--accent-yellow: #FFE618;
|
|
--bg-light: #F8FAFC;
|
|
|
|
--text-main: #1E293B;
|
|
--text-muted: #64748B;
|
|
--card-border: rgba(62, 81, 184, 0.1);
|
|
--shadow-color: rgba(15, 44, 89, 0.05);
|
|
--success-green: #10B981;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Segoe UI', Arial, sans-serif;
|
|
color: var(--text-main);
|
|
background-color: #ffffff;
|
|
}
|
|
|
|
/* ===== Hero Section ===== */
|
|
.hero {
|
|
background-image: linear-gradient(rgba(207, 220, 238, 0.9), rgba(35, 29, 29, 0.85)), url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=1600&q=80');
|
|
background-size: cover;
|
|
background-position: center;
|
|
background-repeat: no-repeat;
|
|
color: #ffffff;
|
|
padding: 130px 0;
|
|
text-align: center;
|
|
}
|
|
|
|
.hero h1 {
|
|
font-size: 55px;
|
|
font-weight: 800;
|
|
text-shadow: 0 2px 15px rgba(0,0,0,0.4);
|
|
}
|
|
|
|
.hero p {
|
|
max-width: 700px;
|
|
margin: auto;
|
|
font-size: 19px;
|
|
color: #F1F5F9;
|
|
}
|
|
|
|
/* --- Premium Search Box Styling --- */
|
|
.search-box {
|
|
max-width: 550px;
|
|
margin: 35px auto 0 auto;
|
|
position: relative;
|
|
display: flex;
|
|
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
|
|
overflow: hidden;
|
|
background: #fff;
|
|
border-radius: 100px;
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
.search-box input {
|
|
width: 100%;
|
|
padding: 16px 28px;
|
|
border: none;
|
|
outline: none;
|
|
font-size: 16px;
|
|
color: #333;
|
|
}
|
|
|
|
.search-box button {
|
|
background: linear-gradient(135deg, #13141A 0%, #8ca8e9 100%);
|
|
color: #fff;
|
|
border: none;
|
|
padding: 0 30px;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.search-box button:hover {
|
|
background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-hover) 100%);
|
|
}
|
|
|
|
/* ===== HORIZONTAL COURSE CARDS ===== */
|
|
.course-card {
|
|
overflow: hidden;
|
|
background: #fff;
|
|
transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
|
|
}
|
|
|
|
.course-card:hover {
|
|
transform: translateY(-6px);
|
|
}
|
|
|
|
.course-image-wrapper {
|
|
padding: 20px;
|
|
height: 100%;
|
|
}
|
|
|
|
.course-card img {
|
|
height: 220px;
|
|
width: 100%;
|
|
object-fit: cover;
|
|
transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
|
|
}
|
|
|
|
.course-card:hover img {
|
|
transform: scale(1.04);
|
|
}
|
|
|
|
.course-card .card-body {
|
|
padding: 32px 32px 32px 10px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
@media (max-width: 767px) {
|
|
.course-card .card-body {
|
|
padding: 0 24px 24px 24px;
|
|
}
|
|
}
|
|
|
|
.course-title {
|
|
font-size: 23px;
|
|
font-weight: 750;
|
|
line-height: 1.3;
|
|
color:#2B2B2B;
|
|
margin-bottom: 8px;
|
|
transition: color 0.3s ease;
|
|
}
|
|
|
|
.course-card:hover .course-title {
|
|
color: var(--secondary);
|
|
}
|
|
|
|
.course-author {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: #910909;
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
.course-short-desc {
|
|
font-size: 14.5px;
|
|
color: #556575;
|
|
margin-bottom: 20px;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.course-meta-row {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 12px;
|
|
margin-bottom: 18px;
|
|
}
|
|
|
|
.badge-bestseller {
|
|
background: linear-gradient(135deg, var(--secondary) 0%, var(--accent-orange) 100%);
|
|
color: #fff;
|
|
font-weight: 700;
|
|
font-size: 10.5px;
|
|
padding: 4px 12px;
|
|
border-radius: 30px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
box-shadow: 0 4px 10px rgba(188, 26, 26, 0.2);
|
|
}
|
|
|
|
.rating-star {
|
|
color: #f39c12;
|
|
font-weight: 700;
|
|
font-size: 14px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.rating-count {
|
|
color: var(--text-muted);
|
|
font-size: 13.5px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.course-features {
|
|
display: flex;
|
|
gap: 20px;
|
|
font-size: 13.5px;
|
|
color: var(--success-green);
|
|
margin-bottom: 24px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.course-features span i {
|
|
margin-right: 6px;
|
|
}
|
|
|
|
.course-footer {
|
|
margin-top: auto;
|
|
}
|
|
|
|
.read-btn {
|
|
background: #822424;
|
|
color: #fff;
|
|
padding: 13px 28px;
|
|
font-weight: 600;
|
|
font-size: 15px;
|
|
transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
border: 2px solid transparent;
|
|
text-decoration: none;
|
|
display: block;
|
|
text-align: center;
|
|
box-shadow: 0 4px 12px rgba(10, 103, 223, 0.2);
|
|
}
|
|
|
|
.read-btn:hover {
|
|
background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-hover) 100%);
|
|
color: #fff;
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 6px 18px rgba(188, 26, 26, 0.3);
|
|
}
|
|
|
|
/* --- Features Section --- */
|
|
.features-section {
|
|
background-color: var(--bg-light);
|
|
padding: 80px 40px;
|
|
margin-bottom: 40px;
|
|
background-image: radial-gradient(rgba(62, 81, 184, 0.04) 1px, transparent 0);
|
|
background-size: 20px 20px;
|
|
}
|
|
|
|
.features-section h2 {
|
|
font-size: 45px;
|
|
font-weight: 800;
|
|
color: #ffffff;
|
|
margin-bottom: 54px;
|
|
}
|
|
|
|
.feature-box {
|
|
background: #fff;
|
|
padding: 40px 28px;
|
|
border-radius: 24px;
|
|
height: 100%;
|
|
transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
|
|
border: 1px solid var(--card-border);
|
|
text-align: center;
|
|
box-shadow: 0 6px 20px rgba(62, 81, 184, 0.02);
|
|
}
|
|
|
|
.feature-icon-wrapper {
|
|
width: 58px;
|
|
height: 58px;
|
|
background-color: rgba(62, 81, 184, 0.08);
|
|
color: var(--primary);
|
|
border-radius: 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 24px;
|
|
margin-bottom: 24px;
|
|
transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
|
margin-left: 38%;
|
|
}
|
|
|
|
.feature-box:hover {
|
|
transform: translateY(-8px);
|
|
box-shadow: 0 15px 35px rgba(62, 81, 184, 0.12);
|
|
border-color: rgba(188, 26, 26, 0.2);
|
|
color:#6a2525 ;
|
|
}
|
|
|
|
.feature-box:hover .feature-icon-wrapper {
|
|
background: linear-gradient(135deg, var(--secondary) 0%, var(--accent-orange) 100%);
|
|
color: #fff;
|
|
transform: rotateY(180deg);
|
|
box-shadow: 0 8px 15px rgba(188, 26, 26, 0.25);
|
|
}
|
|
|
|
.feature-icon-wrapper i {
|
|
transition: transform 0.4s ease;
|
|
}
|
|
|
|
.feature-box:hover .feature-icon-wrapper i {
|
|
transform: rotateY(-180deg);
|
|
}
|
|
|
|
.feature-box h5 {
|
|
font-size: 19px;
|
|
font-weight: 700;
|
|
color: #181818;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.feature-box h5:hover {
|
|
color: #822424 ;
|
|
}
|
|
|
|
.feature-box p {
|
|
font-size: 14.5px;
|
|
color: var(--text-muted);
|
|
margin-bottom: 0;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
#noResults {
|
|
font-size: 18px;
|
|
font-weight: bold;
|
|
color: var(--text-muted);
|
|
margin-top: 30px;
|
|
}
|
|
|
|
/* Animations */
|
|
.animate-on-scroll {
|
|
opacity: 0;
|
|
transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
|
|
}
|
|
|
|
.fade-up-init {
|
|
transform: translateY(40px);
|
|
}
|
|
|
|
.animate-on-scroll.animated {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
</style>
|
|
|
|
{{-- Hero --}}
|
|
<section class="hero">
|
|
<div class="container">
|
|
<div class="animate-on-scroll animated fade-up-init">
|
|
<h1>Our Courses</h1>
|
|
<p>
|
|
Build your future in the automotive industry through practical
|
|
training and internationally recognized learning experiences.
|
|
</p>
|
|
<div class="search-box">
|
|
<input
|
|
type="text"
|
|
id="courseSearch"
|
|
placeholder="Search Courses by title, level or description..."
|
|
>
|
|
<button type="button">
|
|
<i class="fas fa-search"></i>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<section class="py-5">
|
|
<div class="container">
|
|
|
|
<div id="noResults" class="text-center d-none">
|
|
<p>No courses found matching your search.</p>
|
|
</div>
|
|
|
|
<div class="row g-4" id="courseContainer">
|
|
@forelse($courses as $index => $course)
|
|
<div class="col-12 course-item animate-on-scroll fade-up-init" style="transition-delay: {{ $index * 100 }}ms;">
|
|
<div class="card course-card h-100">
|
|
<div class="row g-0 align-items-center">
|
|
|
|
{{-- Course Image --}}
|
|
<div class="col-md-4">
|
|
<div class="course-image-wrapper">
|
|
<img src="{{ $course->image }}" alt="{{ $course->title }}">
|
|
</div>
|
|
</div>
|
|
|
|
{{-- Course Details --}}
|
|
<div class="col-md-8">
|
|
<div class="card-body">
|
|
<h4 class="course-title">{{ $course->title }}</h4>
|
|
|
|
@if($course->author)
|
|
<div class="course-author">
|
|
<i class="fa-solid fa-user-gear me-1"></i> {{ $course->author }}
|
|
</div>
|
|
@endif
|
|
|
|
<p class="course-short-desc">{{ $course->desc }}</p>
|
|
|
|
<div class="course-meta-row">
|
|
@if($course->badge)
|
|
<span class="badge-bestseller">{{ $course->badge }}</span>
|
|
@endif
|
|
|
|
@if($course->rating)
|
|
<span class="rating-star">
|
|
<i class="fas fa-star"></i> {{ $course->rating }}
|
|
</span>
|
|
@endif
|
|
|
|
@if($course->student)
|
|
<span class="rating-count">({{ $course->student }} students enrolled)</span>
|
|
@endif
|
|
</div>
|
|
|
|
<div class="course-features">
|
|
<span><i class="fas fa-tools"></i> Level: {{ $course->level ?? 'General' }}</span>
|
|
@if($course->duration)
|
|
<span><i class="fas fa-certificate"></i> Duration: {{ $course->duration }}</span>
|
|
@endif
|
|
</div>
|
|
|
|
<div class="course-footer" style="max-width: 200px;">
|
|
<a href="/apply" class="read-btn">Apply Course</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@empty
|
|
<div class="col-12 text-center py-5">
|
|
<h4>No courses available at the moment.</h4>
|
|
</div>
|
|
@endforelse
|
|
</div>
|
|
|
|
</div>
|
|
</section>
|
|
|
|
{{-- Why Study With Us Section --}}
|
|
<section class="pb-5 why-study-section">
|
|
<div class="container">
|
|
<div class="features-section text-center animate-on-scroll fade-up-init"
|
|
style="background-image: linear-gradient(rgba(77, 103, 169, 0.61), rgba(0, 0, 0, 0.9)), url('https://images.pexels.com/photos/4489749/pexels-photo-4489749.jpeg?auto=compress&cs=tinysrgb&w=1600');
|
|
background-size: cover;
|
|
background-position: center;
|
|
background-repeat: no-repeat;">
|
|
<h2>Why Study With Us?</h2>
|
|
|
|
<div class="row g-4">
|
|
<div class="col-xl-3 col-md-6">
|
|
<div class="feature-box">
|
|
<div class="feature-icon-wrapper">
|
|
<i class="fas fa-chalkboard-teacher"></i>
|
|
</div>
|
|
<h5>Experienced Lecturers</h5>
|
|
<p>Learn from certified automotive industry experts and senior engineers.</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-xl-3 col-md-6">
|
|
<div class="feature-box">
|
|
<div class="feature-icon-wrapper">
|
|
<i class="fas fa-cogs"></i>
|
|
</div>
|
|
<h5>Modern Workshops</h5>
|
|
<p>Get hands-on experience with latest diagnostic tools and hybrid lab setups.</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-xl-3 col-md-6">
|
|
<div class="feature-box">
|
|
<div class="feature-icon-wrapper">
|
|
<i class="fas fa-award"></i>
|
|
</div>
|
|
<h5>Industry Certification</h5>
|
|
<p>Earn internationally recognized qualifications to boost your career global scale.</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-xl-3 col-md-6">
|
|
<div class="feature-box">
|
|
<div class="feature-icon-wrapper">
|
|
<i class="fas fa-briefcase"></i>
|
|
</div>
|
|
<h5>Career Guidance</h5>
|
|
<p>Free job placement support, resume building, and interview preparation workshops.</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<script>
|
|
document.addEventListener('DOMContentLoaded', function () {
|
|
// === 1. Course Search Feature ===
|
|
document.getElementById('courseSearch').addEventListener('keyup', function() {
|
|
let filter = this.value.toLowerCase();
|
|
let courseItems = document.querySelectorAll('.course-item');
|
|
let hasResults = false;
|
|
|
|
courseItems.forEach(function(item) {
|
|
let title = item.querySelector('.course-title') ? item.querySelector('.course-title').textContent.toLowerCase() : '';
|
|
let desc = item.querySelector('.course-short-desc') ? item.querySelector('.course-short-desc').textContent.toLowerCase() : '';
|
|
|
|
if (title.includes(filter) || desc.includes(filter)) {
|
|
item.style.setProperty('display', '', 'important');
|
|
hasResults = true;
|
|
item.classList.add('animated');
|
|
} else {
|
|
item.style.setProperty('display', 'none', 'important');
|
|
}
|
|
});
|
|
|
|
let noResultsMsg = document.getElementById('noResults');
|
|
if (hasResults) {
|
|
noResultsMsg.classList.add('d-none');
|
|
} else {
|
|
noResultsMsg.classList.remove('d-none');
|
|
}
|
|
});
|
|
|
|
// === 2. Pure Intersection Observer Scroll Animation ===
|
|
const animatedElements = document.querySelectorAll('.animate-on-scroll');
|
|
|
|
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 |