{{-- Offer card — glassmorphism card presenting a product or a solution on the homepage: media, eyebrow, title, description, key points and a link to the detail page. Props: - eyebrow (string) : small label above the title (product role, solution page name) - title (string) : card heading (h3) - description (string) - points (array) : key points, rendered as a checklist - href (string) : detail page URL - cta (string) : link text Slots: - media : image or video, rendered in a rounded frame above the text Usage: --}} @props([ 'eyebrow' => null, 'title' => '', 'description' => null, 'points' => [], 'href' => null, 'cta' => null, ])
merge(['class' => 'flex flex-col rounded-lg p-6 bg-glassmorphism']) }}> @isset($media)
attributes->merge(['class' => 'w-full rounded-lg overflow-hidden mb-6']) }}> {{ $media }}
@endisset @if($eyebrow)

{{ $eyebrow }}

@endif

{!! $title !!}

@if($description)

{!! $description !!}

@endif @if(!empty($points)) @endif @if($href && $cta) {{-- Text link rather than x-atoms.button-link: the button never wraps, too narrow for long names --}} {{-- Icon glued to the last word so it never wraps onto a line of its own --}} @php $ctaWords = explode(' ', $cta); $ctaLast = array_pop($ctaWords); @endphp {{ implode(' ', $ctaWords) }} {{ $ctaLast }} @endif