@php $availableMethods = collect($paymentMethods)->filter(function($paymentMethod) use ($agent) { 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
{{ count($availableMethods) > 1 ? __('lang.paymentMethod') : __('lang.payment')}}
@if($account->accounts_multi_payments == '1') @foreach($order->orders_payments as $key => $order_payment) @if($order_payment->orders_payments_status != 'pending' || in_array($order_payment->orders_payments_slug,['cash','bank_transfer']) ) @break @endif @endforeach @if($hasPayments) @endif @endif
@if(count($availableMethods) > 1)
{{$account->accounts_multi_payments != '1' ? __('lang.paymentsDesc') : __('lang.multiPaymentsDesc') }}
@endif
@foreach ($availableMethods as $paymentMethod) @php $isActive = 'is_active' ; if($paymentMethod->payments_slug == 'points'){ if((isset($customer_points_value) && $customer_points_value < $cart->carts_final_cost )|| $cart->coupons_code ){ $isActive = 'not_active' ; } } if($paymentMethod->payments_slug == 'wallet'){ if(isset($customers_wallet) && $customers_wallet < $cart->carts_final_cost ){ $isActive = 'not_active' ; } } if($paymentMethod->payments_slug == 'store_credit'){ if((isset($customers_store_credit) && $customers_store_credit < $cart->carts_final_cost )|| $cart->coupons_code ){ $isActive = 'not_active' ; } } @endphp
{{-- @include('cart.components.payment-method-image',['payment_slug'=>$paymentMethod->payments_slug]) --}} @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 }}
@if(isset($order->orders_payments)) @foreach($order->orders_payments as $key => $order_payment) @if($order_payment->orders_payments_slug == $paymentMethod->payments_slug ) @if($order_payment->orders_payments_status != 'pending' || in_array($order_payment->orders_payments_slug , ['cash','bank_transfer'])) @endif @endif @endforeach @endif

@if($paymentMethod->payments_slug == 'points')
{{ __('lang.YourPointsBalance')}} : @include('components.currency',['price'=>$customer_points_value])
@elseif($paymentMethod->payments_slug == 'wallet')
{{ __('lang.YourWalletBalance')}} : @include('components.currency',['price'=>$customers_wallet])
@elseif($paymentMethod->payments_slug == 'store_credit')
{{ __('lang.YourStoreCreditBalance')}} : @include('components.currency',['price'=>$customers_store_credit])
@endif
@if(!in_array($paymentMethod->payments_slug , ['points','wallet','store_credit']) || ( $paymentMethod->payments_slug == 'points' && $customer_points_value > 0) || ($paymentMethod->payments_slug == 'wallet' && $customers_wallet > 0) || ($paymentMethod->payments_slug == 'store_credit' && $customers_store_credit > 0)) @if($paymentMethod->payments_slug == 'bank_transfer')

{{ __('lang.dragDropReceipt') }}

{{ __('lang.supportedFormats') }}

Preview
@endif
accounts_multi_payments != '1' ? 'disabled' : ''}}>
@include('components.currency',['price'=>''])
@endif
@endforeach
@push('css') @endpush @push('js') @endpush