HEX
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.33
System: Linux li317-225.members.linode.com 3.10.0-1062.12.1.el7.x86_64 #1 SMP Tue Feb 4 23:02:59 UTC 2020 x86_64
User: apache (48)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /var/www/kosmicfarms/storage/framework/views/257576cbe62cff640a10aa1543328443aabf71f0.php
<?php $__env->startSection('content'); ?>
 <div class="d-sm-flex align-items-center justify-content-between mg-b-20 mg-lg-b-25 mg-xl-b-30">
            <div>
              <nav aria-label="breadcrumb">
                <ol class="breadcrumb breadcrumb-style1 mg-b-10">
                  <li class="breadcrumb-item"><a href="<?php echo e(url('/')); ?>">Home</a></li>
					<li class="breadcrumb-item"><a href="<?php echo e(url('/products')); ?>">Products</a></li>
					<li class="breadcrumb-item"><a href="<?php echo e(url('/products/type')); ?>">Product Type</a></li>
					<li class="breadcrumb-item active">Edit Product Type</li>
                </ol>
              </nav>
              <h4 class="mg-b-0 tx-spacing--1">Edit Product Type</h4>
              
            </div>
          </div>
 <!-- ============================================================== -->
		<!-- 						Content Start	 						-->
		<!-- ============================================================== -->
		
           <div data-label="Example" class="df-example demo-forms">

<h4 id="section2" class="mg-b-10">Edit Product Type</h4>
<p class="mg-b-30">Edit product type information.</p>
        
        	 <?php if($errors->any()): ?>
                <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                	<div class="alert bg-danger alert-dismissible " role="alert"> <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button> <strong>Error!</strong> <?php echo e($error); ?> </div>
                	
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    		<?php endif; ?>

			<?php if(session('success')): ?>
				<div class="alert bg-success alert-dismissible " role="alert"> <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button> <strong>Success!</strong> Category successfully updated. </div>
			<?php endif; ?>
			
            <div class="row">
                <div class="col">
                    
							
                            <form method="post" action="<?php echo e(url('/products/types/'.$producttype->id.'/update')); ?>" class="form-horizontal">
                            	<?php echo csrf_field(); ?>

                            	
                            		<div class="form-group">
                                        <label class="d-block">Category</label>
                                        <?php echo e(Form::select('category', $categories, old('category', $producttype->category) , array('class' => 'form-control m-b'))); ?>

                                        
                                    </div>
                                                                	
									<div class="form-group">
										<label class="d-block">Product Type</label>
										<input name="name" type="text" placeholder="New product name" value="<?php echo e(old('name', $producttype->name)); ?>" required="required" class="form-control form-control-rounded">
									</div>
									
									
									
									<fieldset class="form-fieldset">
  									<legend>Product Type Option</legend>
									<?php $__currentLoopData = $producttype->options; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $option): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
										<div class="input-group mg-b-5">
                                          <div class="input-group-prepend col-3">
                                            <span class="input-group-text col-12"><?php echo e($option->name); ?></span>
                                          </div>
                                          
                                           <select class="custom-select">
                                            <option selected="">Data Type</option>
                                          </select>
                                          <input type="text" aria-label="Last name" class="form-control" placeholder="Lastname">
                                          
                                          <div class="input-group-append">
                                            <button type="button" class="btn btn-danger btn-icon remove"><i class="fa fa-times"></i>Remove</button>
                                          
                                          </div>
                                        </div>
									
									
                                      <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                      
                                      
                                      
                                      <div class="form-row">
                                                <div class="form-group col-md-4">
                                                  <label>Add Product Option</label>
                                                  <input name="producttypeoption[]" type="text" class="form-control">
                                                </div>
                                                <div class="form-group col-md-3 d-flex align-items-end">
                                                  <select class="custom-select">
                                                    <option selected="">Data Type</option>
                                                  </select>
                                                </div>
                                                <div class="form-group col-md-3">
                                                  <label>Default</label>
                                                  <input name="producttypeoption[]" type="text" class="form-control">
                                                </div>
                                                
                                                <div class="form-group col-md-2 d-flex align-items-end">
                                                     <button type="button" class="btn btn-danger btn-icon remove"><i class="fa fa-times"></i>Remove</button>
                                                </div>
                                              </div>
                                      
                                     
                                      		<button  class="btn btn-success btn-icon" id="add"><i class="fa fa-plus "></i>Add</button>
                                      
                                    </fieldset>

                                    
									<button type="submit" class="btn btn-success btn-icon"><i class="fa fa-floppy-o "></i>Create</button>
									<a href="<?php echo e(URL::previous()); ?>" class="btn btn-warning btn-icon"><i class="fa fa-reply"></i>Back</a>
														
                            </form>
                       
                </div>
            </div>

          </div>  

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

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/kosmicfarms/resources/views/products/types/edit.blade.php ENDPATH**/ ?>