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

@php $storesQuery = \App\Models\WhatsappStore::where('tenant_id', getLogInTenantId()); if (\isOrganisationUser()) { $storesQuery->whereHas('assignedUser', function ($q) { $q->where('users.id', getLogInUserId()); }); } $stores = $storesQuery->pluck('store_name', 'id')->toArray(); @endphp
{{ Form::select('store', $stores, null, [ 'class' => 'form-control form-select', 'data-control' => 'select2', 'placeholder' => __('messages.whatsapp_stores.select_store_name'), 'id' => 'wpProductOrderFilter', 'wire:ignore', ]) }}