payments_id }})" class="flex-grow-1">
{{-- @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('
@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')
@endif
@endif