File: D:/HostingSpaces/SBogers10/stempel.komma.pro/resources/views/site/templates/sitemap.blade.php
@extends('site.master')
@section('title', 'Sitemap')
@section('meta_description', '')
@section('content')
<div class="c-page-title">
<h1 class="c-page-title__heading">Sitemap</h1>
</div>
<nav class="l-contain">
<ul class="c-sitemap o-block">
@php
$pages = new \Illuminate\Database\Eloquent\Collection($page->findChildren());
$pages = $pages->load('translation', 'translation.route');
@endphp
{{-- Generate all sitemap loop for find children except home --}}
@foreach($pages as $child)
{{--@unless($child->code_name == 'home')--}}
@include('site.components.sitemapLoop', ['sitemapItem' => $child])
{{--@endunless--}}
@endforeach
</ul>
</nav>
@include('site.organisms.calloutBar', [
'heading' => config('site.global_CTA_heading'),
'button' => App\Komma\Buttons\Models\Button::where('id', config('site.global_CTA_button_id'))->with('translations')->first(),
'servicepoint' => App\Komma\Servicepoints\Models\Servicepoint::where('id', config('site.global_CTA_servicepoint_id'))->with('translations', 'documents')->first()
])
@endsection