@props([ 'pageTag' => null, 'page' => null, 'show' => false, 'closeMethod' => 'closeModal', 'buttonText' => null, 'buttonClass' => 'text-primary-100 hover:text-primary-40 underline' ]) @php // Si es passa un pageTag, carreguem la pàgina automàticament if ($pageTag && !$page) { $page = \App\Models\Page::where('tag', $pageTag)->first(); } // Text del botó per defecte basat en el tag de la pàgina $defaultButtonText = $page ? $page->getTranslation('title', app()->getLocale()) : __('app.more_info'); $finalButtonText = $buttonText ?? $defaultButtonText; @endphp
@if($page)

{{ $page->getTranslation('title', app()->getLocale()) }}

{!! nl2br($page->getTranslation('description', app()->getLocale())) !!}
@else

{{ __('app.content_not_found') }}

{{ __('app.page_content_not_available') }}

@if($pageTag)

{{ __('app.page_tag') }}: {{ $pageTag }}

@endif
@endif