<?php $__env->startSection('content'); ?>
<section class="content-header">
      <h1>
قطاعات  الفاتورة          
 
      </h1>
      
    </section>
    <br/>
    
<div class="box">
             
            <!-- /.box-header -->
            <div class="box-body">
            <form method="POST" action="<?php echo e(url('/bills/create')); ?>">
            <?php echo e(csrf_field()); ?>

              <table id="example" class="table table-bordered table-striped">
                <thead>
                <tr>
                  <th>القطاع</th>
                  <th>اللون </th>
                  <th>الوزن </th>
                  <th>السعر </th>
                </tr>
                </thead>

                 <tbody>

                 <?php foreach( $sections as $section ): ?>   
                <tr>
                  
                  <td><?php echo e($section->name); ?>

                  </td>
                   
                  <td>
                  <input type="text" name="color<?php echo e($section->id); ?>" id="<?php echo e($section->id); ?>" placeholder= "" required>
                  </td>

                  <td>
                  <input type="number" name="weight<?php echo e($section->id); ?>" id="<?php echo e($section->id); ?>" placeholder= ""  required>
                  </td>

                  <td>
                  <input type="number" name="price<?php echo e($section->id); ?>" id="<?php echo e($section->id); ?>" placeholder= ""  required>
                  </td>

                </tr>
                <?php endforeach; ?>
                 
                            
                </tbody>
                      
                
              </table>

               
              <div class="form-group">
                   <label for="exampleInputEmail1">اسم العميل</label>
                  <input type="text" name="customer_name"  class="form-control"  placeholder="اسم العميل  " required>
                </div>

                <div class="form-group">
                <button type="submit" class="btn btn-success" >
                                    <i class="fa fa-btn btn-big fa-save"></i> حفظ الفاتورة
                                </button>
               </div>

               
                         

         
                   
              </form>
            </div>
            <!-- /.box-body -->
          </div>

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