fix: 🐛 no need sprintf

This commit is contained in:
K Muller 2026-07-22 10:30:58 +02:00
parent f047ed9156
commit ccecd9b735

View file

@ -11,19 +11,14 @@
<div class="breeders__text description textblock__info-description">
{!! data_get($joinUs, 'wysiwyg_content', '') !!}
</div>
@if (
!empty(data_get($joinUs, 'list_cta.0.model_cta')) &&
!empty(data_get($joinUs, 'list_cta.0.reserved_model_cta')))
@if (!empty(data_get($joinUs, 'list_cta.0.model_cta')) && !empty(data_get($joinUs, 'list_cta.0.reserved_model_cta')))
@php
$targetModel = \App\Models\PageConfig::getModelFromInputModelConfig(
data_get($joinUs, 'list_cta.0.model_cta'),
data_get($joinUs, 'list_cta.0.reserved_model_cta'),
);
$buttonUrl = sprintf(
'%s',
\App\Helpers\RouteHelper::routeNameChecker(
"front.dynamic-pages.{$targetModel->id_key}",
),
$buttonUrl = \App\Helpers\RouteHelper::routeNameChecker(
"front.dynamic-pages.{$targetModel->id_key}",
);
@endphp
<a class="breeders__btn btn"