

<?php $__env->startSection('content'); ?>


        <div class="content-wrapper">
          <div class="row">
		  <div class="col-md-2">
		  </div>
            
            <div class="col-md-8 grid-margin stretch-card">
              <div class="card">
                <div class="card-body">
                  <h4 class="card-title">Store Update</h4>
                  <?php if(count($errors) > 0): ?>
                      <?php if($errors->any()): ?>
                        <div class="alert alert-primary" role="alert">
                          <?php echo e($errors->first()); ?>

                          <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                            <span aria-hidden="true">×</span>
                          </button>
                        </div>
                      <?php endif; ?>
                  <?php endif; ?>
                  <form class="forms-sample" action="<?php echo e(route('update-store', [$store->store_id])); ?>" method="post" enctype="multipart/form-data">
                      <?php echo e(csrf_field()); ?>

                      
                    <div class="form-group">
                      <label for="exampleInputName1">Category Name</label>
                      <select name="cat_id" class="form-control">
                       <?php $__currentLoopData = $cat; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <option value="<?php echo e($category->category_id); ?>"><?php echo e($category->category_name); ?></option>
                       <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                      </select>
                    </div>
                    
                    <div class="form-group">
                      <label for="exampleInputName1">Store Name</label>
                      <input type="text" class="form-control" id="exampleInputName1" name="store_name" placeholder="category name" value="<?php echo e($store->store_name); ?>">
                    </div>
                    <div class="form-group">
                      <label for="exampleInputName1">Store title</label>
                      <input type="text" class="form-control" id="exampleInputName1" name="store_title" placeholder="store title" value="<?php echo e($store->store_title); ?>">
                    </div>
                    <div class="form-group">
                      <label for="exampleInputName1">Contact No.</label>
                      <input type="text" class="form-control" id="exampleInputName1" name="phone" placeholder="store contact no." value="<?php echo e($store->phone); ?>">
                    </div>
                     <div class="form-group">
                      <label for="exampleInputName1">Description</label>
                      <input type="text" class="form-control" id="exampleInputName1" name="description" placeholder="store description" value="<?php echo e($store->description); ?>">
                     
                    </div>
                     <div class="form-group">
                      <label for="exampleInputName1">Address</label>
                      <input type="text" class="form-control" id="exampleInputName1" name="address" placeholder="store address" value="<?php echo e($store->address); ?>">
                    </div>
                     <div class="form-group">
                      <label for="exampleInputName1">services</label>
                      <input type="text" class="form-control" id="exampleInputName1" name="services" placeholder="services" value="<?php echo e($store->services); ?>">
                    </div>
                     <div class="form-group">
                      <label for="exampleInputName1">facebook link</label>
                      <input type="text" class="form-control" id="exampleInputName1" name="facebook_link" placeholder="facebook link" value="<?php echo e($store->facebook_link); ?>">
                    </div>
                    <div class="form-group">
                      <label>Store Image Upload</label>
                      <input type="file" name="store_image" class="file-upload-default">
                      <div class="input-group col-xs-12">
                        <input type="text" class="form-control file-upload-info" disabled placeholder="Upload Image">
                        <div class="input-group-append">
                          <button class="file-upload-browse btn btn-info" type="button">Upload</button>                          
                        </div>
                      </div>
                    </div>
                    <button type="submit" class="btn btn-success mr-2">Submit</button>
                    <a href="<?php echo e(route('store')); ?>" class="btn btn-light">Cancel</a>
                  </form>
                </div>
              </div>
            </div>
             <div class="col-md-2">
		  </div>
     
          </div>
        </div>

 <?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layout.app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>