

    <div class="callout callout-danger">
        <div class="form-group row">
            <div class="col-md-6">
                <?php echo html()->label( 'Conjoint','nom_conjoint'); ?>

                <?php echo html()->hidden('conjoint', null)->attributes(['id' => 'conjoint']); ?>


                <div class="input-group ">
                    <div class="input-group-prepend">
                        <span class="input-group-text"  name="conjoint_addon" id='conjoint_addon'><?php echo isset($beneficiaire)?str_pad($beneficiaire->conjoint, 6, "0", STR_PAD_LEFT):''; ?></span>
                    </div>
                    <?php echo html()->text('nom_conjoint', isset($beneficiaire)?$beneficiaire->nom_conjoint:'')
                        ->placeholder("Conjoint")
                        ->attributes([($mode=="show"?'disabled':''), 'id'=>'nom_conjoint','class' => 'form-control']); ?>

                </div>
            </div>
        </div>

        <div class="form-group row">
            <div class='col-md-2'>
                <?php echo html()->label( "Nbr d'enfants",'nb_enf'); ?>

                <?php echo html()->text('nb_enf', null)->placeholder("Nombre d'enfants")->attributes([($mode=="show"?'disabled':''), 'class' => 'text-right form-control']); ?>

            </div>

            <div class='col-md-2'>
                <?php echo html()->label( "Nbr d'enfants total",'nb_enf_tot'); ?>

                <?php echo html()->text('nb_enf_tot', null)->placeholder("Nombre d'enfants total")->attributes([($mode=="show"?'disabled':''), 'class' => 'text-right form-control']); ?>

            </div>
        </div>

        <?php if(isset($beneficiaire)): ?>
            <div class="form-group row">
                <div class="col-xs-12" >
                    <h4>Enfants</h4>
                    <table id="_table_famille" class="table table-condensed table-striped table-bordered" width="100%" >
                        <thead>
                            <tr>
                                <th width='1%'>Id</th>
                                <th width='20%'>Nom</th>
                                <th width='10%'>Prenom</th>
                                <th width='5%'>Date&nbsp;de&nbsp;naissance</th>
                                <th width='5%'>Age</th>
                                <th width='1%'>Sexe</th>
                                <th width='20%'>Certificat</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php $__currentLoopData = $enfants; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $enfant): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <tr>
                                <td>
                                    <a href="<?php echo url('enfants_show_avec_benef/'.$enfant->id.'/'.$beneficiaire->id); ?>"
                                        style="text-decoration:none"  class="btn btn-sm bg-info box_enfant fancybox.iframe" >
                                        <?php echo str_pad($enfant->id, 6, "0", STR_PAD_LEFT); ?>

                                    </a>
                                </td>
                                <td><?php echo $enfant->nom; ?></td>
                                <td nowrap><?php echo $enfant->prenom; ?></td>
                                <td align="center"><?php echo $enfant->datenais; ?></td>
                                <td align="center"><?php echo $enfant->Age; ?>&nbsp;ans</td>
                                <td align="center"><?php echo $enfant->sexe; ?></td>
                                <td align="center"><?php echo $enfant->certif; ?></td>
                            </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </tbody>
                    </table>
                </div>
            </div>
            <?php if(($mode=="show")): ?>
                <?php if($user->can("ENF_AJO") || $user->HasRole("ADMINISTRATEUR")): ?>
                    <div class="form-group row">
                        <a href="<?php echo url('enfants_create_avec_benef/'.$beneficiaire->id); ?>" class="box_enfant fancybox.iframe">
                            <input type="button" class="btn btn-success" value="Ajouter un enfant" />
                        </a>
                    </div>
                <?php endif; ?>
            <?php endif; ?>
        <?php endif; ?>
    </div>


<?php /**PATH C:\xampp\htdocs\SYSINFO\cpswf\sipre2\resources\views/tiers/beneficiaires/rows_famille.blade.php ENDPATH**/ ?>