<?php $__env->startSection('titulo'); ?>
CLINICA VETERINARIA
<?php $__env->stopSection(); ?>

<?php $__env->startSection("styles"); ?>
<link href="<?php echo e(asset("assets/js/bootstrap-fileinput/css/fileinput.min.css")); ?>" rel="stylesheet" type="text/css"/>
<?php $__env->stopSection(); ?>

<?php $__env->startSection("scriptsPlugins"); ?>
<script src="<?php echo e(asset("assets/js/bootstrap-fileinput/js/fileinput.min.js")); ?>" type="text/javascript"></script>
<script src="<?php echo e(asset("assets/js/bootstrap-fileinput/js/locales/es.js")); ?>" type="text/javascript"></script>
<script src="<?php echo e(asset("assets/js/bootstrap-fileinput/themes/fas/theme.min.js")); ?>" type="text/javascript"></script>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('contenido'); ?>
<div class="row">
    <div class="col-lg-12">
        <?php echo $__env->make('includes.mensaje', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        <?php echo $__env->make('includes.form-error', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        <div class="box box-danger">
            <div class="box-header with-border">
                <h3 class="box-title">Editar <?php echo e($data->prestacion); ?></h3>
                <a href="<?php echo e(route('prestacion')); ?>" class="btn btn-info btn-sm pull-right">Volver al listado</a>
            </div>
            <form action="<?php echo e(route('actualizar_prestacion', $data->id)); ?>" id="form-general" class="form-horizontal" method="POST" autocomplete="off" enctype="multipart/form-data">
                <?php echo csrf_field(); ?> <?php echo method_field("put"); ?>
                <div class="box-body">
                    
                    
<!-- Seleccion multiple de mascota  -->                        
        <div class="form-group">
                <label for="id_mascota" class="col-lg-3 control-label requerido"> Mascota </label>
                <div class="col-lg-8">
                <select name="id_mascota" class="form-control">
                <?php $__currentLoopData = $mascota; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $mascotas): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>  <!-- set de datos que paso a edith -->  
                <option value="<?php echo e($mascotas->id); ?>" 
                <?php if($mascotas->id == $data->id_mascota): ?>
                selected="selected"
                <?php endif; ?>>
                <?php echo e($mascotas->nombre_masc); ?></option>  <!-- SET DE DATOS -->  
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>               
                </select>
                </div>
                </div> 
<!-- Fin seleccion multiple mascota -->
<input type="hidden" name="id_status" id="id_status" class="form-control" value="1" required/>
<!-- Seleccion multiple de Servicio  -->
<div class="form-group">
                <label for="id_servicio" class="col-lg-3 control-label requerido"> Servicio </label>
                <div class="col-lg-8">
                <select name="id_servicio" class="form-control">
                <?php $__currentLoopData = $servicio; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $servicios): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>  <!-- set de datos que paso a edith -->  
                <option value="<?php echo e($servicios->id); ?>" 
                <?php if($servicios->id == $data->id_servicio): ?>
                selected="selected"
                <?php endif; ?>>
                <?php echo e($servicios->nombre_servicio); ?></option>  <!-- SET DE DATOS -->  
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>               
                </select>
                </div>
                </div> 
<!-- Fin seleccion multiple Servicio -->
<div class="form-group">
    <label for="fecha_solic" class="col-lg-3 control-label requerido">Fecha</label>
    <div class="col-lg-8">
    <input type="date" name="fecha_solic" id="fecha_solic" class="form-control" value="<?php echo e(old('fecha_solic', $data->fecha_solic ?? '')); ?>"  required/>
    </div>
</div>
                    
<div class="form-group">
    <label for="hora_solic" class="col-lg-3 control-label requerido">Hora</label>
    <div class="col-lg-8">
    <input type="time" name="hora_solic" id="hora_solic" class="form-control" value="<?php echo e(old('hora_solic', $data->hora_solic ?? '')); ?>" required/>
    </div>
</div>
<!-- Seleccion multiple de profesional  -->
<div class="form-group">
                <label for="id_profesional" class="col-lg-3 control-label requerido"> Servicio </label>
                <div class="col-lg-8">
                <select name="id_profesional" class="form-control">
                <?php $__currentLoopData = $usuarioData; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $usuarioData): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>  <!-- set de datos que paso a edith -->  
                <option value="<?php echo e($usuarioData->id); ?>" 
                <?php if($usuarioData->id == $data->id_profesional): ?>
                selected="selected"
                <?php endif; ?>>
                <?php echo e($usuarioData->nombre); ?></option>  <!-- SET DE DATOS -->  
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>               
                </select>
                </div>
                </div> 
<!-- Fin seleccion multiple Profesional -->
<div class="form-group">
    <label for="motivo_ingreso" class="col-lg-3 control-label requerido">Motivo Ingreso</label>
    <div class="col-lg-8">
    <input type="text" name="motivo_ingreso" id="motivo_ingreso" class="form-control" value="<?php echo e(old('motivo_ingreso', $data->motivo_ingreso ?? '')); ?>" required/>
    </div>
</div>
                    
                    
                </div>
                <div class="box-footer">
                    <div class="col-lg-3"></div>
                    <div class="col-lg-6">
                        <?php echo $__env->make('includes.boton-form-editar', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make("theme.$theme.layout", \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\Laravel\gestion_vacaciones\resources\views/prestacion/editar.blade.php ENDPATH**/ ?>