{{__('messages.common.filter')}}

@php $productType = \App\Models\Product::PAYMENT_METHOD; $statusTypes = \App\Models\Product::STATUS_ARR; $filteredPaymentTypes = array_filter($productType, function($key) { if ($key === \App\Models\Product::SELECT_PAYMENT_GATEWAY) { return false; } if ($key === \App\Models\Product::MERCADOPAGO && !moduleExists('MercadoPago')) { return false; } return true; }, ARRAY_FILTER_USE_KEY); $combinedOptions = ['' => __('messages.payment_type')]; foreach(getTranslatedData($statusTypes) as $key => $value) { $combinedOptions['status_' . $key] = $value; } foreach(getTranslatedData($filteredPaymentTypes) as $key => $value) { if($key != '') { $combinedOptions[$key] = $value; } } @endphp
{{ Form::select('type', $combinedOptions, null,['class' => 'form-control form-select','data-control'=>"select2" ,'id' => 'productPaymentType', 'wire:ignore']) }}