

<?php $__env->startSection('content'); ?>

    <br/>
    <?php if( auth()->user()->create_ ): ?>
    <a href="<?php echo e(url('/budget/create')); ?>"  class="btn" style="background-color:#2C4E71;color:#FFF;margin-left:10px">Create New Budget </a><br/><br/>
    <?php else: ?>
	    <span>&nbsp;&nbsp;</span>
    <?php endif; ?>

 
    
    <div class="card">
               
              <!-- /.card-header -->
              <div class="card-body">
                <table id="example1" class="table table-bordered table-striped">
                  <thead>
                  
                 <tr >
                  <th style="text-align:center;vertical-align: middle;background-color:#2C4E71;color:#FFF;border-color:#0000003c;border-width: 2px;"> أسم المزانية    </th>

                  <th style="text-align:center;vertical-align: middle;background-color:#2C4E71;color:#FFF;border-color:#0000003c;border-width: 2px;"> المبلغ   </th>
                  

                  <th style="text-align:center;vertical-align: middle;background-color:#2C4E71;color:#FFF;border-color:#0000003c;border-width: 2px;"> المبلغ المؤقت  </th>

                  <th style="text-align:center;vertical-align: middle;background-color:#2C4E71;color:#FFF;border-color:#0000003c;border-width: 2px;"> Actions  </th>

                 </tr>
                 </thead>
              <tbody>
                           
                <?php foreach( $budgets as $budget ): ?>   
                 
                 

                 
                <tr>
                 
                  <td style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:18px" ><?php echo e($budget->name); ?> </td>
                  <td style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:18px" ><?php echo e($budget->amount); ?> </td>
                  <td style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:18px" ><?php echo e($budget->temp_amount); ?> </td>

                  <td style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:18px" > 
                  <?php if( auth()->user()->edit_ ): ?>
                  <a   href='<?php echo e(url("/budget/edit/$budget->id")); ?>'  > <i class="fa fa-edit" style="font-size:18px"></i>  </a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                  <?php else: ?>
	                  <span>&nbsp;&nbsp;</span>
                  <?php endif; ?>
                 
                  <a   href='<?php echo e(url("/budget/feed/$budget->id")); ?>'  style="color:red"> تغذية  </a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                  
                  <a   href='<?php echo e(url("/budget/details/$budget->id")); ?>'  style="color:green"> تفاصيل  </a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                  
                </td>

                </tr>
               <?php endforeach; ?>
                </tbody>
                </table>
              </div>
              <!-- /.card-body -->
            </div>  

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

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