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

    <br/>
    <?php if( auth()->user()->create_ ): ?>
    <a href="<?php echo e(url('/safe_account/create')); ?>"  class="btn" style="background-color:#2C4E71;color:#FFF;margin-left:10px">Create Safe Account </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;"> Actions   </th>
                  

                 </tr>
                 </thead>
              <tbody>
                           
                <?php foreach( $safe_accounts as $safe_account ): ?>   
                 
                 

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

                  <td style="text-align:center; width:50px;word-break: break-word;" > 
                  <?php if( auth()->user()->edit_ ): ?>
                  <a   href='<?php echo e(url("#")); ?>'  > <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; ?>
                  <?php if( auth()->user()->delete_ ): ?>
                  <a   href='<?php echo e(url("#")); ?>' onclick="return confirm('Are you sure you want to delete this item?');" > <i class="fa fa-trash" style="font-size:18px; color:red"></i>  </a>
                  <?php else: ?>
	                  <span>&nbsp;&nbsp;</span>
                  <?php endif; ?>
                </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(); ?>