@extends('layouts.invitation_v2') @push('styles') @php $templateNameCss = str_replace(' ', '_', strtolower($invitation->template->name)); @endphp @endpush @php function isSectionEnabled($section, $invitation){ $enabledInvitationVarName = config("eventdate.section_mapper.{$section}"); $property = \App\Models\InvitationVariable::where( ['invitation_id' => $invitation->id, 'name' => $enabledInvitationVarName], )->first(); if(!$property){ return false; } return $property->value == 1; } @endphp @if ($showSecurity ?? false) @include('templates.section_security') @else @if(($_enableMusicInInvitation ?? false) && isset($_musicSource))
@endif @section('content') {{-- Mostrar ticket arriba SOLO si viene desde enlace con código y la sección no está habilitada por plan/variables --}} @if(!empty($showGuestTicket) && !isSectionEnabled('ticket', $invitation)) @include('v2.ticket', ['ticket' => $ticket, 'guest' => $guest]) @endif @php $sectionLoaded = []; @endphp @foreach ($sectionsEnabled as $section) @php $sectionName = str_replace(' ', '-', strtolower(str_replace('_', ' ', $section->code))); @endphp @if(isSectionEnabled($section->code, $invitation) && (view()->exists('v2.'.$sectionName) || $section->code == 'transportation_recommendations')) @php $sectionName = $section->code == 'transportation_recommendations' ? 'accommodation-recommendations' : $sectionName; @endphp @if(!in_array($sectionName, $sectionLoaded)) @include('v2.'.$sectionName) @endif @php array_push($sectionLoaded, $sectionName); @endphp @endif @endforeach @include('templates_footer') @if($invitation->plan_id == \App\Models\Plan::FREE)
Banner Fijo
Banner Fijo
@endif @endsection @if ($_enableMultiLanguage ?? false)
@endif @if($invitation->plan_id == \App\Models\Plan::FREE)
Banner Fijo
Banner Fijo
@endif @endif