<?php $__env->startSection('content'); ?>
<div class="d-sm-flex align-items-center justify-content-between mb-4">
    <h1 class="h3 mb-0 text-gray-800"><?php echo e(__('Edit Profile')); ?></h1>
</div>

<form action="<?php echo e(route('admin_profile_update')); ?>" method="post" enctype="multipart/form-data">
    <?php echo csrf_field(); ?>
    <div class="card shadow mb-4 t-left">
        <div class="card-body">
            <div class="row">
                <div class="col-md-12">
                    <div class="mb-3">
                        <label for="" class="form-label"><?php echo e(__('Existing Photo')); ?></label>
                        <div>
                            <?php if(Auth::guard('admin')->user()->photo == ''): ?>
                            <img src="<?php echo e(asset('uploads/default_photo.jpg')); ?>" alt="" class="w_200">
                            <?php else: ?>
                            <img src="<?php echo e(asset('uploads/'.Auth::guard('admin')->user()->photo)); ?>" alt="" class="w_200">
                            <?php endif; ?>
                        </div>
                    </div>
                    <div class="mb-3">
                        <label for="" class="form-label"><?php echo e(__('Change Photo')); ?></label>
                        <div>
                            <input type="file" name="photo">
                        </div>
                    </div>
                    <div class="mb-3">
                        <label for="" class="form-label"><?php echo e(__('Name')); ?></label>
                        <input type="text" name="name" class="form-control" value="<?php echo e(Auth::guard('admin')->user()->name); ?>">
                    </div>
                    <div class="mb-3">
                        <label for="" class="form-label"><?php echo e(__('Email')); ?></label>
                        <input type="text" name="email" class="form-control" value="<?php echo e(Auth::guard('admin')->user()->email); ?>">
                    </div>
                    <div class="mb-3">
                        <label for="" class="form-label"><?php echo e(__('Password')); ?></label>
                        <input type="password" name="password" class="form-control">
                    </div>
                    <div class="mb-3">
                        <label for="" class="form-label"><?php echo e(__('Confirm Password')); ?></label>
                        <input type="password" name="password_confirmation" class="form-control">
                    </div>
                    <button type="submit" class="btn btn-success btn-block mb_50 btn-common"><?php echo e(__('Update')); ?></button>
                </div>
            </div>
        </div>
    </div>
</form>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/avantcom/knuckleball.avantcommunications.co.ke/resources/views/admin/profile/index.blade.php ENDPATH**/ ?>