<?php $__env->startSection('content'); ?>
<?php if(session()->has('message')): ?>
<div class="row">
        <!-- left column -->
        <div class="col-md-2"></div>
<div class="col-md-4 alert alert-success alert-dismissible" style="font-size:18px;font-weight:bold;width:400px;margin-left:15px">
                <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
                <?php echo session('message'); ?>

              </div>
              </div> 
<?php endif; ?>

<div class="row">
        <!-- left column -->
        <div class="col-md-2"></div>
        <div class="col-md-8">
          <!-- general form elements -->
          <div class="box box-primary">
             
            <!-- /.box-header -->
            <!-- form start -->
            <form   role="form" method="POST" action="<?php echo e(url('/store/edit')); ?>">
                        <?php echo e(csrf_field()); ?>

              <div class="box-body">
                
                
                <div class="form-group">
                  <label for="exampleInputPassword1">store Name - اسم المخزن</label>
                  <input type="text" name="store_name" class="form-control"  value="<?php echo e($store->store_name); ?>" placeholder="store Name - اسم المخزن " required>
                </div>


                <div class="form-group">
                  <label for="exampleInputPassword1">Sell Name - اسم منتج البيع</label>
                  <input type="text" name="sell_name" class="form-control"  value="<?php echo e($store->sell_name); ?>" placeholder="store Name - اسم المخزن " required>
                </div>

                <div class="form-group">
                <label>Unit </label>
                <select class="form-control select2"  style="width: 100%;" name="unit" id="status" required>
                  <option value="كجم"  <?php if($store->unit == "كجم"): ?> selected <?php endif; ?>> كجم</option>
                  <option value="عدد"  <?php if($store->unit == "عدد"): ?> selected <?php endif; ?>> عدد</option>
                </select>
                </div>

               

                
                


                <input type="hidden" name="store_id" value="<?php echo e($store->id); ?>" class="form-control"  placeholder="" required>
              </div>
              <!-- /.box-body -->

              <div class="box-footer">
                <button type="submit" class="btn btn-primary">Save</button>
              </div>
            </form>
          </div>    
</div>
         
      </div>

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