<div>

    <div class="max-w-7xl mx-auto sm:px-6 lg:px-8">
        <div class="muduleTitle">
            <h1><?php echo e(__('Especificaciones')); ?></h1>
        </div>
        <div class="inputTitle">
            <input type="text" class="inputSearch" wire:model="search">
            <button class="btn " wire:click="$toggle('imputActive')"><i class="fa fa-plus"></i>Añadir Especificaciones</button>
            <!-- <button class="btn " wire:click="$emit('openModal', 'create-unit')"><i class="fa fa-plus"></i>Añadir Insumo</button> -->
        </div>
    </div>
    <div class="py-12">
        <div class="max-w-7xl mx-auto sm:px-6 lg:px-8">
        <?php if($imputActive or $updateMode): ?>
            <div class="flex w-full justify-between">
                <div class="dataBox dataBox--top">
                    <div class="rowBox">
                        <div class="labelBox">
                            Nombre
                        </div>
                        <div class="inputBox">
                            <input type="text" placeholder="Nombre" class="form-control" wire:model.defer="name"
                            style="margin-right:5px;">
                            <input type="hidden" wire:model.defer="unit_id">
                        </div>
                    </div>
                    <div class="rowBox">
                        <div class="labelBox">
                            Descripcion
                        </div>
                        <div class="inputBox">
                            <input type="text" placeholder="Detalle" class="form-control" wire:model.defer="description"
                            style="margin-right:5px;">
                        </div>
                    </div>

                    <div class="rowBox">
                        <div class="labelBox--full">
                            <button class="btn" wire:click="save">
                                <i class="fa fa-save"></i>Guardar
                            </button>
                            <button class="btn" wire:click="resetInput">
                                <i class="fa fa-trash"></i>Cancelar
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        <?php else: ?>
            <div class="flex w-full">
                <table class="quamaqTable">
                    <thead>

                        <th>Nombre</th>
                        <th>Descripcion</th>
                        <th></th>
                    </thead>
                    <tbody>
                        <?php $__currentLoopData = $data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $units): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <tr>
                            <td><?php echo e($units->name); ?></td>
                            <td><?php echo e($units->description); ?></td>
                            <td>
                                <img src="<?php echo e(asset('/storage/images/edit.jpg')); ?>" wire:click="edit(<?php echo e($units->id); ?>)">
                                <img src="<?php echo e(asset('/storage/images/trash.jpg')); ?>" wire:click="destroy(<?php echo e($units->id); ?>)">
                            </td>
                        </tr>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </tbody>
                </table>
            </div>

            <!-- <div class="bg-white dark:bg-gray-800 overflow-hidden shadow-xl sm:rounded-lg">
                <?php if (isset($component)) { $__componentOriginal71c6471fa76ce19017edc287b6f4508c = $component; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.welcome','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('welcome'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal71c6471fa76ce19017edc287b6f4508c)): ?>
<?php $component = $__componentOriginal71c6471fa76ce19017edc287b6f4508c; ?>
<?php unset($__componentOriginal71c6471fa76ce19017edc287b6f4508c); ?>
<?php endif; ?>
            </div> -->
        <?php endif; ?>
        </div>

    </div>
</div><?php /**PATH C:\laragon\www\quamaq\resources\views/livewire/units.blade.php ENDPATH**/ ?>