@if ($block->anchor_id )
@endif
@if (isset($block->block_title))

@title($block->block_title)

@title($block->block_subtitle)

@endif
{{-- START SLIDER DESKTOP --}}
@php $projects = $block->projects() ->full() ->where('status', 'published') ->where('lang_status', 'published') ->orderBy('block_project.position') ->get(); $auxProject = null; $slideCount = 0; @endphp @foreach($projects as $i => $project) @if(($i + 1) % 2 == 0) @include( 'frontend.templates.blocks.project-slide', array( 'projectOne' => $auxProject, 'projectTwo' => $project, 'container_class' => 'project-slide--slider', 'id' => (($i - 1) / 2), 'invert' => (($i - 1) / 2) % 2 == 1 )) @else @endif @endforeach @if($auxProject) @include( 'frontend.templates.blocks.project-slide', array( 'projectOne' => $auxProject, 'projectTwo' => null, 'container_class' => 'project-slide--slider', 'id' => ($projects->count() - 1) / 2, 'invert' => false )) @endif
@include('frontend.svg.icon-arrow-blue-down')
@for($i = 0; $i < $slideCount; $i++)
@endfor
@include('frontend.svg.icon-arrow-blue-down')
{{-- END SLIDER DESKTOP --}} {{-- START SLIDER MOBILE --}}
@foreach($projects as $i => $project) @include( 'frontend.templates.blocks.project-slide-mobile', array( 'project' => $project, 'id' => $i )) @endforeach
@include('frontend.svg.icon-arrow-blue-down')
@foreach($projects as $i => $project)
@endforeach
@include('frontend.svg.icon-arrow-blue-down')
{{-- END SLIDER MOBILE --}}
@if($block->cta1) {!! generateLink($block->cta1, 'square-button square-button--arrow projects-slider__container-button') !!} @endif