<?php $__env->startSection('main_content'); ?>
<?php echo $__env->make('admin.layouts.nav', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
<?php echo $__env->make('admin.layouts.sidebar', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
<div class="main-content">
    <section class="section">
        <div class="section-header">
            <h1><?php echo e(__('Edit Profile')); ?></h1>
        </div>
        <div class="section-body">
            <div class="row">
                <div class="col-12">
                    <div class="card">
                        <div class="card-body">
                            <form action="<?php echo e(route('admin_profile_submit')); ?>" method="post" enctype="multipart/form-data">
                                <?php echo csrf_field(); ?>
                                <div class="row">
                                    <div class="col-md-3">
                                        <?php if(Auth::guard('admin')->user()->photo == null): ?>
                                        <img src="<?php echo e(asset('uploads/default.png')); ?>" alt="" class="profile-photo w_100_p">
                                        <?php else: ?>
                                        <img src="<?php echo e(asset('uploads/'.Auth::guard('admin')->user()->photo)); ?>" alt="" class="profile-photo w_100_p">
                                        <?php endif; ?>
                                        <input type="file" class="mt_10" name="photo">
                                    </div>
                                    <div class="col-md-9">
                                        <div class="mb-4">
                                            <label class="form-label"><?php echo e(__('Name')); ?> *</label>
                                            <input type="text" class="form-control" name="name" value="<?php echo e(Auth::guard('admin')->user()->name); ?>">
                                        </div>
                                        <div class="mb-4">
                                            <label class="form-label"><?php echo e(__('Email')); ?> *</label>
                                            <input type="text" class="form-control" name="email" value="<?php echo e(Auth::guard('admin')->user()->email); ?>">
                                        </div>
                                        <div class="mb-4">
                                            <label class="form-label"><?php echo e(__('Biography')); ?></label>
                                            <textarea name="biography" class="form-control h_150"><?php echo e(Auth::guard('admin')->user()->biography); ?></textarea>
                                        </div>
                                        <div class="mb-4">
                                            <label class="form-label"><?php echo e(__('Password')); ?></label>
                                            <input type="password" class="form-control" name="password">
                                        </div>
                                        <div class="mb-4">
                                            <label class="form-label"><?php echo e(__('Retype Password')); ?></label>
                                            <input type="password" class="form-control" name="confirm_password">
                                        </div>
                                        <div class="mb-4">
                                            <label class="form-label"></label>
                                            <button type="submit" class="btn btn-primary"><?php echo e(__('Update')); ?></button>
                                        </div>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layouts.master', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /Applications/MAMP/htdocs/phpscriptpoint/lawyer/lawyer/cms/main_files/resources/views/admin/profile/index.blade.php ENDPATH**/ ?>