@props([ 'name', 'label' => null, 'description' => null, 'paymentName' => null, 'supportedCurrencies' => [], ]) @php $isSelected = PaymentMethods::getSelectingMethod() === $name; $id = sprintf('payment-%s', $name); @endphp
{!! BaseHelper::clean($description ?: get_payment_setting('description', $name)) !!}
{{ $slot }} @if ( ! empty($supportedCurrencies) && ! in_array(get_application_currency()->title, $supportedCurrencies) && ! get_application_currency()->replicate()->newQuery()->whereIn('title', $supportedCurrencies)->exists() ) @php $currencies = get_all_currencies()->filter(fn ($item) => in_array($item->title, $supportedCurrencies)); @endphp