academy/resources/views/courses.blade.php

540 lines
15 KiB
PHP

@extends('layouts.app')
@section('title','Our Courses')
@section('content')
<style>
:root{
--primary:#5E244E;
--secondary:#8B3A74;
--light:#f8f4f7;
--card-border: #efeff4;
--text-muted: #6a6f73;
--success-green: #1f8a4c;
}
body {
font-family: Arial, Helvetica, sans-serif;
}
.hero {
background-image: linear-gradient(rgba(109, 105, 105, 0.65), rgb(64, 59, 66)),
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: 120px 0;
text-align: center;
}
.hero h1{
font-size:50px;
font-weight:700;
}
.hero p{
max-width:700px;
margin:auto;
font-size:18px;
}
/* --- Search Box Styling --- */
.search-box {
max-width: 500px;
margin: 30px auto 0 auto;
position: relative;
display: flex;
box-shadow: 0 8px 25px rgba(0,0,0,0.1);
overflow: hidden;
background: #fff;
border-radius: 100px;
}
.search-box input {
width: 100%;
padding: 15px 25px;
border: none;
outline: none;
font-size: 16px;
color: #333;
}
.search-box button {
background: var(--primary);
color: #fff;
border: none;
padding: 0 25px;
cursor: pointer;
transition: 0.3s;
font-size: 18px;
}
.search-box button:hover {
background: var(--secondary);
}
.course-card {
border: 1px solid var(--card-border);
border-radius: 20px;
overflow: hidden;
background: #fff;
transition: transform 0.3s ease, box-shadow 0.3s ease;
box-shadow: none;
scale: .99;
}
.course-card:hover {
transform: translateY(-5px);
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}
.course-image-wrapper {
padding: 16px;
}
.course-card img {
height: 200px;
width: 100%;
object-fit: cover;
/* border-radius: 14px; */
}
.course-card .card-body {
padding: 24px;
display: flex;
flex-direction: column;
}
.course-title {
font-size: 21px;
font-weight: 700;
line-height: 1.3;
color: #1c1d1f;
margin-bottom: 8px;
}
.course-author {
font-size: 14px;
color: var(--text-muted);
margin-bottom: 12px;
}
.course-short-desc {
font-size: 14px;
color: #4f5357;
margin-bottom: 16px;
line-height: 1.5;
}
.course-meta-row {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 14px;
}
.badge-bestseller {
background-color: #ece3f1;
color: var(--primary);
font-weight: 700;
font-size: 11px;
padding: 3px 10px;
border-radius: 4px;
text-transform: uppercase;
}
.rating-star {
color: #b4690e;
font-weight: 700;
font-size: 14px;
display: flex;
align-items: center;
gap: 4px;
}
.rating-count {
color: var(--text-muted);
font-size: 13px;
}
.course-features {
display: flex;
gap: 15px;
font-size: 13px;
color: var(--success-green);
margin-bottom: 20px;
font-weight: 500;
}
.course-features span i {
margin-right: 4px;
}
.course-footer {
margin-top: auto;
}
.read-btn {
background: var(--primary);
color: #fff;
padding: 12px 20px;
font-weight: 600;
border-radius: 8px;
font-size: 15px;
transition: 0.2s;
border: none;
text-decoration: none;
display: block;
text-align: center;
}
.read-btn:hover {
background: var(--secondary);
color: #fff;
}
/* --- Modernized Why Study With Us Section --- */
.features-section {
background-color: #f8f9fa;
border-radius: 24px;
padding: 60px 40px;
margin-bottom: 60px;
}
.features-section h2 {
font-size: 32px;
font-weight: 700;
color: #1c1d1f;
margin-bottom: 40px;
}
.feature-box {
background: #fff;
padding: 30px 24px;
border-radius: 16px;
height: 100%;
transition: all 0.3s ease;
border: 1px solid #efeff4;
text-align: left;
}
.feature-icon-wrapper {
width: 50px;
height: 50px;
background-color: #ece3f1;
color: var(--primary);
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
font-size: 22px;
margin-bottom: 20px;
transition: transform 0.5s ease;
}
.feature-box:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
border-color: var(--primary);
}
.feature-box:hover .feature-icon-wrapper i {
transform: rotate(360deg);
}
.feature-icon-wrapper i {
transition: transform 0.5s ease;
}
.feature-box h5 {
font-size: 18px;
font-weight: 700;
color: #1c1d1f;
margin-bottom: 10px;
}
.feature-box p {
font-size: 14px;
color: var(--text-muted);
margin-bottom: 0;
line-height: 1.5;
}
#noResults {
font-size: 18px;
font-weight: bold;
color: #666;
margin-top: 20px;
}
/* ========================================================
Custom Pure CSS Animations (Scroll Animations)
======================================================== */
/* .animate-on-scroll {
opacity: 0;
transition: all 0.8s ease-out;
}
.fade-up-init {
transform: translateY(30px);
}
.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>
@php
$courses=[
[
'image'=>'https://images.unsplash.com/photo-1486262715619-67b85e0b08d3?auto=format&fit=crop&w=900&q=80',
'title'=>'Diploma in Automotive Engineering',
'duration'=>'2 Years',
'level'=>'Diploma',
'author'=>'Automotive Engineering Dept.',
'desc'=>'Master engine diagnostics, modern hybrid vehicle maintenance, and advanced automotive electrical systems with hands-on labs.',
'students'=>'1,240 students enrolled',
'rating'=>'4.9',
'badge'=>'Popular'
],
[
'image'=>'https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=900&q=80',
'title'=>'Mechanical Systems Technology',
'duration'=>'18 Months',
'level'=>'Certificate',
'author'=>'Tech & Service Campus',
'desc'=>'Comprehensive training on vehicle suspension, transmissions, steering, braking mechanisms, and professional repair workshop skills.',
'students'=>'850 students enrolled',
'rating'=>'4.7',
'badge'=>'Bestseller'
],
[
'image'=>'https://images.unsplash.com/photo-1502877338535-766e1452684a?auto=format&fit=crop&w=900&q=80',
'title'=>'Electric Vehicle Technology',
'duration'=>'1 Year',
'level'=>'Advanced',
'author'=>'EV Research Institute',
'desc'=>'Dive into the future of mobility. Learn about smart EV battery packs, fast charging infrastructures, and high-voltage safety.',
'students'=>'640 students enrolled',
'rating'=>'4.8',
'badge'=>'New'
],
[
'image'=>'https://images.unsplash.com/photo-1616788494707-ec28f08d05a1?auto=format&fit=crop&w=900&q=80',
'title'=>'Advanced EFI Engine Tuning & Diagnostic',
'duration'=>'6 Months',
'level'=>'Expert',
'author'=>'Performance Tuning Lab',
'desc'=>'Learn professional ECU remapping, electronic fuel injection (EFI) tuning, sensor calibration, and master high-end oscilloscope diagnostics.',
'students'=>'420 students enrolled',
'rating'=>'4.9',
'badge'=>'Hot & New'
],
[
'image'=>'https://images.unsplash.com/photo-1568605117036-5fe5e7bab0b7?auto=format&fit=crop&w=900&q=80',
'title'=>'Hybrid & Plug-in Hybrid Masterclass',
'duration'=>'8 Months',
'level'=>'Professional',
'author'=>'Automotive Engineering Dept.',
'desc'=>'Specialized training in Toyota/Honda Hybrid Synergy Drive systems, inverter repairs, planetary gearboxes, and live diagnostic scanner masterclass.',
'students'=>'980 students enrolled',
'rating'=>'4.8',
'badge'=>'Top Rated'
],
[
'image'=>'https://images.unsplash.com/photo-1517524008697-84bbe3c3fd98?auto=format&fit=crop&w=900&q=80',
'title'=>'Automotive Body Electronics & Comfort Systems',
'duration'=>'1 Year',
'level'=>'Diploma',
'author'=>'Tech & Service Campus',
'desc'=>'Covering modern CAN-bus/LIN-bus communication networks, SRS airbag systems, ABS/ESP braking electronics, and smart climate control.',
'students'=>'510 students enrolled',
'rating'=>'4.6',
'badge'=>'Trending'
],
];
@endphp
<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">
@foreach($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">
<div class="col-md-4">
<div class="course-image-wrapper">
<img src="{{ $course['image'] }}" alt="{{ $course['title'] }}">
</div>
</div>
<div class="col-md-8">
<div class="card-body">
<h4 class="course-title">{{ $course['title'] }}</h4>
<div class="course-author">{{ $course['author'] }}</div>
<p class="course-short-desc">{{ $course['desc'] }}</p>
<div class="course-meta-row">
<span class="badge-bestseller">{{ $course['badge'] }}</span>
<span class="rating-star">
<i class="fas fa-star"></i> {{ $course['rating'] }}
</span>
<span class="rating-count">({{ $course['students'] }})</span>
</div>
<div class="course-features">
<span><i class="fas fa-tools"></i> Practical Labs</span>
<span><i class="fas fa-certificate"></i> Verified ({{ $course['duration'] }})</span>
</div>
<div class="course-footer" style="max-width: 200px;">
<a href="/apply" class="read-btn">Apply Course</a>
</div>
</div>
</div>
</div>
</div>
</div>
@endforeach
</div>
</div>
</section>
{{-- Why Study With Us Section --}}
<section class="pb-5">
<div class="container">
<div class="features-section text-center animate-on-scroll fade-up-init">
<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').textContent.toLowerCase();
let 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