academy/resources/views/courses.blade.php

598 lines
18 KiB
PHP

@extends('layouts.app')
@section('title', 'Our Courses')
@section('content')
<style>
:root {
/* Premium Modern Automotive Palette (Updated based on your custom inputs) */
--primary: #3E51B8; /* Tech Blue / Main Brand Color */
--primary-light: #0a67df; /* Vibrant Electric Blue */
--secondary: #BC1A1A; /* Deep Racing Red */
--secondary-hover: #822424; /* Dark Burnt Red */
--accent-dark: #753939; /* Muted Crimson */
--accent-light: rgba(227, 100, 20, 0.1); /* Soft Amber/Orange tint for badges */
--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);
--shadow-color: rgba(15, 44, 89, 0.05);
--success-green: #10B981; /* Modern emerald green */
}
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, #3B43B6 0%, var(--secondary-hover) 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%);
}
/* ===== HIGHLY SATISFYING HORIZONTAL COURSE CARDS ===== */
.course-card {
border: 1px solid var(--card-border);
overflow: hidden;
background: #fff;
transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
box-shadow: 0 8px 30px var(--shadow-color);
}
.course-card:hover {
transform: translateY(-6px);
box-shadow: 0 20px 40px rgba(62, 81, 184, 0.15);
border-color: var(--primary-light);
}
.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:#1A4E7B;
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: var(--primary-light);
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);
}
/* --- Modernized Why Study With Us Section --- */
.features-section {
background-color: var(--bg-light);
border-radius: 32px;
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: 36px;
font-weight: 800;
color: #304599;
margin-bottom: 12px;
}
.section-divider {
height: 4px;
width: 65px;
background: linear-gradient(90deg, var(--secondary) 0%, var(--accent-yellow) 100%);
margin: 0 auto 45px auto;
border-radius: 10px;
}
.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: left;
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);
}
.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);
}
.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: var(--primary);
margin-bottom: 12px;
}
.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;
}
/* ========================================================
Custom Pure CSS Animations (Scroll 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>
@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"><i class="fa-solid fa-user-gear me-1"></i> {{ $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 why-study-section>
<div class="container">
<div class="features-section text-center animate-on-scroll fade-up-init" style="background-image: linear-gradient(rgba(141, 189, 255, 0.37), rgba(84, 60, 60, 0.69)), url('https://images.unsplash.com/photo-1568605117036-5fe5e7bab0b7?auto=format&fit=crop&w=900&q=80');
background-size: cover;
background-position: center;
background-repeat: no-repeat;">
<h2>Why Study With Us?</h2>
<!-- <div class="section-divider"></div> -->
<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