@if (setting('payment_paypal_status') == 1)
  • {!! clean(setting('payment_paypal_description')) !!} @php $supportedCurrencies = (new \Botble\Payment\Services\Gateways\PayPalPaymentService)->supportedCurrencyCodes(); @endphp @if (function_exists('get_application_currency') && !in_array(get_application_currency()->title, $supportedCurrencies))
    {{ __(":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