
<?php $__env->startSection('title'); ?>
<title><?php echo e(__('admin.My Profile')); ?></title>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('admin-content'); ?>
      <!-- Main Content -->
      <div class="main-content">
        <section class="section">
          <div class="section-header">
            <h1><?php echo e(__('admin.My Profile')); ?></h1>
            <div class="section-header-breadcrumb">
              <div class="breadcrumb-item active"><a href="<?php echo e(route('admin.dashboard')); ?>"><?php echo e(__('admin.Dashboard')); ?></a></div>
              <div class="breadcrumb-item"><?php echo e(__('admin.My Profile')); ?></div>
            </div>
          </div>
          <div class="section-body">
            <div class="row mt-sm-4">
              <div class="col-12">
                <div class="card profile-widget">

                  <div class="profile-widget-description">
                    <form action="<?php echo e(route('admin.profile.update')); ?>" enctype="multipart/form-data" method="POST">
                        <?php echo csrf_field(); ?>
                        <?php echo method_field('PUT'); ?>
                        <div class="row">
                            <div class="col-12">
                                <div class="form-group">
                                    <label for=""><?php echo e(__('admin.Banner Image Preview')); ?></label>
                                    <?php if($admin->banner_image): ?>
                                    <div class="banner-image w_300">
                                        <img class="w_300" src="<?php echo e(asset($admin->banner_image)); ?>" alt="">
                                    </div>
                                     <?php else: ?>
                                     <div class="banner-image w_300">
                                        <img class="w_300" src="<?php echo e(asset($banner_image)); ?>" alt="">
                                    </div>
                                    <?php endif; ?>

                                    <label class="mt-1"><?php echo e(__('admin.New Image')); ?></label>
                                    <div class="ls-inputicon-box">
                                        <input class="form-control-file wt-form-control" name="banner_image" type="file">
                                    </div>
                                </div>
                            </div>


                            <div class="col-md-6">
                                <div class="form-group">
                                    <label for=""><?php echo e(__('admin.Image Preview')); ?></label>
                                    <div>
                                        <?php if($admin->image): ?>
                                        <img class="img-thumbnail" src="<?php echo e(url($admin->image)); ?>" alt="default user image" width="100px">

                                        <?php else: ?>
                                        <img class="img-thumbnail" src="<?php echo e(url($defaultProfile)); ?>" alt="default user image" width="100px">

                                        <?php endif; ?>
                                    </div>
                                    <label for="" class="mt-2"><?php echo e(__('admin.New Image')); ?></label>
                                    <input type="file" class="form-control-file" name="image">

                                </div>
                            </div>

                        </div>

                        <div class="row">
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label for=""><?php echo e(__('admin.Name')); ?></label>
                                    <input type="text" class="form-control" value="<?php echo e($admin->name); ?>" name="name">

                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label for=""><?php echo e(__('admin.Email')); ?></label>
                                    <input type="text" class="form-control" value="<?php echo e($admin->email); ?>" name="email">

                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label for=""><?php echo e(__('admin.Phone')); ?></label>
                                    <input type="text" class="form-control" value="<?php echo e($admin->phone); ?>" name="phone">

                                </div>
                            </div>


                            <div class="col-md-6">
                                <div class="form-group">
                                    <label for="facebook"><?php echo e(__('admin.Facebook')); ?></label>
                                    <input type="text" name="facebook" value="<?php echo e($admin->facebook); ?>" class="form-control">
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label for="twitter"><?php echo e(__('admin.Twitter')); ?></label>
                                    <input type="text" name="twitter" value="<?php echo e($admin->twitter); ?>" class="form-control">
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label for="linkedin"><?php echo e(__('admin.Linkedin')); ?></label>
                                    <input type="text" name="linkedin" value="<?php echo e($admin->linkedin); ?>" class="form-control">
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label for="whatsapp"><?php echo e(__('admin.Whatsapp')); ?></label>
                                    <input type="text" name="whatsapp" value="<?php echo e($admin->whatsapp); ?>" class="form-control">
                                </div>
                            </div>


                            <div class="col-md-6">
                                <div class="form-group">
                                    <label for="webiste"><?php echo e(__('admin.Website')); ?></label>
                                    <input type="text" name="website" value="<?php echo e($admin->website); ?>" class="form-control">
                                </div>
                            </div>
                            <div class="col-md-12">
                                <div class="form-group">
                                    <label for="address"><?php echo e(__('admin.Address')); ?></label>
                                    <input type="text" name="address" value="<?php echo e($admin->address); ?>" class="form-control">
                                </div>
                            </div>
                            <div class="col-md-12">
                                <div class="form-group">
                                    <label for="about"><?php echo e(__('admin.About')); ?></label>
                                   <textarea name="about" id="about" cols="30" rows="2" class="form-control text-area-5"><?php echo e($admin->about); ?></textarea>
                                </div>
                            </div>


                            <div class="col-md-6">
                                <div class="form-group">
                                    <label for=""><?php echo e(__('admin.New Password')); ?></label>
                                    <input  type="password" class="form-control" name="password">

                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label for=""><?php echo e(__('admin.Confirm Password')); ?></label>
                                    <input type="password" class="form-control" name="password_confirmation">
                                </div>
                            </div>

                        </div>

                        <button class="btn btn-primary" type="submit"><?php echo e(__('admin.Update')); ?></button>
                    </form>
                </div>
              </div>
            </div>
          </div>
        </section>
      </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.master_layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/fwvrhhfw/topriserealtors.com/resources/views/admin/admin_profile.blade.php ENDPATH**/ ?>