<?php $__env->startSection('content'); ?>
<!-- Breadcrumb -->
<nav class="hk-breadcrumb" aria-label="breadcrumb">
    <ol class="breadcrumb breadcrumb-light bg-transparent">
        <li class="breadcrumb-item" aria-current="page"><a href="<?php echo e(route('admin.funcionarios.index')); ?>">Funcionários</a></li>
        <li class="breadcrumb-item" aria-current="page"><a href="<?php echo e(route('admin.funcionarios.edit', ['funcionario' => $funcionario])); ?>"><?php echo e($funcionario->nome); ?></a></li>
        <li class="breadcrumb-item" aria-current="page"><a href="<?php echo e(route('admin.funcionarios.dependentes.index', ['funcionario' => $funcionario])); ?>">Dependentes</a></li>
        <li class="breadcrumb-item" aria-current="page"><a href="<?php echo e(route('admin.funcionarios.dependentes.edit', ['funcionario' => $funcionario, 'dependente' => $dependente])); ?>">Editar</a></li>
        <li class="breadcrumb-item" aria-current="page"><a href="<?php echo e(route('admin.funcionarios.dependentes.convenios.index', ['funcionario' => $funcionario, 'dependente' => $dependente])); ?>">Convênios</a></li>
        <li class="breadcrumb-item active" aria-current="page">Incluir</li>
    </ol>
</nav>
<!-- /Breadcrumb -->
<div class="container">
    <!-- Title -->
    <div class="hk-pg-header">
        <h4 class="hk-pg-title"><span class="pg-title-icon"><span class="feather-icon"><i data-feather="align-left"></i></span></span>
            Incluir convênio
        </h4>
    </div>
    <!-- /Title -->
    <div class="row">
        <div class="col-xl-12">
            <section class="hk-sec-wrapper">
                <form action="<?php echo e(route('admin.funcionarios.dependentes.convenios.store', ['funcionario' => $funcionario, 'dependente' => $dependente])); ?>" method="post">
                    <?php echo csrf_field(); ?>
                    <?php $__env->startComponent('components.alerts'); ?>
                    <?php echo $__env->renderComponent(); ?>

                    <div class="form-row">
                        <div class="form-group col-4">
                            <label for="convenio_id">Convênio *</label>
                            <select name="convenio_id" required id="select-convenio" class="form-control convenio <?php $__errorArgs = ['convenio'];
$__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); ?>">
                                <?php $__currentLoopData = $convenios; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $convenio): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <option value="<?php echo e($convenio->id); ?>" <?php echo e(old('convenio_id') == $convenio->id ? 'selected' : ''); ?>><?php echo e($convenio->nome); ?></option>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </select>
                        </div>
                    </div>

                    <hr>
                    <?php $__env->startComponent('components.button', [
                    'icon' => 'save',
                    'label' => 'Salvar',
                    'class' => 'btn-primary'
                    ]); ?>
                    <?php echo $__env->renderComponent(); ?>
                    <?php $__env->startComponent('components.button', [
                    'route' => 'admin.funcionarios.dependentes.convenios.index',
                    'routeParams' => ['funcionario' => $funcionario, 'dependente' => $dependente],
                    'icon' => 'arrow-left',
                    'label' => 'Voltar',
                    'class' => 'btn-secondary'
                    ]); ?>
                    <?php echo $__env->renderComponent(); ?>
                </form>
            </section>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/gabriel/repos/sindserv/resources/views/admin/funcionarios/convenios/dependentes/create.blade.php ENDPATH**/ ?>