<?php $__env->startSection('intitule'); ?>
    <h5 class="font-weight-medium text-uppercase mb-0">PROFIL PAGE </h5>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('breadcrumb'); ?>
    <li class="breadcrumb-item active" aria-current="page">Profil page</li>
<?php $__env->stopSection(); ?>

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

<?php $__env->startSection('main'); ?>
    <div class="bg-white p-5" style="min-height: calc(80vh - 60px)">
        <ul class="nav nav-tabs" role="tablist">
            <li class="nav-item">
                <?php if($numero == 1): ?>
                    <a class="nav-link active" data-bs-toggle="tab" href="#home" role="tab" style="font-size: large">
                        <span>Activités</span>
                    </a>
                <?php else: ?>
                    <a class="nav-link" data-bs-toggle="tab" href="#home" role="tab" style="font-size: large">
                        <span>Activités</span>
                    </a>
                <?php endif; ?>
            </li>
            <li class="nav-item">
                <a class="nav-link" data-bs-toggle="tab" href="#profile" role="tab" style="font-size: large">
                    <span>Profile</span>
                </a>
            </li>
            <li class="nav-item">
                <?php if($numero == 0): ?>
                    <a class="nav-link active" data-bs-toggle="tab" href="#messages" role="tab"
                        style="font-size: large">
                        <span>Paramètres</span>
                    </a>
                <?php else: ?>
                    <a class="nav-link" data-bs-toggle="tab" href="#messages" role="tab" style="font-size: large">
                        <span>Paramètres</span>
                    </a>
                <?php endif; ?>
            </li>
            <li class="nav-item">
                <?php if($numero == 2): ?>
                    <a class="nav-link active" data-bs-toggle="tab" href="#password" role="tab"
                        style="font-size: large">
                        <span>Mot de passe</span>
                    </a>
                <?php else: ?>
                    <a class="nav-link" data-bs-toggle="tab" href="#password" role="tab" style="font-size: large">
                        <span>Mot de passe</span>
                    </a>
                <?php endif; ?>
            </li>
        </ul>
        <!-- Tab panes -->
        <div class="tab-content">
            <div class="tab-pane <?php if($numero == 1): ?> show active <?php endif; ?>" id="home" role="tabpanel">
                <div class="p-5">
                    <div class="row justify-content-center">
                        <div class="col-md-8">
                            <div class="card" style="border: solid #cfcfcf 0.07em; box-shadow: -2px 2px 7px #cfcfcf">
                                <div class="card-header bg-white d-flex align-items-center"
                                    style="border-bottom: solid #cfcfcf 0.02em">
                                    <h4 class="card-title text-dark">GestStudent</h4>
                                    <div class="card-actions ms-auto d-flex button-group">
                                        <a class="mb-0 link d-flex align-items-center pe-0" style="color: #cfcfcf;"
                                            data-action="">
                                            <i data-feather="x" class="feather-sm"></i>
                                        </a>
                                    </div>
                                </div>
                                <div class="card-body collapse show text-center">
                                    <?php if(!count($activites)): ?>
                                        <p class="card-text text-danger">Aucune activité...</p>
                                    <?php else: ?>
                                        <table>
                                            <tr>
                                                <th>Adresse</th>
                                                <th>Opération</th>
                                                <th>Date</th>
                                            </tr>
                                            <?php $__currentLoopData = $activites; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $activite): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <tr>
                                                    <th><?php echo e($activite->adresseip); ?></th>
                                                    <th><?php echo e($activite->operation); ?></th>
                                                    <th><?php echo e($activite->dateActivite); ?></th>
                                                </tr>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        </table>
                                    <?php endif; ?>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="tab-pane  p-3" id="profile" role="tabpanel">
                <div class="row m-3" style="border-bottom: solid #cfcfcf 1px">
                    <div class="col-md-3 col-xs-6" style="border-right: solid #cfcfcf 1px">
                        <strong class="prof">Full Name</strong><br />
                        <p class="text-muted"><?php echo e($infoUser->nom); ?> <?php echo e($infoUser->prenom); ?></p>
                    </div>
                    <div class="col-md-3 col-xs-6" style="border-right: solid #cfcfcf 1px">
                        <strong class="prof">Mobile</strong><br />
                        <p class="text-muted"><?php echo e($infoUser->country_code); ?> <?php echo e($infoUser->phone); ?></p>
                    </div>
                    <div class="col-md-3 col-xs-6" style="border-right: solid #cfcfcf 1px">
                        <strong class="prof">Email</strong><br />
                        <p class="text-muted"><?php echo e($infoUser->email); ?></p>
                    </div>
                    <div class="col-md-3 col-xs-6" style="border-right: solid #cfcfcf 1px">
                        <strong class="prof">Nationalité</strong><br />
                        <p class="text-muted"><?php echo e($infoUser->nationalite); ?></p>
                    </div>
                </div>
            </div>
            <div class="tab-pane <?php if($numero == 2): ?> show active <?php endif; ?> p-4" id="password" role="tabpanel">
                <div class="card">
                    <div class="card-body">
                        <form class="form-material mt-4" method="POST" action=<?php echo e(route('update_passwd')); ?>>
                            <?php echo csrf_field(); ?>
                            <?php if(Illuminate\Support\Facades\Session::has('erreurChang')): ?>
                                <script>
                                    Swal.fire({
                                        title: 'ERREUR!',
                                        text: <?php echo Illuminate\Support\Facades\Session::get('erreurChang'); ?>,
                                        icon: 'info',
                                        confirmButtonColor: '#8cd4f5'
                                    });
                                </script>
                            <?php endif; ?>
                            <div class="mb-3">
                                <label style="font-weight: bolder;" for="matricule">Mot de passe actuel</label>
                                <input type="password" class="form-control <?php $__errorArgs = ['oldPassword'];
