forked from projects/fipamo
34 lines
1.4 KiB
PHP
34 lines
1.4 KiB
PHP
|
@extends('fipamo-default-v2.base')
|
||
|
|
||
|
@section('title', $title)
|
||
|
|
||
|
@section('main-content')
|
||
|
<article>
|
||
|
<h1>{{ $title }}</h1>
|
||
|
|
||
|
<div role="archives">
|
||
|
@foreach($archive as $item)
|
||
|
<div role="archive-$item">
|
||
|
<h2>{{ $item['year'] }}</h2>
|
||
|
@foreach($item['year_data'] as $data)
|
||
|
<div role="archive-month">
|
||
|
<h3>{{ $data['full_month'] }}</h3>
|
||
|
@foreach($data['pages'] as $page)
|
||
|
@if(isset($dynamicRender))
|
||
|
@if($dynamicRender == 'true')
|
||
|
<a href="{{ "/".$item['year']."/".$data['month']."/".$page['slug'] }}">{{ $page['title'] }}</a><br/>
|
||
|
@else
|
||
|
<a href="{{ "/".$item['year']."/".$data['month']."/".$page['slug'].".html" }}">{{ $page['title'] }}</a><br/>
|
||
|
@endif
|
||
|
@else
|
||
|
<a href="{{ "/".$item['year']."/".$data['month']."/".$page['slug'] }}">{{ $page['title'] }}</a><br/>
|
||
|
@endif
|
||
|
@endforeach
|
||
|
</div>
|
||
|
@endforeach
|
||
|
</div>
|
||
|
@endforeach
|
||
|
</div>
|
||
|
</article>
|
||
|
@endsection
|