2024-03-15 21:28:26 +01:00
|
|
|
@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)
|
2024-10-29 19:05:50 +01:00
|
|
|
@php
|
|
|
|
$title = urldecode($page['title']);
|
|
|
|
@endphp
|
2024-03-15 21:28:26 +01:00
|
|
|
@if(isset($dynamicRender))
|
|
|
|
@if($dynamicRender == 'true')
|
2024-10-29 19:05:50 +01:00
|
|
|
<a href="{{ "/".$item['year']."/".$data['month']."/".$page['slug'] }}">{{ $title }}</a><br/>
|
2024-03-15 21:28:26 +01:00
|
|
|
@else
|
2024-10-29 19:05:50 +01:00
|
|
|
<a href="{{ "/".$item['year']."/".$data['month']."/".$page['slug'].".html" }}">{{ $title }}</a><br/>
|
2024-03-15 21:28:26 +01:00
|
|
|
@endif
|
|
|
|
@else
|
2024-10-29 19:05:50 +01:00
|
|
|
<a href="{{ "/".$item['year']."/".$data['month']."/".$page['slug'] }}">{{ $title }}</a><br/>
|
2024-03-15 21:28:26 +01:00
|
|
|
@endif
|
|
|
|
@endforeach
|
|
|
|
</div>
|
|
|
|
@endforeach
|
|
|
|
</div>
|
|
|
|
@endforeach
|
|
|
|
</div>
|
|
|
|
</article>
|
|
|
|
@endsection
|