File: D:/HostingSpaces/BVerhoeven/verhoevendak.nl/app/views/layouts/pages/testimonials.blade.php
<?php
$testiBlocks = $page->content->translation->description;
if (!empty($testiBlocks['ref1']) && !empty($testiBlocks['ref1']->link)) {
$ref1Project = $projects->filter(function ($project) use ($testiBlocks) {
return ("/" . $project->translation->route->route) == $testiBlocks['ref1']->link;
})->first();
}
if (!empty($testiBlocks['ref2']) && !empty($testiBlocks['ref2']->link)) {
$ref2Project = $projects->filter(function ($project) use ($testiBlocks) {
return ("/" . $project->translation->route->route) == $testiBlocks['ref2']->link;
})->first();
}
?>
@extends('layouts.master', ['view' => 'testimonials'])
@section('editable_content')
<div class="testimonials-content">
<div class="grid-row">
@include('layouts.partials.breadcrumb')
</div>
@if(!empty($testiBlocks['intro']->status))
<div class="grid-row row top">
<div class="grid-col col-6 offset-3 textholder">
<div class="text">
{{$testiBlocks['intro']->description}}
</div>
</div>
</div>
@endif
@if(!empty($testiBlocks['ref1']) && !empty($testiBlocks['ref1']->status))
@include('layouts.partials.dynamic.'.$testiBlocks['ref1']->view,[
'dir'=> $testiBlocks['ref1']->location,
'text'=> $testiBlocks['ref1']->description,
'img' => $testiBlocks['ref1']->images[0]->large_image_url,
'link' => $testiBlocks['ref1']->link,
'linkText' => $testiBlocks['ref1']->link_text,
'name' => $testiBlocks['ref1']->typeName,
'projectImages' => $ref1Project->images,
'projectLocation' => $ref1Project->translation->location_string,
'projectDate' => Carbon\Carbon::parse($ref1Project->date)->format('d/m/Y')])
@endif
@if(!empty($testiBlocks['ref2']) && !empty($testiBlocks['ref2']->status))
@include('layouts.partials.dynamic.'.$testiBlocks['ref2']->view,[
'dir'=> $testiBlocks['ref2']->location,
'text'=> $testiBlocks['ref2']->description,
'img' => $testiBlocks['ref2']->images[0]->large_image_url,
'link' => $testiBlocks['ref2']->link,
'linkText' => $testiBlocks['ref1']->link_text,
'name' => $testiBlocks['ref2']->typeName,
'projectImages' => $ref2Project->images,
'projectLocation' => $ref2Project->translation->location_string,
'projectDate' => Carbon\Carbon::parse($ref2Project->date)->format('d/m/Y')]
)
@endif
@if(!empty($testiBlocks['uit-je-dak']->status))
<div class="grid-row full-row uit-je-dak">
<div class="grid-row">
<div class="grid-col col-4 textholder">
<div class="text">
{{$testiBlocks['uit-je-dak']->description}}
</div>
<a href="{{$testiBlocks['uit-je-dak']->link}}"
class="button blue arrow">{{$testiBlocks['uit-je-dak']->link_text}}</a>
</div>
<div class="grid-col pull-right imgholder" style="background-image: url('{{$testiBlocks['uit-je-dak']->images[0]->large_image_url}}')"></div>
</div>
</div>
@endif
@if(!empty($testiBlocks['CTABlock']->status))
@include("layouts.partials.callToActionContact", ['name' => 'Wim Verhoeven', 'jobtitle' => 'Bedrijfsleider', 'phone' => '06 53 76 04 49', 'phoneLink' => '0031653760449', 'img' => '/img/personeel/Wim.jpg'])
@endif
</div>
@endsection