{{-- Payment methods before the order exists: visible but locked, with the reasons (orderBlockers) --}} @php $regularMethods = collect($paymentMethods)->filter(function($paymentMethod) use ($agent) { if ($paymentMethod->payments_is_discount ?? false) { return false; } if (in_array($paymentMethod->payments_slug, ['myfatoorah-apple-pay', 'paymob-apple'])) { return ($agent->is('iOS') || $agent->is('iPhone') || $agent->is('iPad') || $agent->is('Mac OS X') || $agent->is('OS X') || $agent->is('Macintosh')); } return true; }); @endphp
@if(count($orderBlockers) > 0)
{{ __('lang.orderBlockersTitle') }}
@endif
{{ count($regularMethods) > 1 ? __('lang.paymentMethod') : __('lang.payment') }}
@foreach ($regularMethods as $paymentMethod) @php if (str_contains(env('APP_URL'), 'localhost')) { $svgPath = public_path('uploads/payments/' . $paymentMethod->payments_slug . '.svg'); }else{ $svgPath = env('sitmapPath', ''). '/uploads/payments/' . $paymentMethod->payments_slug . '.svg'; } $svgContent = file_exists($svgPath) ? file_get_contents($svgPath) : ''; @endphp
{!! str_replace(' {{ $paymentMethod->payments_name }}
@endforeach
@push('css') @endpush