KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.41 (Ubuntu)
System : Linux vmi1525618.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64
User : www-data ( 33)
PHP Version : 8.2.12
Disable Function : NONE
Directory :  /var/www/sld.edukrypt.app/storage/framework/views/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //var/www/sld.edukrypt.app/storage/framework/views/ce14ef521e3ac1f3bc80b459bd80f067a0ba3a91.php
<?php $__env->startSection('content'); ?>

    <!-- begin::main content -->
    <main class="main-content">
        <div class="container">

            <!-- begin::page header -->
            <div class="page-header">
                <h3>Edit User</h3>
                <nav aria-label="breadcrumb">
                    <ol class="breadcrumb">
                        <li class="breadcrumb-item"><a href="#">Dashboard</a></li>
                        <li class="breadcrumb-item"><a href="<?php echo e(asset('superadmin/users')); ?>">users</a></li>
                        <li class="breadcrumb-item active" aria-current="page">Edit User</li>
                    </ol>
                </nav>
            </div>
            <!-- end::page header -->
            <?php if (isset($component)) { $__componentOriginal8a5ba9c90b64d384232e9948b1023e746ba08e74 = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\FlashMessage::class, []); ?>
<?php $component->withName('flashMessage'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal8a5ba9c90b64d384232e9948b1023e746ba08e74)): ?>
<?php $component = $__componentOriginal8a5ba9c90b64d384232e9948b1023e746ba08e74; ?>
<?php unset($__componentOriginal8a5ba9c90b64d384232e9948b1023e746ba08e74); ?>
<?php endif; ?>
            <div class="row">
                <div class="col-md-6">

                    <div class="card">
                        <div class="card-header">
                            <a href="<?php echo e(asset('admin/users')); ?>" class="btn btn-primary pull-right  text-white"><i
                                    class="fa fa-list"></i>&nbsp;User List</a>
                        </div>
                        <div class="card-body">
                            <form action="<?php echo e(asset('admin/edit-user/' . Request::segment(3))); ?>" method="post">
                                <?php echo csrf_field(); ?>
                                <div class="form-group">
                                    <label for="username">User Name</label>
                                    <input type="text" class="form-control" name="username" value="<?php echo e($user->name); ?>"
                                        id="username" placeholder="Enter User Name">

                                    <?php if($errors->has('username')): ?>
                                        <div class="error">
                                            <?php echo e($errors->first('username')); ?>

                                        </div>
                                    <?php endif; ?>

                                </div>

                                <div class="form-group">
                                    <label for="email">Office Location</label>
                                    <select class="form-control location" name="office_location">
                                        <option value=" ">Select Location</option>
                                        <?php if(!$locations->isEmpty()): ?>
                                        <?php $__currentLoopData = $locations; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $location): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo e($location->id); ?>" <?php echo e(($location->id == $user->office_location)?"selected":""); ?>><?php echo e($location->name); ?></option>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        <?php endif; ?>
                                    </select>
                                 

                                    <?php if($errors->has('office_location')): ?>
                                        <div class="error">
                                            <?php echo e($errors->first('office_location')); ?>

                                        </div>
                                    <?php endif; ?>

                                </div>

                                <div class="form-group">
                                    <label for="email">Center</label>
                                    <select class="form-control center" name="centre">
                                        <option value=" ">Select Center</option>
                                        <?php if(!$centers->isEmpty()): ?>
                                        <?php $__currentLoopData = $centers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $center): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo e($center->id); ?>" <?php echo e(($center->id == $user->centre)?"selected":""); ?>><?php echo e($center->name); ?></option>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        <?php endif; ?>
                                    </select>

                                    
                                    <?php if($errors->has('centre')): ?>
                                        <div class="error">
                                            <?php echo e($errors->first('centre')); ?>

                                        </div>
                                    <?php endif; ?>

                                </div>


                               


                                <div class="form-group">
                                    <label for="email">Email</label>
                                    <input type="email" class="form-control" name="email"
                                        value="<?php echo e(!empty($user->email) ? $user->email : ''); ?>" id="email"
                                        placeholder="Enter Email Name">

                                    <?php if($errors->has('email')): ?>
                                        <div class="error">
                                            <?php echo e($errors->first('email')); ?>

                                        </div>
                                    <?php endif; ?>

                                </div>

                                <div class="form-group">
                                    <label for="phone">Mobile (Optional)</label>
                                    <input type="number" class="form-control" name="phone"
                                        value="<?php echo e(!empty($user->phone) ? $user->phone : ''); ?>" id="phone"
                                        placeholder="Enter Phone">

                                    <?php if($errors->has('phone')): ?>
                                        <div class="error">
                                            <?php echo e($errors->first('phone')); ?>

                                        </div>
                                    <?php endif; ?>

                                </div>


                                <div class="form-group">
                                    <label for="dob">DOB (Optional)</label>
                                    <input type="date" class="form-control" name="dob"
                                        value="<?php echo e(!empty($user->dob) ? $user->dob : ''); ?>" id="dob"
                                        placeholder="Date of birth">
                                </div>

                                <div class="form-group">
                                    <label for="gender">Gender</label>
                                    <select class="form-control" name="gender" id="gender">
                                        <option <?php echo e($user->gender == 'male' ? 'selected' : ''); ?> value="male">Male
                                        </option>
                                        <option <?php echo e($user->gender == 'female' ? 'selected' : ''); ?> value="female">
                                            Female
                                        </option>
                                        <option <?php echo e($user->gender == 'other' ? 'selected' : ''); ?> value="other">Other
                                        </option>
                                    </select>
                                    <?php if($errors->has('gender')): ?>
                                        <div class="error">
                                            <?php echo e($errors->first('gender')); ?>

                                        </div>
                                    <?php endif; ?>

                                </div>

                                <div class="form-group">
                                    <label for="institute">Role</label>
                                    <select class="js-example-basic-single" multiple name="role[]">
                                        <option></option>
                                        <?php if(!empty($roles)): ?>
                                            <?php $__currentLoopData = $roles; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $role): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <option value="<?php echo e($role->slug); ?>"
                                                   
                                                    <?php echo e((in_array($role->slug,$ur_roles)) ? 'selected' : ''); ?>>
                                                    <?php echo e($role->name); ?></option>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        <?php endif; ?>

                                    </select>

                                    <?php if($errors->has('role')): ?>
                                        <div class="error">
                                            <?php echo e($errors->first('role')); ?>

                                        </div>
                                    <?php endif; ?>
                                </div>


                                <button type="submit" class="btn btn-primary">Submit</button>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </main>
    <!-- end::main content -->

<?php $__env->stopSection(); ?>
<?php $__env->startPush('footer-script'); ?>
    <!-- begin::select2 -->
    <link rel="stylesheet" href="<?php echo e(asset('public/admin/vendors/select2/css/select2.min.css')); ?>" type="text/css">
    <!-- end::select2 -->

    <script src="<?php echo e(asset('public/admin/vendors/select2/js/select2.min.js')); ?>"></script>
    <script src="<?php echo e(asset('public/admin/js/examples/select2.js')); ?>"></script>
    <!-- end::select2 -->
<?php $__env->stopPush(); ?>

<?php echo $__env->make('admin.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/sld.edukrypt.app/resources/views/admin/users/edit-user.blade.php ENDPATH**/ ?>

Anon7 - 2021