File: D:/HostingSpaces/SBogers10/honger.komma.pro/resources/views/site/pages/vacancies/_show.blade.php
@extends('site.master')
@section('title', $vacancy->translation->name . ' | Werken bij Komma | ' . __('site/meta.title'))
@section('metaTags')
<meta property="og:title" content=" {{ $vacancy->translation->name . ' | Werken bij Komma | ' . __('site/meta.title') }}" />
<meta property="og:description" content="{{ $vacancy->translation->meta_description }}" />
@if(isset($vacancy->images) && $vacancy->images->count() != 0)
<meta property="og:image" content="{{ URL::to($vacancy->images->first()->medium_image_url) }}" />
@endif
@stop
@section('content')
{{-- Intro header --}}
<header class="main">
{{-- Content --}}
<div class="contained-layout">
<div class="intro">
<h1>{{ $vacancy->translation->name }}</h1>
</div>
</div>
@include('site.partials.headerDrips')
</header>
<section class="contained-layout">
<div class="job-description">
@if(isset($vacancy->blocks))
@foreach($vacancy->blocks as $block)
@if(View::exists($block->view))
@include($block->view,[
'block' => $block
])
@endif
@endforeach
@endif
</div>
</section>
{{-- Summary --}}
<section id="arrow-target" class="summary contained-layout">
@if(isset($page->blocks))
@foreach($page->blocks as $block)
@if($block->code_name == 'responseOnVacancy')
{{ debug($block) }}
{{-- Black call to action block--}}
@include('site.blocks.vacancies.applyCta',[
'streamer' => $block->typeName,
'person' => (isset($block->images[0]) ? $block->images[0]['small'] : null),
'callToAction' => $block->description,
'vacancyName' => $vacancy->translation->name
])
@elseif(View::exists($block->view))
@include($block->view,[
'block' => $block
])
@endif
@endforeach
@endif
</section>
<section class="contained-layout">
<div class="back-to-grid-holder col-6 centered">
<a class="back-to-grid" href="/vacatures" data-name="services">Terug naar vacatures</a>
</div>
</section>
@endsection