<x-front-layout>
    @php
        $blog_hero = blog_hero();
        $categories = categories();
    @endphp
 <div class="section">
            <div class="section-container-lg center z-1 w-container">
                <h1 class="heading">
                    {{$blog_hero?->title}} <br/>
                </h1>
                <p class="section-paragraph">
                    {{$blog_hero?->description}}  <br/>
                </p>
            </div>
        </div>
        <div class="section-blog-home w-clearfix">
            <div class="section-container-lg w-container">
                <div data-hover="false" data-delay="0" class="dropdown w-dropdown">
                    <div class="dropdown-toggle-2 w-dropdown-toggle">
                        <div class="icon-3 w-icon-dropdown-toggle"></div>
                        <div class="text-block-45">Categories</div>
                    </div>
                    <nav class="dropdown-list w-dropdown-list">
                        <a href="/blog" aria-current="page" class="dropdown-link w-inline-block w--current">
                            <div>All</div>
                        </a>
                        <div class="w-dyn-list">
                            <div role="list" class="w-dyn-items">
                                <div role="listitem" class="w-dyn-item">
                                    <a href="/categories/guides" class="dropdown-link w-inline-block">
                                        <div>Guides</div>
                                    </a>
                                </div>
                                <div role="listitem" class="w-dyn-item">
                                    <a href="/categories/announcements" class="dropdown-link w-inline-block">
                                        <div>Announcements</div>
                                    </a>
                                </div>
                                <div role="listitem" class="w-dyn-item">
                                    <a href="/categories/the-expansion-chronicles" class="dropdown-link w-inline-block">
                                        <div>The Expansion Chronicles</div>
                                    </a>
                                </div>
                                <div role="listitem" class="w-dyn-item">
                                    <a href="/categories/case-studies" class="dropdown-link w-inline-block">
                                        <div>Case Studies</div>
                                    </a>
                                </div>
                            </div>
                        </div>
                    </nav>
                </div>
                <div class="div-block-212">
                    <div id="w-node-db2aaaa1-2e7d-49db-7c2e-b5c9984d11a3-280c29ea" class="div-block-213">
                        <div class="text-block-42">Categories</div>
                        <div class="div-block-214">
                            <div class="div-block-221">
                                <a href="/blog" aria-current="page" class="link-15 w--current">All</a>
                            </div>
                            <div class="collection-list-wrapper-6 w-dyn-list">
                                <div role="list" class="collection-list-8 w-dyn-items">
                                    @foreach ($categories as $category)
                                        <div role="listitem" class="collection-item-6 w-dyn-item">
                                            <a href="#" class="link-15">{{ $category->name }} </a>
                                        </div>
                                    @endforeach

                                </div>
                            </div>
                        </div>
                        <div class="w-layout-blockcontainer container-6 w-container"></div>
                    </div>
                    <div id="w-node-_2539edf0-49e4-00e8-bcea-cfddab835f37-280c29ea" class="collection-list-wrapper w-dyn-list">
                        <div role="list" class="collection-list-2 w-dyn-items">
                            @foreach ($blogs as $blog)
                            <div role="listitem" class="collection-item-5 w-dyn-item">
                                <a href="#" class="blog-post w-inline-block">
                                    <img src="{{ asset($blog->image) }}" loading="lazy" alt="" sizes="(max-width: 479px) 91vw, (max-width: 767px) 89vw, (max-width: 991px) 146.625px, 154.625px" srcset="https://assets-global.website-files.com/6094875660e7caf817a85eb9/6570dec4d755ec60d4c5d064_Section%20179%20Blog-p-500.jpg 500w, https://assets-global.website-files.com/6094875660e7caf817a85eb9/6570dec4d755ec60d4c5d064_Section%20179%20Blog-p-800.jpg 800w, https://assets-global.website-files.com/6094875660e7caf817a85eb9/6570dec4d755ec60d4c5d064_Section%20179%20Blog-p-1080.jpg 1080w, https://assets-global.website-files.com/6094875660e7caf817a85eb9/6570dec4d755ec60d4c5d064_Section%20179%20Blog.jpg 1200w" class="blog-thumbnail"/>
                                    <div class="blog-post-bottom">
                                        <h2 class="blog-post-title">{{$blog->title}} </h2>
                                        <div class="blog-post-author">
                                            <div class="post-author-name-copy">
                                                <div class="post-date">December 6, 2023</div>
                                            </div>
                                        </div>
                                    </div>
                                </a>
                            </div>
                            @endforeach
                        </div>
                        <div role="navigation" aria-label="List" class="w-pagination-wrapper">
                            <a href="?ab835f37_page=2" aria-label="Next Page" class="w-pagination-next next">
                                <div class="w-inline-block">Next</div>
                            </a>
                            <link rel="prerender" href="?ab835f37_page=2"/>
                        </div>
                    </div>
                </div>
            </div>
            <a href="guide" class="link-27">Advanced Guides</a>
        </div>
</x-front-layout>
