<div class="callout callout-success">
    <?php if($mode!="create"): ?>
        <div class="form-group">
            <div class="col-md-2">
                <div class="input-group mb-3 ">
                    <div class="input-group-prepend ">
                        <span class="input-group-text bg-success">N°</span>
                    </div>
                    <input readonly="readonly" type="text" class="form-control" name="id" id="id"
                                value='<?php echo str_pad($beneficiaire->id, 6, "0", STR_PAD_LEFT); ?>' />
                </div>
            </div>
        </div>
    <?php endif; ?>

    <div class="form-group row">
        <div class="col-md-5">
                <?php echo html()->label( 'Nom','nom'); ?>

                <?php echo html()->text('nom', null)
                    ->placeholder('Nom')
                    ->attributes([($mode=="show"?'disabled':''), 'class' => 'form-control text-uppercase']); ?>

        </div>
        <div class="col-md-5">
                <?php echo html()->label( 'Prenom','prenom'); ?>

                <?php echo html()->text('prenom', null)
                    ->placeholder('Prénom')
                    ->attributes([($mode=="show"?'disabled':''), 'class' => 'form-control']); ?>

        </div>
        <div class="col-md-2">
            <?php echo html()->label( 'Civilité','civilite'); ?>

            <?php echo html()->select('civilite',['Mr'=>'Monsieur','Mme' => 'Madame', 'Mll' => 'Mademoiselle'],null)
                    ->placeholder('A définir')
                    ->attributes([($mode=="show"?'disabled':''),'class' => 'form-control']); ?>

        </div>
    </div>

    <div class="form-group row">
        <div class="col-md-2">
            <?php echo html()->label( 'Date de naissance','datenaiss'); ?>

                <div class='input-group date' id='datepicker_datenaiss'>
                    <?php echo html()->text('datenaiss', null)
                        ->placeholder('Date de naissance')
                        ->attributes([($mode=="show"?'disabled':''),'class' => 'form-control']); ?>

                    <span class='input-group-addon'><span class='glyphicon glyphicon-calendar'></span></span>

                </div>
        </div>
        <div class="col-md-4">
            <?php echo html()->label( 'Lieu de naissance','lieunaiss'); ?>

            <?php echo html()->text('lieunaiss', null)
                ->placeholder('Lieu de naissance')
                ->attributes([($mode=="show"?'disabled':''), 'class' => 'form-control text-uppercase']); ?>

        </div>
    </div>

    <div class='form-group row'>
        <div class="col-md-3">
            <?php echo html()->label( 'Statut','statut'); ?>

            <?php echo html()->select('statut',$liste_benefstatut,null)
                    ->placeholder('A définir')
                    ->attributes([($mode=="show"?'disabled':''),'class' => 'form-control']); ?>

        </div>
        <div class='col-md-2'>
            <?php echo html()->label( 'Certificat de vie','n_all'); ?>

            <?php echo html()->text('n_all', null)
                ->placeholder('Certificat de vie')
                ->attributes([($mode=="show"?'disabled':''),'class' => 'form-control']); ?>

        </div>
        <div class="col-md-2">
            <?php echo html()->label( 'date de décès','date_deces'); ?>

            <div class='input-group date' id='datepicker_date_deces'>
                    <?php echo html()->text('date_deces', null)
                        ->placeholder('Date de décès')
                        ->attributes([($mode=="show"?'disabled':''),'class' => 'form-control']); ?>


                <span class='input-group-addon'><span class='glyphicon glyphicon-calendar'></span></span>

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

    <div class='form-group row'>
        <?php if($mode!="create"): ?>
        <div class="col-md-3">
            <?php echo html()->label( 'Date de création','created_at'); ?>

            <?php echo html()->text('created_at', null)->attributes(['readonly'=>'true','class' => 'form-control']); ?>

        </div>
        <?php endif; ?>

        <div class="col-md-2">
            <?php echo html()->label( 'Date 1ère immat.','date_pi'); ?>

                <div class='input-group date' id='datepicker_datepi'>
                    <?php echo html()->text('date_pi', null)
                        ->placeholder('Date de première immatriculation')
                        ->attributes([($mode=="show"?'disabled':''),'class' => 'form-control']); ?>

                    <span class='input-group-addon'><span class='glyphicon glyphicon-calendar'></span></span>


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

    <div class="form-group row" >
        <div class='col-md-4 '>
            <?php echo html()->label( 'Verrou','verrou'); ?>

            <?php echo html()->checkbox('verrou', null,1)->attributes([($mode=="show"?'disabled':''),'class' => '']); ?>

        </div>
    </div>

    <div class='form-group row'>
        <div class="col-md-10" >
        <?php echo html()->label('Observations','obs',); ?>

        <?php echo html()->textarea('obs', null)->attributes([($mode=="show"?'disabled':''), 'class' => 'form-control', 'rows'=>'3']); ?>

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

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