{{-- 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