<?php $__env->startSection('title',trans('front.Add Product')); ?>
<?php $__env->startSection('content'); ?>
	<!-- Content Header (Page header) -->
	<section class="content-header">
		<h1>
			<?php echo app('translator')->getFromJson('front.Add'); ?>
			<small>
				<?php if($is_raw): ?>
					مادة خام
				<?php else: ?>
				<?php echo app('translator')->getFromJson('front.product'); ?>
				<?php endif; ?>
			</small>
		</h1>
	</section>
	<!-- Main content -->
	<form enctype="multipart/form-data"  action="<?php echo e(route('products.store')); ?>" method="post">
		<?php echo e(csrf_field()); ?>

		<?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(); ?>