
<?php $__env->startSection('title'); ?>
    <?php echo e(__('Details of Admin')); ?>

<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
    <div class="main-content">
        <div class="page-title">
            <div class="container-fluid">
                <div class="row">
                    <div class="col">
                        <div class="title-content">
                            <h2 class="title"><?php echo e(__('Details of Admin')); ?></h2>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="container-fluid">
            <form action="<?php echo e(route('admin.profile-update')); ?>" method="post" enctype="multipart/form-data">
                <?php echo csrf_field(); ?>
                <div class="row">
                    <div class="col-xl-3 col-lg-3 col-md-4 col-sm-12">
                        <div class="profile-card">
                            <div class="top mb-0">
                                <div class="wrap-custom-file mb-2">
                                    <input
                                        type="file"
                                        name="avatar"
                                        id="admin_profile_image"
                                        accept=".gif, .jpg, .png"
                                    />
                                    <label for="admin_profile_image" class="file-ok"
                                           style="background-image: url(<?php echo e(asset(auth()->user()->avatar)); ?>)">
                                        <img
                                            class="upload-icon"
                                            src="<?php echo e(asset('global/materials/upload.svg')); ?>"
                                            alt=""
                                        />
                                        <span><?php echo e(__('Update Profile Image')); ?></span>
                                    </label>
                                </div>
                                <div class="title-des mb-0">
                                    <h4><?php echo e(auth()->user()->name); ?></h4>
                                    <p class="mb-0"> <?php echo e(str_replace('-', ' ', auth()->user()->getRoleNames()->first() )); ?> </p>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="col-xl-9 col-lg-9 col-md-8 col-sm-12">
                        <div class="site-card">
                            <div class="site-card-header">
                                <h3 class="title"><?php echo e(__("Information's")); ?></h3>
                            </div>
                            <div class="site-card-body">
                                <div class="row">
                                    <div class="col-xl-6 col-lg-6 col-md-6 col-sm-6">
                                        <div class="site-input-groups">
                                            <label for="" class="box-input-label"><?php echo e(__('Name:')); ?></label>
                                            <input type="text" class="box-input" name="name"
                                                   value="<?php echo e(Auth::user()->name); ?>" required="">
                                        </div>
                                    </div>

                                    <div class="col-xl-6 col-lg-6 col-md-6 col-sm-6">
                                        <div class="site-input-groups">
                                            <label for="" class="box-input-label"><?php echo e(__('Email:')); ?></label>
                                            <input type="email" class="box-input" name="email"
                                                   value="<?php echo e(Auth::user()->email); ?>" required="">
                                        </div>
                                    </div>
                                    <div class="col-xl-6 col-lg-6 col-md-6 col-sm-6">
                                        <div class="site-input-groups">
                                            <label for="" class="box-input-label"><?php echo e(__('Phone:')); ?></label>
                                            <input type="text" class="box-input" name="phone"
                                                   value="<?php echo e(Auth::user()->phone); ?>" required="">
                                        </div>
                                    </div>

                                    <div class="col-xl-6 col-lg-6 col-md-6 col-sm-6">
                                        <div class="site-input-groups">
                                            <label for="" class="box-input-label"><?php echo e(__('Joining Date:')); ?></label>
                                            <input type="text" class="box-input" value="<?php echo e(Auth::user()->created_at); ?>"
                                                   required="" disabled>
                                        </div>
                                    </div>
                                    <div class="col-xl-12">
                                        <button type="submit"
                                                class="site-btn-sm primary-btn w-100 centered"><?php echo e(__('Save Changes')); ?></button>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </form>

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


<?php echo $__env->make('backend.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/shaniawa/public_html/resources/views/backend/profile/profile.blade.php ENDPATH**/ ?>