FEATURE: add blade template for homepage
This commit is contained in:
@@ -1,15 +1,26 @@
|
||||
@extendVisitor('layout')
|
||||
@extendVisitor('homepageLayout')
|
||||
|
||||
@section('content')
|
||||
{!! $page->content !!}
|
||||
<div class="row column text-center m-t-25 p-lr-50-sm">
|
||||
<h2 id="assortment">{{$page->title}}</h2>
|
||||
<hr>
|
||||
<p>
|
||||
{!! $page->content !!}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<h3>Subpages</h3>
|
||||
@forelse($page->subpages() as $subpage)
|
||||
<h3>{{$subpage->title}}</h3>
|
||||
|
||||
<p>{{$subpage->meta_description}}</p>
|
||||
@empty
|
||||
<em>None :(</em>
|
||||
@endforelse
|
||||
@if (!empty($page->subpages()))
|
||||
<div class="row m-b-25 m-t-25 p-lr-50-sm" data-equalizer data-equalize-on="medium">
|
||||
@foreach($page->subpages() as $i => $subpage)
|
||||
<div class="column text-center small-12 medium-6 large-3" data-equalizer-watch>
|
||||
<img class="thumbnail" src="{{config('app.upload_url')}}/{{$subpage->title_photo}}">
|
||||
<h5 class="assortment-h5">{{$subpage->title}}</h5>
|
||||
<p class="assortment-p">{{$subpate->meta_description}}</p>
|
||||
<a href="{{route('page.content', ['url' => $subpage->url])}}"
|
||||
class="assortment-more-btn text-center">- více zde -</a>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@endsection
|
||||
Reference in New Issue
Block a user