$__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); ?>"
                                    placeholder="Mot de passe actuel" id="oldPassword" name="oldPassword" required>
                                <?php $__errorArgs = ['oldPassword'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                    <div class="alert text-danger"><?php echo e($message); ?></div>
                                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                <?php if(Illuminate\Support\Facades\Session::has('erreurPass')): ?>
                                    <div class="alert text-danger">
                                        <?php echo e(Illuminate\Support\Facades\Session::get('erreurPass')); ?></div>
                                <?php endif; ?>
                            </div>
                            <div class="mb-3 ">
                                <label style="font-weight: bolder;" for="password">Nouveau mot de passe</label>
                                <div class="row" id="pwd">
                                    <div class="col-md-6">
                                        <input type="password"
                                            class="form-control <?php $__errorArgs = ['password'];
$__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); ?>"
                                            placeholder="Nouveau mot de passe" id="password" name="password" required>
                                        <?php $__errorArgs = ['password'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                            <div class="alert text-danger"><?php echo e($message); ?></div>
                                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                    </div>
                                    <div class="col-md-6">
                                        <input type="password"
                                            class="form-control <?php $__errorArgs = ['password_confirmation'];
$__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); ?>"
                                            placeholder="Confirmez le nouveau mot de passe" id="password_confirmation"
                                            name="password_confirmation" required>
                                    </div>
                                </div>
                            </div>
                            <div class="col-sm-12">
                                <button id="passwordUpdate" type="submit" class="btn btn-success">Changer le mot de
                                    passe</button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
            <div class="tab-pane <?php if($numero == 0): ?> show active <?php endif; ?> p-3" id="messages"
                role="tabpanel">
                <div class="card">
                    <div class="card-body">
                        <form class="form-material mt-4" method="POST" action=<?php echo e(route('update_prof')); ?>>
                            <?php echo csrf_field(); ?>
                            <div class="mb-3">
                                <label style="font-weight: bolder;" for="matricule">Matricule</label>
                                <input type="text" class="form-control form-control-line"
                                    value=<?php echo e($infoUser->matricule); ?> readonly id="matricule" name="matricule" required>
                            </div>
                            <div class="mb-3">
                                <label style="font-weight: bolder;" for="name">Full Name</label>
                                <input type="text" class="form-control form-control-line"
                                    value="<?php echo e($infoUser->nom); ?> <?php echo e($infoUser->prenom); ?>" readonly id="name"
                                    name="name" required>
                            </div>
                            <div class="mb-3">
                                <label style="font-weight: bolder;" for="email">Email</label>
                                <input type="email" id="email" name="email"
                                    class="form-control <?php $__errorArgs = ['email'];
$__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); ?>" placeholder="Email"
                                    value=<?php echo e($infoUser->email); ?> required>
                                <?php $__errorArgs = ['email'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                    <div class="invalid-feedback"><?php echo e($message); ?></div>
                                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                            </div>
                            <div class="mb-3">
                                <label style="font-weight: bolder;" for="phone">Phone No</label>
                                <input type="number" class="form-control <?php $__errorArgs = ['phone'];
$__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); ?>"
                                    placeholder="Votre numero de téléphone" id="phone" name="phone"
                                    value="<?php echo e($infoUser->phone); ?>" required>
                                <?php $__errorArgs = ['phone'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                    <div class="invalid-feedback"><?php echo e($message); ?></div>
                                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                            </div>
                            <div class="mb-3">
                                <label style="font-weight: bolder;" for="description">Description</label>
                                <textarea class="form-control <?php $__errorArgs = ['description'];
$__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); ?>" rows="15" name="description"
                                    id="description"><?php echo e(old('description')); ?></textarea>
                                <?php $__errorArgs = ['email'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                    <div class="invalid-feedback"><?php echo e($message); ?></div>
                                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                            </div>
                            <div class="col-sm-12">
                                <button id="profileupdate" type="submit" class="btn btn-success">Update Profile</button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

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

<?php echo $__env->make('layout.template', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/africawebstudent/public_html/aws/results/resources/views/profil.blade.php ENDPATH**/ ?>