<?php $__env->startSection('content'); ?>
<section class="content-header">
      <h1>
انشاء فاتورة          
 <small>انشاء فاتورة</small>
      </h1>
      
    </section>
    <br/>
    <?php if(Session :: has ('bills') && count (Session :: get ('bills'))>0 ): ?>
        
         
           
          <a class="btn btn-success" href='<?php echo e(url("/bills/bill")); ?>' >
                        انهاء الفاتورة

          </a> 

        <?php endif; ?>
<div class="box">
            <div class="box-header">
              <h3 class="box-title">Data Table With Full Features</h3>
            </div>
            <!-- /.box-header -->
            <div class="box-body">
              <table id="example1" class="table table-bordered table-striped">
                <thead>
                <tr>
                  <th>اسم</th>
                  <th>اضافة </th>
                </tr>
                </thead>
                <tbody>
                 <?php foreach( $sections as $section ): ?>   
                <tr>
                  
                  <td><?php echo e($section->name); ?>

                  </td>
                   
                  <td>
                  <a class="btn btn-app" href='<?php echo e(url("/bills/add/$section->id")); ?>'>
                        <i class="fa fa-plus"></i> اضافة القطاع الي الفاتورة
                  </a> 
                  </td>
                </tr>
                <?php endforeach; ?>
                </tbody>
                
              </table>
            </div>
            <!-- /.box-body -->
          </div>

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