feat: Add galleries data to page views and update templates for dynamic content

This commit is contained in:
2025-08-22 11:35:47 +05:45
parent d966b75f56
commit 0652a07452
3 changed files with 46 additions and 60 deletions

View File

@@ -180,7 +180,7 @@ class WebsiteController extends Controller
$page = getPageWithChildrenBySlug(parent: $parent, slug: $slug, limit: null, order: 'asc');
$teams = getTeams(limit: null, order: 'asc');
$blogs = getBlogs(limit: null, order: 'asc');
$galleriesCSR = getPageWithChildrenBySlug(parent: $parent, slug: 'gallery', limit: null, order: 'asc');
if (!$page) {
return view('client.raffles.errors.404');
}
@@ -191,7 +191,7 @@ class WebsiteController extends Controller
return view('client.raffles.errors.404');
}
return view($path, ['page' => $page, 'teams' => $teams, 'blogs' => $blogs]);
return view($path, ['page' => $page, 'teams' => $teams, 'blogs' => $blogs, 'galleriesCSR' => $galleriesCSR]);
}
public function fallback()