<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
        http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">

    <!-- ========================================================= -->
    <!-- HOME PAGE -->
    <!-- ========================================================= -->
    <url>
        <loc>{{ url('/') }}</loc>
        <lastmod>{{ now()->toDateString() }}</lastmod>
        <changefreq>daily</changefreq>
        <priority>1.0</priority>
    </url>

    <!-- ========================================================= -->
    <!-- PAGES -->
    <!-- ========================================================= -->
    @foreach($pages as $page)
    <url>
        <loc>{{ url('/' . $page->slug) }}</loc>
        <lastmod>{{ $page->updated_at->toDateString() }}</lastmod>
        <changefreq>weekly</changefreq>
        <priority>0.9</priority>
    </url>
    @endforeach

    <!-- ========================================================= -->
    <!-- BLOGS -->
    <!-- ========================================================= -->
    @foreach($blogs as $blog)
    <url>
        <loc>{{ url('blog/' . $blog->slug) }}</loc>
        <lastmod>{{ $blog->updated_at->toDateString() }}</lastmod>
        <changefreq>weekly</changefreq>
        <priority>0.8</priority>
    </url>
    @endforeach

    <!-- ========================================================= -->
    <!-- BLOG CATEGORIES -->
    <!-- ========================================================= -->
    @foreach($categories as $category)
    <url>
        <loc>{{ url('blog/category/' . $category->slug) }}</loc>
        <lastmod>{{ $category->updated_at->toDateString() }}</lastmod>
        <changefreq>monthly</changefreq>
        <priority>0.6</priority>
    </url>
    @endforeach

    <!-- ========================================================= -->
    <!-- SERVICES -->
    <!-- ========================================================= -->
    @foreach($services as $service)
    <url>
        <loc>{{ url('services/' . $service->slug) }}</loc>
        <lastmod>{{ $service->updated_at->toDateString() }}</lastmod>
        <changefreq>weekly</changefreq>
        <priority>0.8</priority>
    </url>
    @endforeach

    <!-- ========================================================= -->
    <!-- PORTFOLIO -->
    <!-- ========================================================= -->
    @foreach($portfolios as $portfolio)
    <url>
        <loc>{{ url('portfolio/' . $portfolio->slug) }}</loc>
        <lastmod>{{ $portfolio->updated_at->toDateString() }}</lastmod>
        <changefreq>monthly</changefreq>
        <priority>0.7</priority>
    </url>
    @endforeach

    <!-- ========================================================= -->
    <!-- FAQS -->
    <!-- ========================================================= -->
    @foreach($faqs as $faq)
    <url>
        <loc>{{ url('faq/' . $faq->id) }}</loc>
        <lastmod>{{ $faq->updated_at->toDateString() }}</lastmod>
        <changefreq>monthly</changefreq>
        <priority>0.5</priority>
    </url>
    @endforeach

</urlset>