@cascade([ "site", "page", ]) @props([ "background_color" => null, "donate_widget" => null, "footer_widget" => false, ]) @php use function Statamic\View\Blade\value; $footer_widget ? ($background_color = "#FFFFFF") : $background_color; $text_color = (string) $background_color === "#004F59" ? "text-white" : "text-brand-black"; @endphp
@isset($donate_widget) @if (! $footer_widget)
{{ $image->alt }} @if (value($caption)) @endif
@endif {{-- Initialise form options --}}
$footer_widget]) x-cloak="" x-data="donateWidget({ currencySymbol: @js($site->attributes["currencySymbol"] ?? '$'), currencyAfterValue: @js($site->attributes["currencyAfterValue"] === "true"), includeFrequencyButtons: @js(value($include_monthly_amounts)), onceAmounts: { amount1: @js($once_amount_1), amount1Description: @js(trim(htmlspecialchars_decode($once_amount_1_description)) ?? ""), amount2: @js($once_amount_2), amount2Description: @js(trim(htmlspecialchars_decode($once_amount_2_description)) ?? ""), amount3: @js($once_amount_3), amount3Description: @js(trim(htmlspecialchars_decode($once_amount_3_description)) ?? ""), }, monthlyAmounts: { amount1: @js($monthly_amount_1), amount1Description: @js(trim(htmlspecialchars_decode($monthly_amount_1_description)) ?? ""), amount2: @js($monthly_amount_2), amount2Description: @js(trim(htmlspecialchars_decode($monthly_amount_2_description)) ?? ""), amount3: @js($monthly_amount_3), amount3Description: @js(trim(htmlspecialchars_decode($monthly_amount_3_description)) ?? ""), }, otherText: @js(__("mwb.donations.other")), })" >

{{ $heading }}

{{ $description }}
{{-- Frequency selector buttons --}}

{{ __("mwb.donations.frequency") }}

{{ __("mwb.donations.one-off") }} {{ __("mwb.donations.monthly") }}
{{-- Amount selector buttons --}}

{{ __("mwb.donations.amount") }}

{{-- Only show option buttons if there are any --}}
{{-- Description for selected preset option --}}
{{-- Custom amount input field --}}
{{-- Donate button --}} {{ __("mwb.donations.donate") }}
 
@endisset