<div>
    <?php $__env->startSection('title', $pageTitle); ?>

    <div class="col">
        <form wire:submit="save">
            <!-- Card -->
            <div class="card border-0 scroll-mt-3" id="basicInformationSection">
                <div class="card-header">
                    <h2 class="h3 mb-0 text-center"><?php echo e($pageTitle); ?></h2>
                </div>

                <div class="card-body row mb-4">
                    
                    <div class="col-md-12 mb-4">
                        <label for="nombre" class="form-label">Nombre</label>
                        <input class="form-control" type="text" id="nombre" name="nombre" wire:model="form.nombre"
                            placeholder="Ingrese el nombre del plan" required>
                        <small class="text-danger">
                            <!--[if BLOCK]><![endif]--><?php $__errorArgs = ['form.nombre'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            <?php echo e($message); ?>

                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?><!--[if ENDBLOCK]><![endif]-->
                        </small>
                    </div>
                    
                    <div class="col-md-4 mb-4">
                        <label for="costo" class="form-label">Costo</label>
                        <input class="form-control" type="number" id="costo" name="costo" wire:model="form.costo"
                            placeholder="Ingrese el costo del plan" min="0" step="0.01" required>
                        <small class="text-danger">
                            <!--[if BLOCK]><![endif]--><?php $__errorArgs = ['form.costo'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            <?php echo e($message); ?>

                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?><!--[if ENDBLOCK]><![endif]-->
                        </small>

                    </div>
                    
                    <div class="col-md-4 mb-4">
                        <label for="precio" class="form-label">Precio</label>
                        <input class="form-control" type="number" id="precio" name="precio" wire:model="form.precio"
                            placeholder="Ingrese el precio del plan" min="0" step="0.01" required>
                        <small class="text-danger">
                            <!--[if BLOCK]><![endif]--><?php $__errorArgs = ['form.precio'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            <?php echo e($message); ?>

                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?><!--[if ENDBLOCK]><![endif]-->
                        </small>
                    </div>

                    
                    <div class="col-md-4 mb-4 col-sm-6 col-lg-4">
                        <label for="proveedor_id" class="form-label">Proveedor</label>

                        <select class="form-select" name="proveedor_id" id="proveedor_id"
                            wire:model.live="form.proveedor_id" required>
                            <option value="" selected>Seleccione una opcion</option>
                            <!--[if BLOCK]><![endif]--><?php $__currentLoopData = $proveedores; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $proveedor): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <option value="<?php echo e($proveedor->id); ?>">
                                <?php echo e($proveedor->id.'-'.$proveedor->empresa->razon); ?>

                            </option>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><!--[if ENDBLOCK]><![endif]-->
                        </select>
                        <small class="text-danger">
                            <!--[if BLOCK]><![endif]--><?php $__errorArgs = ['form.proveedor_id'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            <?php echo e($message); ?>

                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?><!--[if ENDBLOCK]><![endif]-->
                        </small>
                    </div>


                    <div class="d-flex justify-content-end gap-2">
                        <!-- Button -->
                        <!--[if BLOCK]><![endif]--><?php if($uuid): ?>
                        <button type="button" wire:click="resetForm" class="btn btn-danger">Reiniciar</button>
                        <?php else: ?>
                        <button type="button" wire:click="cleanForm" class="btn btn-danger">Limpiar</button>
                        <?php endif; ?><!--[if ENDBLOCK]><![endif]-->
                        <button id="save_btn" type="submit" class="btn btn-primary"><?php echo e(__('Save')); ?></button>
                    </div>
                </div>

            </div>

        </form>

    </div>

</div>

<?php /**PATH /var/www/vhosts/cloudsatllc.com/portal.cloudsatllc.com/resources/views/livewire/plan/plan-form-component.blade.php ENDPATH**/ ?>