<div class="row padding-1 p-1">
    <div class="col-md-12">

        <div class="form-group mb-2 mb20">
            <label for="inventario" class="form-label"><?php echo e(__('Número de Inventario')); ?></label><span class="text-danger">*</span>
            <input type="text" name="inventario" class="form-control <?php $__errorArgs = ['inventario'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                value="<?php echo e($biene->inventario); ?>" id="inventario" placeholder="inventario" readonly>
            <?php echo $errors->first('inventario', '<div class="invalid-feedback" role="alert"><strong>:message</strong></div>'); ?>

        </div>
        <div class="form-group mb-2 mb20">
            <label for="marca" class="form-label"><?php echo e(__('Marca')); ?></label><span class="text-danger">*</span>
            <input type="text" name="marca" class="form-control <?php $__errorArgs = ['marca'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                value="<?php echo e(old('marca', $biene?->marca)); ?>" id="marca" placeholder="Marca">
            <?php echo $errors->first('marca', '<div class="invalid-feedback" role="alert"><strong>:message</strong></div>'); ?>

        </div>
        <div class="form-group mb-2 mb20">
            <label for="modelo" class="form-label"><?php echo e(__('Modelo')); ?></label><span class="text-danger">*</span>
            <input type="text" name="modelo" class="form-control <?php $__errorArgs = ['modelo'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                value="<?php echo e(old('modelo', $biene?->modelo)); ?>" id="modelo" placeholder="Modelo">
            <?php echo $errors->first('modelo', '<div class="invalid-feedback" role="alert"><strong>:message</strong></div>'); ?>

        </div>
        <div class="form-group mb-2 mb20">
            <label for="serie" class="form-label"><?php echo e(__('Número de Serie')); ?></label><span class="text-danger">*</span>
            <input type="text" name="serie" class="form-control <?php $__errorArgs = ['serie'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                value="<?php echo e(old('serie', $biene?->serie)); ?>" id="serie" placeholder="Serie">
            <?php echo $errors->first('serie', '<div class="invalid-feedback" role="alert"><strong>:message</strong></div>'); ?>

        </div>
        <div class="form-group mb-2 mb20">
            <label for="bien" class="form-label"><?php echo e(__('Bien')); ?></label><span class="text-danger">*</span>
            <input type="text" name="bien" class="form-control <?php $__errorArgs = ['bien'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                value="<?php echo e(old('bien', $biene?->bien)); ?>" id="bien" placeholder="Bien">
            <?php echo $errors->first('bien', '<div class="invalid-feedback" role="alert"><strong>:message</strong></div>'); ?>

        </div>



        <div class="form-group mb-2 mb20">
            <label for="situacion_id" class="form-label"><?php echo e(__('Situación')); ?></label><span class="text-danger">*</span>
            <select name="situacion_id" id="situacion_id"
                class="form-control<?php echo e($errors->has('situacion_id') ? ' is-valid' : ''); ?>">
                <option value=""><?php echo e(__('Selecciona una situación')); ?></option>
                <?php $__currentLoopData = $situacion; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $id => $nombre): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <option value="<?php echo e($id); ?>" <?php echo e($biene->situacion_id == $id ? 'selected' : ''); ?>>
                        <?php echo e($nombre); ?></option>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </select>
            <?php if($errors->has('situacion_id')): ?>
                <div class="invalid-feedback">
                    <?php echo e($errors->first('situacion_id')); ?>

                </div>
            <?php endif; ?>
            <?php echo $errors->first('situacion_id', '<div class="invalid-feedback" role="alert"><strong>:message</strong></div>'); ?>

        </div>

        <div class="form-group mb-2 mb20">
            <label for="conservacion_id" class="form-label"><?php echo e(__('Conservación')); ?></label><span class="text-danger">*</span>
            <select name="conservacion_id" id="conservacion_id"
                class="form-control<?php echo e($errors->has('conservacion_id') ? ' is-valid' : ''); ?>">
                <option value=""><?php echo e(__('Selecciona una conservación')); ?></option>
                <?php $__currentLoopData = $conservacion; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $id => $nombre): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <option value="<?php echo e($id); ?>" <?php echo e($biene->conservacion_id == $id ? 'selected' : ''); ?>>
                        <?php echo e($nombre); ?></option>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </select>
            <?php if($errors->has('conservacion_id')): ?>
                <div class="invalid-feedback">
                    <?php echo e($errors->first('conservacion_id')); ?>

                </div>
            <?php endif; ?>
            <?php echo $errors->first(
                'conservacion_id',
                '<div class="invalid-feedback" role="alert"><strong>:message</strong></div>',
            ); ?>

        </div>

        <div class="form-group mb-2 mb20">
            <label for="estatus_id" class="form-label"><?php echo e(__('Estatus')); ?></label><span class="text-danger">*</span>
            <select name="estatus_id" id="estatus_id"
                class="form-control<?php echo e($errors->has('estatus_id') ? ' is-valid' : ''); ?>">
                <option value=""><?php echo e(__('Selecciona un estatus')); ?></option>
                <?php $__currentLoopData = $estatus; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $id => $nombre): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <option value="<?php echo e($id); ?>" <?php echo e($biene->estatus_id == $id ? 'selected' : ''); ?>>
                        <?php echo e($nombre); ?></option>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </select>
            <?php if($errors->has('estatus_id')): ?>
                <div class="invalid-feedback">
                    <?php echo e($errors->first('estatus_id')); ?>

                </div>
            <?php endif; ?>
            <?php echo $errors->first('estatus_id', '<div class="invalid-feedback" role="alert"><strong>:message</strong></div>'); ?>

        </div>


        <div class="form-group mb-2 mb20">
            <label for="centro_trabajo_id" class="form-label"><?php echo e(__('Centro de Trabajo')); ?></label><span class="text-danger">*</span>
            <select name="centro_trabajo_id" id="centro_trabajo_id"
                class="form-control <?php $__errorArgs = ['centro_trabajo_id'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>">
                <option value=""><?php echo e(__('Selecciona un centro de trabajo')); ?></option>
                <?php $__currentLoopData = $dependencias; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $dependencia): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <?php if($dependencia->centrosTrabajos->isNotEmpty()): ?>
                        <optgroup label="<?php echo e($dependencia->nombre); ?>">
                            <?php $__currentLoopData = $dependencia->centrosTrabajos; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $centroTrabajo): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <option value="<?php echo e($centroTrabajo->id); ?>"
                                    <?php if($biene->centro_trabajo_id == $centroTrabajo->id): ?> selected <?php endif; ?>>
                                    <?php echo e($centroTrabajo->nombre); ?>

                                </option>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </optgroup>
                    <?php endif; ?>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </select>
            <?php $__errorArgs = ['centro_trabajo_id'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                <div class="invalid-feedback"><?php echo e($message); ?></div>
            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
        </div>




        <div class="form-group mb-2 mb20">
            <label for="factura_id" class="form-label"><?php echo e(__('Factura')); ?></label><span class="text-danger">*</span>
            <select name="factura_id" id="factura_id" class="form-control <?php $__errorArgs = ['factura_id'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>">
                <option value=""><?php echo e(__('Selecciona una factura')); ?></option>
                <?php $__currentLoopData = $proveedores; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $proveedor): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <?php if($proveedor->facturas->isNotEmpty()): ?>
                        <optgroup label="<?php echo e($proveedor->nombre); ?>">
                            <?php $__currentLoopData = $proveedor->facturas; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $factura): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <option value="<?php echo e($factura->id); ?>" <?php if($biene->factura_id == $factura->id): ?> selected <?php endif; ?>>
                                    <?php echo e($factura->factura); ?>

                                </option>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </optgroup>
                    <?php endif; ?>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </select>
            <?php $__errorArgs = ['factura_id'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                <div class="invalid-feedback"><?php echo e($message); ?></div>
            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
        </div>
        <div class="form-group mb-2 mb20">
            <label for="tipoBien_id" class="form-label"><?php echo e(__('Tipo de Bien')); ?></label><span class="text-danger">*</span>
            <select name="tipoBien_id" id="tipoBien_id" class="form-control <?php $__errorArgs = ['tipoBien_id'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>">
                <option value=""><?php echo e(__('Selecciona un tipo de bien')); ?></option>
                <?php $__currentLoopData = $tipoBien; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $id => $tipo): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <option value="<?php echo e($id); ?>" <?php if(old('tipoBien_id', $biene->tipoBien_id) == $id): ?> selected <?php endif; ?>>
                        <?php echo e($tipo); ?>

                    </option>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </select>
            <?php $__errorArgs = ['tipoBien_id'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                <div class="invalid-feedback"><?php echo e($message); ?></div>
            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
        </div>

        <div class="form-group mb-2 mb20">
            <label for="categoria_partida_id" class="form-label"><?php echo e(__('Categoría de Partida')); ?></label><span class="text-danger">*</span>
            <select name="categoria_partida_id" id="categoria_partida_id"
                class="form-control <?php $__errorArgs = ['categoria_partida_id'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>">
                <option value=""><?php echo e(__('Selecciona una categoría de partida')); ?></option>
                <?php $__currentLoopData = $partidas; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $partida): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <?php if($partida->categorias_partidas->isNotEmpty()): ?>
                        <optgroup label="<?php echo e($partida->noPartida); ?> - <?php echo e($partida->partida); ?>">
                            <?php $__currentLoopData = $partida->categorias_partidas; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $categoria_partida): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <option value="<?php echo e($categoria_partida->id); ?>"
                                    <?php if($biene->categoria_partida_id == $categoria_partida->id): ?> selected <?php endif; ?>>
                                    <?php echo e($categoria_partida->descripcion); ?> - <?php echo e($categoria_partida->activo); ?> 
                                </option>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </optgroup>
                    <?php endif; ?>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </select>
            <?php $__errorArgs = ['categoria_partida_id'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                <div class="invalid-feedback"><?php echo e($message); ?></div>
            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
        </div>


        <div class="form-group mb-2 mb20">
            <label for="descripcion" class="form-label"><?php echo e(__('Descripción')); ?></label><span class="text-danger">*</span>
            <textarea name="descripcion" class="form-control <?php $__errorArgs = ['descripcion'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" id="descripcion"
                rows="4" placeholder="Descripción"><?php echo e(old('descripcion', $biene?->descripcion)); ?></textarea>
            <?php echo $errors->first('descripcion', '<div class="invalid-feedback" role="alert"><strong>:message</strong></div>'); ?>

        </div>
        <div class="form-group mb-2 mb20">
            <label for="observaciones" class="form-label"><?php echo e(__('Observaciones')); ?></label>
            <textarea name="observaciones" class="form-control <?php $__errorArgs = ['observaciones'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" id="observaciones"
                rows="4" placeholder="Observaciones"><?php echo e(old('observaciones', $biene?->observaciones)); ?></textarea>
            <?php echo $errors->first(
                'observaciones',
                '<div class="invalid-feedback" role="alert"><strong>:message</strong></div>',
            ); ?>

        </div>


        <div class="form-group mb-2 mb20">
            <label for="costo" class="form-label"><?php echo e(__('Costo')); ?></label><span class="text-danger">*</span>
            <input type="number" name="costo" class="form-control <?php $__errorArgs = ['costo'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                value="<?php echo e(old('costo', $biene?->costo)); ?>" id="costo" step="0.01" placeholder="12345.67">
            <?php echo $errors->first('costo', '<div class="invalid-feedback" role="alert"><strong>:message</strong></div>'); ?>

        </div>
        



    </div>



    <div class="col-md-12 mt20 mt-2">
        <button type="submit" class="btn btn-primary"><?php echo e(__('Guardar')); ?></button>
    </div>
<?php /**PATH C:\xampp\htdocs\laravel10\inven\resources\views/biene/form.blade.php ENDPATH**/ ?>