<?php $__env->startSection('title', 'Admin Setting'); ?>
<?php $__env->startSection('section'); ?>

    <style>
        img {
            object-fit: contain !important;
            width: 400px;
            height: 200px;
        }
    </style>

    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <div class="container-fluid">
                <div class="row mb-2">
                    <div class="col-sm-6">
                        <h1>User Edit Form</h1>
                    </div>
                    <div class="col-sm-6">
                        <ol class="breadcrumb float-sm-right">
                            <li class="breadcrumb-item"><a href="<?php echo e(url('admin/dashboard')); ?>">Home</a></li>
                            <li class="breadcrumb-item active">User</li>
                        </ol>
                    </div>
                </div>
            </div><!-- /.container-fluid -->
        </section>
        <!-- /.content-header -->

        <section class="content">
            <div class="container-fluid">
                <div class="row">
                    <!-- left column -->
                    <div class="col-md-12">
                        <!-- general form elements -->
                        <div class="card card-primary">
                            <div class="card-header">
                                <h3 class="card-title">User Edit</h3>
                            </div>
                            <form class="category-form" method="post"
                                  action="<?php echo e(route('admin.user.edit' , ['user' => $user->id])); ?>"
                                  enctype="multipart/form-data">
                                <?php echo csrf_field(); ?>
                                <div class="card-body">
                                    <div class="row">
                                        <div class="col-md-6">

                                            <div class="form-group">
                                                <label for="name">Name</label>
                                                <input type="text" class="form-control" name="name" id="name"
                                                       value="<?php echo e($user->name??''); ?>" placeholder="Name"
                                                       required>
                                            </div>
                                            <div class="form-group">
                                                <label for="name">Email</label>
                                                <input type="email" class="form-control" name="email" id="name"
                                                       value="<?php echo e($user->email??''); ?>" placeholder="Email"
                                                       readonly>
                                            </div>
                                            <div class="form-group">
                                                <label for="name">Phone Number</label>
                                                <input type="number" class="form-control" name="phone_num" id="name"
                                                       value="<?php echo e($user->phone_num??''); ?>" placeholder="Phone Number "
                                                       required>
                                            </div>
                                            <div class="form-group">
                                                <label for="name">Country</label>
                                                <input type="text" class="form-control" name="country" id="name"
                                                       value="<?php echo e($user->country??''); ?>" placeholder="Country"
                                                       required>
                                            </div>
                                            <div class="form-group">
                                                <label for="name">Address</label>
                                                <textarea class="form-control" name="address" id="side_footer"
                                                          rows="4"
                                                          placeholder="Address"><?php echo e($user->address??''); ?></textarea>
                                            </div>
                                            <div class="form-group">
                                                <label for="name">Password</label>
                                                <input type="text" class="form-control" id="name"
                                                       value="<?php echo e($user->show_password??''); ?>"
                                                       disabled>
                                            </div>

                                            <div class="form-group">
                                                <label for="password">Update Password</label>
                                                <input type="text" class="form-control" name="password" id="password">
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label for="name">Profile Image</label>
                                                <div class="input-group-btn">
                                                    <div class="image-upload">
                                                        <img src="<?php echo e(isset($user->profile_image) ?
                                                                        asset('profile_image/'.$user->profile_image) :
                                                                        'admin/dist/img/placeholder.png'); ?>"
                                                             class="img-responsive" width="100px" height="100px">

                                                        <div class="file-btn mt-4">
                                                            <input type="file" id="logo" name="profile_image"
                                                                   accept=".jpg,.png">
                                                            <input type="text" id="logo" name="profile_image"
                                                                   value="<?php echo e(!empty($user->profile_image) ? $user->profile_image : ''); ?>"
                                                                   hidden="">
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>


                                            <!-- /.card-body -->
                                            <div class="card-footer float-right">
                                                <button type="submit"
                                                        class="btn btn-primary">Submit
                                                </button>
                                            </div>
                                        </div>
                                    </div>
                            </form>
                        </div>
                        <!-- /.card -->
                    </div>
                </div>
            </div>
        </section>
    </div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('script'); ?>
<?php $__env->stopSection(); ?>


<?php echo $__env->make('admin.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/servicedemoweb/public_html/global-man-cave/resources/views/admin/users/edit.blade.php ENDPATH**/ ?>