@if (setting('payment_paypal_status') == 1)
  • {!! BaseHelper::clean(get_payment_setting('description', 'paypal')) !!}

    @php $supportedCurrencies = (new Botble\PayPal\Services\Gateways\PayPalPaymentService)->supportedCurrencyCodes(); @endphp @if (function_exists('get_application_currency') && !in_array(get_application_currency()->title, $supportedCurrencies) && !get_application_currency()->replicate()->where('title', 'USD')->exists())
    {{ __(":name doesn't support :currency. List of currencies supported by :name: :currencies.", ['name' => 'PayPal', 'currency' => get_application_currency()->title, 'currencies' => implode(', ', $supportedCurrencies)]) }}
    {{ __('Learn more') }}: https://developer.paypal.com/docs/api/reference/currency-codes
    @php $currencies = get_all_currencies(); $currencies = $currencies->filter(function ($item) use ($supportedCurrencies) { return in_array($item->title, $supportedCurrencies); }); @endphp @if (count($currencies))
    {{ __('Please switch currency to any supported currency') }}:   @foreach ($currencies as $currency) id) class="active" @endif >{{ $currency->title }} @if (!$loop->last)   |   @endif @endforeach
    @endif
    @endif
  • @endif