diff --git a/resources/views/courses.blade.php b/resources/views/courses.blade.php
index 1e39be2..22f1143 100644
--- a/resources/views/courses.blade.php
+++ b/resources/views/courses.blade.php
@@ -11,22 +11,13 @@
--light:#f8f4f7;
}
-/* .hero{
- background:linear-gradient(rgba(0,0,0,.65),rgba(0,0,0,.65)),
- url(https://images.unsplash.com/photo-1486006920555-c77dce18193b?auto=format&fit=crop&w=1600&q=80);
- background-size:cover;
- background-position:center;
- color:#fff;
- padding:120px 0;
- text-align:center;
-} */
- .hero {
- background-image: linear-gradient(rgba(135, 125, 145, 0.65), rgba(0, 0, 0, 0.65)),
- url('https://images.unsplash.com/photo-1486006920555-c77dce18193b?auto=format&fit=crop&w=1600&q=80');
+.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: #fff;
+ color: #ffffff;
padding: 120px 0;
text-align: center;
}
@@ -42,6 +33,43 @@
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);
+ /* border-radius: 30px; */
+ overflow: hidden;
+ background: #fff;
+}
+
+.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:none;
border-radius:15px;
@@ -71,7 +99,7 @@
.read-btn{
background:var(--primary);
color:#fff;
- border-radius:30px;
+ /* border-radius:30px; */
padding:10px 25px;
font-weight: 40px;
}
@@ -87,10 +115,17 @@
padding:25px;
box-shadow:0 5px 20px rgba(0,0,0,.08);
}
+
+/* No results message styling */
+#noResults {
+ font-size: 18px;
+ font-weight: bold;
+ color: #666;
+ margin-top: 20px;
+}
{{-- Hero --}}
-
@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',
-'description'=>'Learn engine systems, diagnostics, vehicle maintenance, workshop practices and modern automotive technologies.',
-],
-
-[
-'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',
-'description'=>'Study suspension, steering, transmission, braking systems and practical repair techniques.',
-],
-
-[
-'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',
-'description'=>'Explore EV batteries, charging infrastructure, electric drivetrains and smart mobility systems.',
-],
-
-[
-'image'=>'https://images.unsplash.com/photo-1511919884226-fd3cad34687c?auto=format&fit=crop&w=900&q=80',
-'title'=>'Hybrid Vehicle Maintenance',
-'duration'=>'10 Months',
-'level'=>'Professional',
-'description'=>'Learn hybrid engine operation, diagnostics and maintenance procedures.',
-],
-
-[
-'image'=>'https://images.unsplash.com/photo-1504215680853-026ed2a45def?auto=format&fit=crop&w=900&q=80',
-'title'=>'Auto Electrical Systems',
-'duration'=>'8 Months',
-'level'=>'Certificate',
-'description'=>'Understand vehicle wiring, sensors, ECU systems and electronic diagnostics.',
-],
-
-[
-'image'=>'https://images.unsplash.com/photo-1517524008697-84bbe3c3fd98?auto=format&fit=crop&w=900&q=80',
-'title'=>'Automobile Service Technician',
-'duration'=>'1 Year',
-'level'=>'NVQ',
-'description'=>'Hands-on training in servicing, repairing and maintaining modern vehicles.',
-],
-
+ [
+ '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',
+ 'description'=>'Learn engine systems, diagnostics, vehicle maintenance, workshop practices and modern automotive technologies.',
+ ],
+ [
+ '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',
+ 'description'=>'Study suspension, steering, transmission, braking systems and practical repair techniques.',
+ ],
+ [
+ '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',
+ 'description'=>'Explore EV batteries, charging infrastructure, electric drivetrains and smart mobility systems.',
+ ],
+ [
+ 'image'=>'https://images.unsplash.com/photo-1511919884226-fd3cad34687c?auto=format&fit=crop&w=900&q=80',
+ 'title'=>'Hybrid Vehicle Maintenance',
+ 'duration'=>'10 Months',
+ 'level'=>'Professional',
+ 'description'=>'Learn hybrid engine operation, diagnostics and maintenance procedures.',
+ ],
+ [
+ 'image'=>'https://images.unsplash.com/photo-1504215680853-026ed2a45def?auto=format&fit=crop&w=900&q=80',
+ 'title'=>'Auto Electrical Systems',
+ 'duration'=>'8 Months',
+ 'level'=>'Certificate',
+ 'description'=>'Understand vehicle wiring, sensors, ECU systems and electronic diagnostics.',
+ ],
+ [
+ 'image'=>'https://images.unsplash.com/photo-1517524008697-84bbe3c3fd98?auto=format&fit=crop&w=900&q=80',
+ 'title'=>'Automobile Service Technician',
+ 'duration'=>'1 Year',
+ 'level'=>'NVQ',
+ 'description'=>'Hands-on training in servicing, repairing and maintaining modern vehicles.',
+ ],
];
-
@endphp
-
+
+
+
+
No courses found matching your search.
+
-
+
+ @foreach($courses as $course)
+
+
+
+
+
+ {{ $course['level'] }}
+
+
+ {{ $course['title'] }}
+
+
+ {{ $course['description'] }}
+
+
+
+ Duration
+ {{ $course['duration'] }}
+
+
Apply Course
+
+
+
+ @endforeach
+
-@foreach($courses as $course)
-
-
-
-
-
-
-
-
-
-
-{{ $course['level'] }}
-
-
-
-{{ $course['title'] }}
-
-
-
-{{ $course['description'] }}
-
-
-
-
-
-
-
-Duration
-
-
-
-{{ $course['duration'] }}
-
-
-
-
-
-Apply Course
-
-
-
-
-
-
-
-
-@endforeach
-
-
-
-
+
-
-
-
-
-
-Why Study With Us?
-
-
-
-
-
-
✔
-
Experienced Lecturers
-
-
-
-
-
-
✔
-
Industry Certification
-
-
-
-
-
-
-
-
-
+
+
+
Why Study With Us?
+
+
+
✔
+
Experienced Lecturers
+
+
+
+
✔
+
Industry Certification
+
+
+
+
+
+
+
@endsection
\ No newline at end of file
diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php
index f51a4a5..67e1011 100644
--- a/resources/views/layouts/app.blade.php
+++ b/resources/views/layouts/app.blade.php
@@ -246,10 +246,11 @@
Quick Links
@@ -304,8 +305,7 @@ function submitLogout() {
.then(data => {
if (data.success) {
alert('Logged out successfully!');
- // සාර්ථකව Logout වුණාම කෙලින්ම මුල් පිටුවට (Home - /) යවනවා.
- // එවිට Auth::check() false වී Sign In / Register බටන් ටික බලාගන්න පුළුවන්.
+
window.location.href = '/';
} else {
alert('Logout failed. Please try again.');
@@ -329,6 +329,7 @@ window.addEventListener('click', function () {
const dropdown = document.getElementById('userDropdownContent');
if (dropdown) { dropdown.style.display = 'none'; }
});
+