@extends('emails.partials.layout')

@section('title', $title)
@section('preheader', $preheader ?? '')
@section('hero_title', $heroTitle)

@isset($heroSubtitle)
    @section('hero_subtitle', $heroSubtitle)
@endisset

@section('content')
    @isset($intro)
        <p style="margin:0 0 12px; font-size:15px; color:#1f2937;">
            {{ $intro }}
        </p>
    @endisset
    @if (! empty($lines))
        <table role="presentation" width="100%" cellspacing="0" cellpadding="0" style="border-collapse:collapse;">
            @foreach ($lines as $line)
                <tr>
                    <td style="padding:6px 0; font-size:14px; color:#0f172a;">{{ $line }}</td>
                </tr>
            @endforeach
        </table>
    @endif
@endsection

@section('cta')
    @if (! empty($cta))
        @foreach ($cta as $action)
            <a href="{{ $action['url'] }}" style="display:inline-block; background-color:#111827; color:#ffffff; text-decoration:none; padding:12px 20px; border-radius:999px; font-weight:600; font-size:14px; margin-right:12px; margin-bottom:12px;">
                {{ $action['label'] }}
            </a>
        @endforeach
    @endif
@endsection

@section('footer')
    {!! $footer ?? __('emails.brand.footer') !!}
@endsection
