@php $workshopPage = $workshopPage ?? null; $workshopWhat = $workshopWhat ?? null; $workshopHow = $workshopHow ?? null; $workshopIncluded = $workshopIncluded ?? null; $pageTitle = $workshopPage && ___($workshopPage, 'title') ? ___($workshopPage, 'title') : __('public.menu.how_it_works'); $pageKicker = $workshopPage && ___($workshopPage, 'meta_keywords') ? ___($workshopPage, 'meta_keywords') : ''; $pageIntro = $workshopPage && ___($workshopPage, 'description') ? ___($workshopPage, 'description') : ($workshopWhat ? ___($workshopWhat, 'description') : ''); @endphp @extends("layouts.public") @section("meta") @include('includes.seo-meta', [ 'slug' => 'how-it-works', 'path' => '/how-it-works', 'defaults' => [ 'title' => __('public.pages.how_it_works_title'), 'description' => __('public.pages.how_it_works_desc'), ], ]) @push('json_ld') @include('includes.json-ld-graphs', [ 'graphs' => [ schema_breadcrumb([ ['name' => __('public.breadcrumb.home'), 'url' => schema_absolute_url('/')], ['name' => __('public.breadcrumb.how_it_works'), 'url' => schema_absolute_url('/how-it-works')], ]), ], ]) @endpush @endsection @section("content") @include('includes.corano-breadcrumb', [ 'crumbs' => [ ['label' => __('public.breadcrumb.how_it_works')], ], ])

{{ $pageTitle }}

@if($pageKicker)

{{ $pageKicker }}

@endif
@if($pageIntro)
{!! rich_html($pageIntro) !!}
@endif
@php $howSteps = $workshopHow ? $workshopHow->content->where('type', 'step')->sortBy('sort_order')->values() : collect(); $includedItems = $workshopIncluded ? $workshopIncluded->content->where('type', 'item')->sortBy('sort_order') : collect(); $includedCta = $workshopIncluded ? $workshopIncluded->content->firstWhere('type', 'cta') : null; $includedIntro = $workshopIncluded ? ___($workshopIncluded, 'description') : ''; $showHow = $howSteps->count(); $showIncluded = $includedIntro || $includedItems->count() || $includedCta; @endphp @if($showHow)
@if($workshopHow && ___($workshopHow, 'title'))

{{ ___($workshopHow, 'title') }}

@endif @if($workshopHow && ___($workshopHow, 'meta_keywords'))

{{ ___($workshopHow, 'meta_keywords') }}

@endif
@include('pages.workshop.partials.how-steps', ['workshopHow' => $workshopHow])
@endif @if($showIncluded)
@if($workshopIncluded && ___($workshopIncluded, 'title'))

{{ ___($workshopIncluded, 'title') }}

@endif @if($workshopIncluded && ___($workshopIncluded, 'meta_keywords'))

{{ ___($workshopIncluded, 'meta_keywords') }}

@endif
@include('pages.workshop.partials.included', ['workshopIncluded' => $workshopIncluded])
@endif @endsection