<?php $__env->startSection('title','تعديل الصنف'); ?>
<?php $__env->startSection('content'); ?>
	<!-- Content Header (Page header) -->
	<section class="content-header">
		<h1>
			<?php echo app('translator')->getFromJson('front.edit'); ?>
			<small>
				<?php echo e($product->name); ?>

			</small>
			
		</h1>
	</section>
	<!-- Main content -->
	<form enctype="multipart/form-data"  action="<?php echo e(route('products.update',$product)); ?>" method="post">
		<?php echo e(csrf_field()); ?>

        <input name="pcat" type="hidden" value="<?php echo e($pcat??''); ?>">
        <input name="page" type="hidden" value="<?php echo e(request('page')); ?>">
		<?php echo e(method_field('PUT')); ?>

		<?php echo $__env->make('products._form', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
	</form>

    <div class="com-item hide">
        <div class="row itemComb">
            <div class="col-md-4">
                <div class="form-group">
                    <label>المخزن</label>
                    <select required name="combination[][store_id]" class="form-control">
                        <?php $__currentLoopData = \App\Store::get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $storeObj): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <option value="<?php echo e($storeObj->id); ?>"><?php echo e($storeObj->name); ?></option>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </select>
                </div>
            </div>
            <div class="col-md-4">
                <div class="form-group">
                    <label>اللون والمقاس</label>
                    <select required name="combination[][combination_id]" class="form-control colorsize" style="width: 100%;">
                        <option value="">--- إختر ---</option>
                        <?php $__currentLoopData = \App\Combination::get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $combination): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <option value="<?php echo e($combination->id); ?>"><?php echo e($combination->title); ?></option>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </select>
                </div>
            </div>
            <div class="col-md-4">
                <div class="form-group">
                    <label><?php echo app('translator')->getFromJson('front.quantity'); ?></label>
                    <input name="combination[][qty]" value="" type="number" step="any"  class="form-control" required="required">
                </div>
                <a style="position: absolute;left: 50px;top: -6px;" class="btn btn-sm bg-green addComb" href="#"><i class="fa fa-plus-square"></i></a>
                <a style="position: absolute;left: 15px;top: -6px;" class="btn btn-sm bg-red removeComb" href="#"><i class="fa fa-minus"></i></a>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

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