<?php $__env->startSection('edit'); ?>

<div class="pagetitle">

    <div class="row">

        <h1 class="col">Modifications</h1>

        <nav>
            <ol class="breadcrumb">
                <li class="breadcrumb-item"><a href="<?php echo e(route('admins.index')); ?>">liste des policiers</a></li>
                <li class="breadcrumb-item">modification</li>
                <h1 class="col-11 text-end">
                    <a href="<?php echo e(route('admins.index')); ?>">
                        <button type="button" class="btn btn-success">Retour</button>
                    </a>
                </h1>
            </ol>

        </nav>

    </div>

    <nav>
        <ol class="breadcrumb">
            <li class="breadcrumb-item"><a href="#"></a></li>
        </ol>
    </nav>
</div><!-- End Page Title -->

<section class="section">
    <div class="row">
        <div class="col-lg-9 " style="margin-left: 80px">
            <div class="card">
                <div class="card-body mt-5">
                    <form action="<?php echo e(route('admins.update', $admin->id)); ?>" method="POST"enctype="multipart/form-data">
                        <?php echo csrf_field(); ?>
                        <?php echo method_field('PUT'); ?>
                        <div class="row">
                            <div class="col-sm-6">
                                <label for="inputNom" class="form-label">Nom</label>
                                <input type="text" value="<?php echo e($admin->nom); ?>" name="nom" class="form-control"
                                    id="inputNom">
                            </div>
                            <div class="col-sm-6">
                                <label for="inputPrenom" class="form-label">Prenoms</label>
                                <input type="text" value="<?php echo e($admin->prenoms); ?>" name="prenoms" class="form-control"
                                    id="inputPrenom">
                            </div>
                        </div>
                        <div class="row mt-3">
                            <div class="col-sm-6">
                                <label for="inputDate" class="form-label"> Date Naissance </label>
                                <input type="text" value="<?php echo e($admin->dateNaissance); ?>" name="dateNaissance"
                                    class="form-control" id="inputDate">
                            </div>
                            <div class="col-sm-6">
                                <label for="inputLieu" class="form-label">Lieu Naissance</label>
                                <input type="text" value="<?php echo e($admin->VilleNaissance); ?>" name="VilleNaissance"
                                    class="form-control" id="inputLieu">
                            </div>
                        </div>
                        <div class="row mt-3">
                            <div class="col-sm-6">
                                <label for="inputSexe" class="form-label">Sexe</label>
                                <select class="form-select"  name="sexe" aria-label="Default select example">
                                    <option class="bg-dark text-white" selected><?php echo e($admin->sexe); ?></option>
                                <?php $__currentLoopData = $sexes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $sexe): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                       <option value="<?php echo e($sexe->nom); ?>"><?php echo e($sexe->nom); ?></option>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                                </select>
                            </div>
                            <div class="col-sm-6">
                                <label for="inputTaille" class="form-label">Taille</label>
                                <input type="text" name="taille" value="<?php echo e($admin->taille); ?>" class="form-control"
                                    id="inputTaille">
                            </div>
                        </div>
                        <div class="row mt-3">
                            <div class="col-sm-6">
                                <label for="inputCouleur" class="form-label">Couleur des Yeux</label>
                                <select class="form-select" name="couleurYeux"
                                 aria-label="Default select example">
                                <option class="bg-dark text-white" selected><?php echo e($admin->couleurYeux); ?></option>
                                    <?php $__currentLoopData = $couleurYeux; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $couleurYeuxs): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <option value="<?php echo e($couleurYeuxs->nom); ?>"><?php echo e($couleurYeuxs->nom); ?></option>

                                     <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </select>
                            </div>
                            <div class="col-sm-6">

                                <label for="inputCouleur" class="form-label">Groupe Sanguin</label>
                                <select class="form-select" name="groupeSanguin"
                                aria-label="Default select example">
                                <option class="bg-dark text-white" selected><?php echo e($admin->groupeSanguin); ?></option>
                                    <?php $__currentLoopData = $groupeSanguin; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $groupeSanguins): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <option value="<?php echo e($groupeSanguins->nom); ?>"><?php echo e($groupeSanguins->nom); ?></option>

                                     <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                                </select>
                            </div>
                        </div>
                        <div class="row mt-3">
                            <div class="col-sm-6">
                                <label for="inputTelephone" class="form-label">Telephone</label>
                                <input type="text" value="<?php echo e($admin->telephone); ?>" name="telephone"
                                    class="form-control" id="inputTelephone" required>
                            </div>
                            <div class="col-sm-6">
                                <label for="inputEmail" class="form-label">Email</label>
                                <input type="email" value="<?php echo e($admin->email); ?>" name="email"
                                    class="form-control" id="inputEmail" required>
                            </div>
                        </div>
                        <div class="row mt-3">
                            <div class="col-sm-6">
                                <label for="inputSigne" class="form-label">Signe Particulier</label>
                                <input type="text" value="<?php echo e($admin->signePart); ?>" name="signePart"
                                    class="form-control" id="inputTaille"required>
                            </div>
                            <div class="col-sm-6">
                                <label for="inputGrade" class="form-label">Grade</label>
                                <input type="text" value="<?php echo e($admin->grade); ?>" name="grade"
                                    class="form-control" id="inputTaille" required>
                            </div>
                        </div>
                        <div class="row mt-3">
                            <div class="col-sm-6">
                                <label for="formMatricule" class="form-label">Matricule</label>
                                <input type="text" class="form-control" value="<?php echo e($admin->matricule); ?>"
                                    name="matricule" id="formMatricule" required>
                            </div>
                            <div class="col-sm-6">
                                <label for="inputCorps" class="form-label">Corps</label>
                                <input type="text" value="<?php echo e($admin->corps); ?>" name="corps"
                                    class="form-control" id="inputCorps" required>
                            </div>
                        </div>
                        <div class="col-sm">
                            <label for="photo" class="form-label">Image</label>
                            <input id="photo" name="photo" type="file" class="form-control" required>
                            <img class="mt-2" src="/img/<?php echo e($admin->photo); ?>" width="300px">
                        </div>

                        <div class="row mt-3">
                            <div class="col-sm-12 text-end">
                                <button class="btn btn-color" type="submit">Modifier</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</section>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.super-Admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/damala/Documents/police/resources/views/super_admin/edit.blade.php ENDPATH**/ ?>