File: D:/HostingSpaces/SBogers10/tandartsmaas.komma.pro/app/views/layouts/pages/sitemap.blade.php
@extends('layouts.pages.default')
@section('image')
<img src="/images/temp/temp_pand.jpg" alt="temp" class="fill" data-origin="center center"/>
@stop
@section('text')
<h1>Sitemap</h1>
@foreach($navigation->main() as $pageEntity)
@if( ! $pageEntity->hasSubmenu())
<li @if($pageEntity->isActive($currentPageEntity)) class="active" @endif >
<a href="{{ $pageEntity->route }}" data-state="{{ $pageEntity->name }}">
{{ $pageEntity->label }}
</a>
</li>
@elseif( $pageEntity->name == 'services')
<li>
<a href="{{ $pageEntity->route }}" data-state="{{ $pageEntity->name }}">
{{ $pageEntity->label }}
</a>
<ul>
@foreach($navigation->services() as $subEntity)
@if($subEntity->name != $pageEntity->name)
<li @if($subEntity->route == $currentPageEntity->route) class="active" @endif >
<a href="{{ $subEntity->route }}" data-state="{{ $subEntity->name }}">
{{ $subEntity->label }}
</a>
</li>
@endif
@endforeach
</ul>
</li>
@elseif( $pageEntity->name == 'practice')
<li>
<a href="{{ $pageEntity->route }}" data-state="{{ $pageEntity->name }}">
{{ $pageEntity->label }}
</a>
<ul>
@foreach($navigation->practice() as $subEntity)
@if($subEntity->name != $pageEntity->name)
<li @if($subEntity->route == $currentPageEntity->route) class="active" @endif >
<a href="{{ $subEntity->route }}" data-state="{{ $subEntity->name }}">
{{ $subEntity->label }}
</a>
</li>
@endif
@endforeach
</ul>
</li>
@endif
@endforeach
@stop