

<?php $__env->startSection('content'); ?>
<?php if(session('profile_action_msg')): ?>
<div class="alert alert-success">
    <?php echo e(session('profile_action_msg')); ?>

</div>
<?php endif; ?>

<h2 class="mb-3"> <?php echo e(awtTrans('Profile')); ?></h2>

    <div class="card shadow mb-4">
        <div class="card-body">
            <div class="table-responsive">

                <form action="<?php echo e(route('admin.update.profile')); ?>" method="post">
                    <?php echo csrf_field(); ?>
                    <div class="form-group">
                        <label for=""><?php echo e(awtTrans('Email')); ?></label>
                        <input type="text" name="email" value="<?php echo e(auth()->user()->email); ?>" id="email" class="form-control">
                        <small class="text-danger"><?php echo e($errors->first('email')); ?></small>
                    </div>

                    <div class="form-group">
                        <?php echo Form::label('photo', awtTrans('الصورة')); ?>

                        <div class="input-group">
                            <span class="input-group-btn">
                                <a id="lfm" data-input="photo" data-preview="holder" class="btn btn-secondary text-white px-4" style="border-top-right-radius: 0;border-bottom-right-radius: 0;border-top-left-radius: 0;border-bottom-left-radius: 0;">
                                    <i class="fa fa-picture-o"></i> <?php echo e(awtTrans('اختر الصورة')); ?>

                                </a>
                            </span>
                            <input type="text" readonly name="photo" id="photo" class="form-control" value="<?php echo e(auth()->user()->photo); ?>">
                        </div>
                        <div class="mb-3 mt-3 d-block slider-holder holder" id="holder">
                            <img width="100" src="<?php echo e(auth()->user()->photo); ?>" alt="">
                        </div>
                        <small class="text-danger"><?php echo e($errors->first('photo')); ?></small>
                    </div>

                    <div class="row">
                        <div class="form-group col-6">
                            <label for=""><?php echo e(awtTrans('Password')); ?></label>
                            <input type="password" name="password" id="password" class="form-control">
                            <small class="text-danger"><?php echo e($errors->first('password')); ?></small>
                        </div>

                        <div class="form-group col-6">
                            <label for=""><?php echo e(awtTrans('Confirm Password')); ?></label>
                            <input type="password" name="confirm_password" id="confirm_password" class="form-control">
                            <small class="text-danger"><?php echo e($errors->first('confirm_password')); ?></small>
                        </div>
                    </div>

                    <button class="btn btn-info btn-block"><?php echo e(awtTrans('Update')); ?> <i class="fa fa-edit"></i></button>
                </form>

            </div>
            <br>

        </div>
    </div>
<?php $__env->stopSection(); ?>


<?php $__env->startSection('scripts'); ?>
<script>
    $(document).ready(function() {
        $('#dataTablePosts').DataTable({
            order: [0, 'desc'],
            'language': {
                'url': "<?php echo e(app()->getLocale() == 'ar' ? 'https://cdn.datatables.net/plug-ins/1.10.12/i18n/Arabic.json' : 'https://cdn.datatables.net/plug-ins/1.10.12/i18n/English.json'); ?>",
            },
        });
    });
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/sitejadara/public_html/ics/resources/views/admin/profile/edit.blade.php ENDPATH**/ ?>