<div>

    <div class="max-w-7xl mx-auto sm:px-6 lg:px-8">
        <div class="muduleTitle">
            <h1><?php echo e(__('Proveedores')); ?></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 Proveedor</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">
                <div class="dataBox">
                    <div class="rowBox">
                        <div class="labelBox">
                            Nombre o Razon Social
                        </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="supplier_id">
                        </div>
                    </div>
                    <div class="rowBox">
                        <div class="labelBox">
                            Nombre fantasia
                        </div>
                        <div class="inputBox">
                            <input type="text" placeholder="Nombre Fantasia" class="form-control" wire:model.defer="fantasyName"
                            style="margin-right:5px;">
                        </div>
                    </div>
                    <div class="rowBox">
                        <div class="labelBox">
                            Provincia
                        </div>
                        <div class="inputBox">
                            <input type="text" placeholder="Provincia" class="form-control" wire:model.defer="province"
                            style="margin-right:5px;">
                        </div>
                    </div>
                    <div class="rowBox">
                        <div class="labelBox">
                            Localidad
                        </div>
                        <div class="inputBox">
                            <input type="text" placeholder="Localidad" class="form-control" wire:model.defer="locate"
                            style="margin-right:5px;">
                        </div>
                    </div>
                    <div class="rowBox">
                        <div class="labelBox">
                            Dirección
                        </div>
                        <div class="inputBox">
                            <input type="text" placeholder="Direccion" class="form-control" wire:model.defer="address"
                            style="margin-right:5px;">
                        </div>
                    </div>
                    <div class="rowBox">
                        <div class="labelBox">
                            Contacto 1
                        </div>
                        <div class="inputBox">
                            <input type="text" placeholder="Contacto" class="form-control" wire:model.defer="contactOne"
                            style="margin-right:5px;">
                        </div>
                    </div>
                    <div class="rowBox">
                        <div class="labelBox">
                            Telefono 1
                        </div>
                        <div class="inputBox">
                            <input type="text" placeholder="Telefono" class="form-control" wire:model.defer="phoneOne"
                            style="margin-right:5px;">
                        </div>
                    </div>
                    <div class="rowBox">
                        <div class="labelBox">
                            Contacto 2
                        </div>
                        <div class="inputBox">
                            <input type="text" placeholder="Contacto" class="form-control" wire:model.defer="contactTwo"
                            style="margin-right:5px;">
                        </div>
                    </div>
                    <div class="rowBox">
                        <div class="labelBox">
                            Telefono 2
                        </div>
                        <div class="inputBox">
                            <input type="text" placeholder="Telefono" class="form-control" wire:model.defer="phoneTwo"
                            style="margin-right:5px;">
                        </div>
                    </div>
                    <div class="rowBox">
                        <div class="labelBox">
                            Email
                        </div>
                        <div class="inputBox">
                            <input type="text" placeholder="email@email.com" class="form-control" wire:model.defer="email"
                            style="margin-right:5px;">
                        </div>
                    </div>
                    <div class="rowBox">
                        <div class="labelBox">
                            Sitio Web
                        </div>
                        <div class="inputBox">
                            <input type="text" placeholder="www.tusitio.com" class="form-control" wire:model.defer="web"
                            style="margin-right:5px;">
                        </div>
                    </div>
                    <div class="rowBox">
                        <div class="labelBox">
                            Cuit
                        </div>
                        <div class="inputBox">
                            <input type="text" placeholder="Cuit o Cuil" class="form-control" wire:model.defer="cuit"
                            style="margin-right:5px;">
                        </div>
                    </div>
                    <div class="rowBox">
                        <div class="labelBox">
                            Condición
                        </div>
                        <div class="inputBox">
                            <input type="text" placeholder="Nombre" class="form-control" wire:model.defer="condition"
                            style="margin-right:5px;">
                        </div>
                    </div>
                </div>
                <div class="dataBox dataBox--top dataBox--marginLeft">
                    <div class="rowBox">
                        <div class="labelBox labelBox--full">
                            Observaciones
                        </div>
                    </div>
                    <div class="rowBox rowBox--big">
                        <textarea wire:model.defer="observations">

                        </textarea>
                    </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/Razón Social</th>
                        <th>Mail</th>
                        <th>Teléfono</th>
                        <th>Localidad</th>
                        <th></th>
                    </thead>
                    <tbody>
                        <?php $__currentLoopData = $data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $supplier): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <tr>
                            <td><?php echo e($supplier->name); ?></td>
                            <td><?php echo e($supplier->email); ?></td>
                            <td><?php echo e($supplier->phoneOne); ?></td>
                            <td><?php echo e($supplier->locate); ?></td>
                            <td>
                                <img src="<?php echo e(asset('/storage/images/edit.jpg')); ?>" wire:click="edit(<?php echo e($supplier->id); ?>)">
                                <img src="<?php echo e(asset('/storage/images/trash.jpg')); ?>" wire:click="destroy(<?php echo e($supplier->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/suppliers.blade.php ENDPATH**/ ?>