feat: Implement admin management for FAQ, Testimonial, and Video Gallery sections with new controllers, views, and routing.

This commit is contained in:
LNHA
2026-02-05 16:03:37 +07:00
parent b4891101e7
commit 6e0a97edef
11 changed files with 1229 additions and 1911 deletions

View File

@@ -701,7 +701,7 @@
<span class="nav-link text-muted px-2">|</span>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle <%= currentPath === '/admin/home' || currentPath === '/admin/header' || currentPath === '/admin/footer' ? 'active' : '' %>"
<a class="nav-link dropdown-toggle <%= currentPath === '/admin/home' || currentPath === '/admin/header' || currentPath === '/admin/footer' || currentPath === '/admin/home/faq' || currentPath === '/admin/home/testimonials' || currentPath === '/admin/home/video-gallery' ? 'active' : '' %>"
href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">
Home
</a>
@@ -710,6 +710,18 @@
<a class="dropdown-item <%= currentPath === '/admin/home' ? 'active' : '' %>"
href="/admin/home">Homepage</a>
</li>
<li>
<a class="dropdown-item <%= currentPath === '/admin/home/faq' ? 'active' : '' %>"
href="/admin/home/faq">FAQ</a>
</li>
<li>
<a class="dropdown-item <%= currentPath === '/admin/home/testimonials' ? 'active' : '' %>"
href="/admin/home/testimonials">Testimonials</a>
</li>
<li>
<a class="dropdown-item <%= currentPath === '/admin/home/video-gallery' ? 'active' : '' %>"
href="/admin/home/video-gallery">Video Gallery</a>
</li>
<li>
<a class="dropdown-item <%= currentPath === '/admin/header' ? 'active' : '' %>"
href="/admin/header">Header & Menu</a>
@@ -734,10 +746,6 @@
<a class="dropdown-item <%= currentPath === '/admin/safety' ? 'active' : '' %>"
href="/admin/safety">Safety</a>
</li>
<li>
<a class="dropdown-item <%= currentPath === '/admin/faq' ? 'active' : '' %>"
href="/admin/faq">FAQ</a>
</li>
<li>
<a class="dropdown-item <%= currentPath === '/admin/insurance' ? 'active' : '' %>"
href="/admin/insurance">Insurance</a>
@@ -769,16 +777,14 @@
</ul>
</li>
<li class="nav-item">
<a class="nav-link <%= currentPath === '/admin/blog' ? 'active' : '' %>"
href="/admin/blog">Blog</a>
<a class="nav-link <%= currentPath === '/admin/blog' ? 'active' : '' %>" href="/admin/blog">Blog</a>
</li>
<li class="nav-item">
<a class="nav-link <%= currentPath === '/admin/visa' ? 'active' : '' %>"
href="/admin/visa">Visa</a>
<a class="nav-link <%= currentPath === '/admin/visa' ? 'active' : '' %>" href="/admin/visa">Visa</a>
</li>
<li class="nav-item">
<a class="nav-link <%= currentPath === '/admin/contact' ? 'active' : '' %>"
href="/admin/contact">Contact Us</a>
<a class="nav-link <%= currentPath === '/admin/contact' ? 'active' : '' %>" href="/admin/contact">Contact
Us</a>
</li>
<li class="nav-item">
<a class="nav-link <%= currentPath === '/admin/appointment' ? 'active' : '' %>"
@@ -847,10 +853,12 @@
<i class="fas fa-map-marker-alt me-2"></i> 734 Luy Ban Bich St., Tan Thanh Ward, Tan Phu Dist, HCMC
</p>
<p class="mb-2">
<i class="fas fa-envelope me-2"></i> <a href="mailto:get-info@hai.edu.vn" class="text-decoration-none hover-opacity">get-info@hai.edu.vn</a>
<i class="fas fa-envelope me-2"></i> <a href="mailto:get-info@hai.edu.vn"
class="text-decoration-none hover-opacity">get-info@hai.edu.vn</a>
</p>
<p class="mb-2">
<i class="fas fa-globe me-2"></i> <a href="https://hai.edu.vn" target="_blank" class="text-decoration-none hover-opacity">hai.edu.vn</a>
<i class="fas fa-globe me-2"></i> <a href="https://hai.edu.vn" target="_blank"
class="text-decoration-none hover-opacity">hai.edu.vn</a>
</p>
</div>
</div>