<?php
    $options = $attribute->lookup_type
        ? app('Webkul\Attribute\Repositories\AttributeRepository')->getLookUpOptions($attribute->lookup_type)
        : $attribute->options()->orderBy('sort_order')->get();

    $selectedOption = old($attribute->code) ?: $value;
?>

<v-field
    type="select"
    id="<?php echo e($attribute->code); ?>"
    name="<?php echo e($attribute->code); ?>[]"
    rules="<?php echo e($validations); ?>"
    label="<?php echo e($attribute->name); ?>"
    placeholder="<?php echo e($attribute->name); ?>"
    multiple
>
    <select
        name="<?php echo e($attribute->code); ?>[]"
        class="flex min-h-[39px] w-full rounded-md border px-3 py-2 text-sm text-gray-600 transition-all hover:border-gray-400 focus:border-gray-400 dark:border-gray-800 dark:bg-gray-900 dark:text-gray-300 dark:hover:border-gray-400 dark:focus:border-gray-400"
        multiple
    >
        <?php $__currentLoopData = $options; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $option): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <option
                value="<?php echo e($option->id); ?>"
                <?php echo e(in_array($option->id, is_array($selectedOption) ? $selectedOption : explode(',', $selectedOption)) ? 'selected' : ''); ?>

            >
                <?php echo e($option->name); ?>

            </option>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </select>
</v-field><?php /**PATH /var/www/html/packages/Webkul/Admin/src/Resources/views/components/attributes/edit/multiselect.blade.php ENDPATH**/ ?>