fipamo/content/themes/fipamo-default-v2/index.blade.php
ro ba2e75b186
converted index template to blade
started the front end template conversion with the index page
2024-03-14 20:03:46 -06:00

56 lines
1.8 KiB
PHP

@extends('fipamo-default-v2.base')
@section('title', $title)
@section('main-content')
<article>
<h1>{{ $title }}</h1>
<p>{!!$content!!}</p>
</article>
<section role="page-meta">
<div>
<h2>RECENT</h2>
@foreach($recent as $item)
@if(isset($dynamicRender))
@if($dynamicRender == 'true')
<a href="{{ "/".$item['path']."/".$item['slug'] }}">
{{ $item['title'] }}
</a><br/>
@else
<a href="{{ "/".$item['path']."/".$item['slug'].".html" }}">
{{ $item['title'] }}
</a><br/>
@endif
@else
<a href="{{ "/".$item['path']."/".$item['slug'].".html" }}">
{{ $item['title'] }}
</a><br/>
@endif
@endforeach
</div>
<div>
<h2>FEATURED</h2>
@foreach($feature as $item)
@if(isset($dynamicRender))
@if($dynamicRender == 'true')
<a href="{{ "/".$item['path']."/".$item['slug'] }}">
{{ $item['title'] }}
</a><br/>
@else
<a href="{{ "/".$item['path']."/".$item['slug'].".html" }}">
{{ $item['title'] }}
</a><br/>
@endif
@else
<a href="{{ "/".$item['path']."/".$item['slug'].".html" }}">
{{ $item['title'] }}
</a><br/>
@endif
@endforeach
</div>
</section>
@endsection