{{ $layout->header }}
@if ($layout->description){!! $layout->description !!}
@endif
@foreach ($layout->typographies as $typography)
@endforeach
@else
{{ $typography->header }}
@if ($typography->description)
{!! $typography->description !!}
@endif
@php
$downloadLinks = $typography->links;
$totalLinks = $downloadLinks->count();
@endphp
@if ($totalLinks > 0)
@endif
@if (Session::get('lang', 'en') == 'en') No content available yet for this section. @else Belum ada konten tersedia untuk bagian ini. @endif
@php
// Hide header dan description untuk cardtype informational dan dwnldsatu
$hideHeader = in_array($layout->card_type, [
'informational',
'info',
'info-r',
'info-rl',
'info-m',
'informational_right',
'informational_mixed',
'informational right',
'informational mixed',
'dwnldsatu',
'dwnlddua',
]);
$headerStyle = $needsBorder
? 'margin-bottom: 25px; margin-top: 0; max-width: 100%; box-sizing: border-box;'
: 'margin-bottom: 25px; margin-top: 20px; max-width: 100%; box-sizing: border-box;';
$descriptionStyle = 'margin-bottom: 35px; text-align: justify; max-width: 100%; box-sizing: border-box;';
@endphp
{{-- Add spacing for bordered layouts (90px for 2nd+ layout in border) --}}
@if ($needsBorder && $borderOpen && !$isFirstInBorder)
@endif
@if ($needsBorder && $borderOpen)
@php $isFirstInBorder = false; @endphp
@endif
@if (!$hideHeader)
@endif
{{-- Close section for informational cards --}}
@if ($isInformational)
{{ $layout->header }}
@if ($layout->description){!! $layout->description !!}
@endif @endif {{-- KONTEN --}} @if ($layout->typographies->count() > 0) @php $cardsPerRow = $layout->number_of_card_per_row; $gridClass = 'one-column-grid'; // Untuk card type guideline, selalu gunakan 4 kolom if ($layout->card_type === 'guideline') { $gridClass = 'four-column-grid'; } else { if ($cardsPerRow == 2) { $gridClass = 'two-column-grid'; } if ($cardsPerRow == 3) { $gridClass = 'three-column-grid'; } if ($cardsPerRow == 4) { $gridClass = 'four-column-grid'; } } @endphp @else@if (Session::get('lang', 'en') == 'en') No content available yet for this section. @else Belum ada konten tersedia untuk bagian ini. @endif