<?php $__env->startSection('content'); ?>
<head>
  <meta name="csrf-token" content="<?php echo e(csrf_token()); ?>" />
</head>
<div class="container-fluid px-4">

    <div class="card mt-4">
                   <div class="card-header">
                                  <h1 class=""><?php echo e(__('Edit Shop Profile')); ?></h1>
                                  <!-- <button type="C_submit" onclick="login()" class="btn btn-primary"><?php echo e(__('addCountryCode')); ?></button> -->
                   </div>

                   <div class="card-body">

                     <?php if($errors->any()): ?>
                     <div class="alert alert-danger">
                         <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                         <div><?php echo e($error); ?></div>

                         <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                     </div>

                     <?php endif; ?>

                        <form action="<?php echo e(url('super-admin/update-admin/'.$admin->id)); ?>" method="POST" enctype="multipart/form-data">

                                                 <?php echo csrf_field(); ?>
                                                 <?php echo method_field('PUT'); ?>
                                                 
             <h5 class="">Shop Edit</h5>
             <div class="row">
               <div class="mb-3 col-md-6">
         
       
               <label for=""><?php echo e(__('Shop Name')); ?><span style="color: red">*</span>
               </label>
               <input type="text" value="<?php echo e($admin->shopname); ?>"  name="shopname" class="form-control">
            
         </div>
         <div class="mb-3 col-md-6">
            <label for=""><?php echo e(__('Permission number')); ?>

            </label>
            <input type="text" value="<?php echo e($admin->permission_number); ?>" name="permission_number" class="form-control">
         </div>
         <div class="mb-3 col-md-6">
            <label for=""><?php echo e(__('adminName')); ?><span style="color: red">*</span>
            </label>
            <input type="text"value="<?php echo e($admin->name); ?>" name="name" class="form-control">
         </div>
            <div class="mb-3 col-md-6">
               <label for=""><?php echo e(__('Phone Number')); ?><span style="color: red">*</span>
               </label>
               <input type="text"value="<?php echo e($admin->shopnumber); ?>"  name="shopnumber" class="form-control">
            </div>
            <div class="mb-3 col-md-6">
               <label for=""><?php echo e(__('Business hours')); ?><span style="color: red">*</span>
               </label>
               <textarea type="text" name="business_hours" class="form-control"><?php echo e($admin->business_hours); ?></textarea>
            </div>
            <div class="mb-3 col-md-6">
             <label for=""><?php echo e(__('Regular holiday')); ?><span style="color: red">*</span>
             </label>
             
             <input type="text" value="<?php echo e($admin->holiday); ?>" name="holiday" class="form-control">
          </div>

            <div class="row">
               <div class="mb-3 col-md-6">
                <label for=""><?php echo e(__('adress')); ?><span style="color: red">*</span>
                </label>
                <textarea type="text" name="adress" class="form-control"><?php echo e($admin->adress); ?></textarea>
             </div>
             <div class="mb-3 col-md-6">
              <label for=""><?php echo e(__('zipcode')); ?><span style="color: red">*</span>
              </label>
              <input value="<?php echo e($admin->zipcode); ?>" type="text" name="zipcode" class="form-control">
           </div>
               </div>
             <div class="mb-3">
               <label for=""><?php echo e(__('Shop Image')); ?></label>
               <input type="file" value="<?php echo e($admin->name); ?>"name="shopimage" class="form-control">
               <img src="<?php echo e(asset($admin->shopimage)); ?>" width="50px" height="50px" alt="Img">
           </div>
               </div>
         
    


             <h5 style="margin-top: 20px"  class="">Admin Edit</h5>

             <div class="row">
               <div class="mb-3 col-md-6">
                            <label for=""><?php echo e(__('adminusername')); ?><span style="color: red">*</span>
                            </label>
                            <input value="<?php echo e($admin->email); ?>" type="text" name="email" class="form-control">
             </div>

          
             <div class="mb-3 col-md-6">
                <label for=""><?php echo e(__('adminPassword')); ?>

                </label>
                 <input type="text" name="password" class="form-control">
              </div>
              <div class="mb-3">
               <label class="form-label" for="country"><?php echo e(__('plantype')); ?></label><span style="color: red">*</span>
               <select id="select" name="plan_type" class="select2 form-select">
                
                 <option value="0" <?php echo e($admin->plan_type == 0 ? 'selected' : ''); ?>><?php echo e(__('free')); ?></option>
                 <option value="1" <?php echo e($admin->plan_type == 1 ? 'selected' : ''); ?>><?php echo e(__('standard')); ?></option>
                 <option value="2" <?php echo e($admin->plan_type == 2 ? 'selected' : ''); ?>><?php echo e(__('premium')); ?></option>
           


               </select>
             </div>

             </div>
                <button type="C_submit" class="btn btn-primary"><?php echo e(__('Update Shop')); ?></button>
                <a class="btn btn-danger" href="<?php echo e(url('super-admin/view-admin-list')); ?>"><?php echo e(__('Cancel')); ?></a>


                                  </form>


                   </div>

    </div>
    <script>

 </script>
</div>

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

<?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/xorgeekc/public_html/medishop/resources/views/admin/admin_profile/edit_ad_profile.blade.php ENDPATH**/ ?>