title = "Gallery" url = "/gallery" layout = "default" is_hidden = 0 == first()->getAllChildren(); $posts = Category::where("slug", "gallery")->first(); $this['menus'] = $menus; $this['posts'] = $posts->posts; $this['js'] = "assets/js/script.min.js"; $this['js'] = "assets/js/gallery.min.js"; // dd($this['posts'][0]->categories[0]->slug); } ?> == {% put styles %} {% endput %} {% put scripts %} {% endput %} {% put scripts_inline %} {% endput %} {% put additional_flying_elements %} {% endput %} {% put footer_pusher %} {% endput %} {% put modal %} {% endput %} All {% for menu in menus %} {{menu.name}} {% endfor %} {% for post in posts %} {% for img in post.featured_images %} {% endfor %} {% endfor %}