@php use Botble\Base\Facades\BaseHelper; use Botble\Media\Facades\RvMedia; use Botble\Shortcode\Facades\Shortcode; $heroImage = (string) ($shortcode->hero_image ?? ''); $heading = (string) ($shortcode->heading ?? ''); $description = (string) ($shortcode->description ?? ''); // Tabs: value (static text), animate_to (number for count-up; 0 = no animation), // suffix, label, desc. $items = Shortcode::fields()->getTabsData(['value', 'animate_to', 'suffix', 'label', 'desc'], $shortcode); $heroSrc = $heroImage ? RvMedia::getImageUrl($heroImage, null, false, RvMedia::getDefaultImage()) : null; @endphp {{-- .section-main-about hero-image + box-why rules live in assets/sass/component/_inline-migrated.scss. --}}
htmlAttributes() !!} class="section-main-about flat-spacing pt-0">
@if ($heroSrc)
{{ $heading }}
@endif @if ($heading || $description)
@if ($heading)

{{ $heading }}

@endif @if ($description)

{!! BaseHelper::clean($description) !!}

@endif
@endif @if (! empty($items))
@foreach ($items as $stat) @php($animateTo = (int) ($stat['animate_to'] ?? 0))

@if ($animateTo > 0) 0@if (! empty($stat['suffix'])){{ $stat['suffix'] }}@endif @else {{ $stat['value'] ?? '' }} @endif

@if (! empty($stat['label']))

{{ $stat['label'] }}

@endif @if (! empty($stat['desc']))

{{ $stat['desc'] }}

@endif
@endforeach
@endif