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

<div class="row">
        <div class="col-md-12">

          <!-- Profile Image -->
          <div class="box box-primary">
            <div class="box-body box-profile">
              <img class="profile-user-img img-responsive img-circle" src="../../dist/img/user1-128x128.jpg" alt="User profile picture">

              <h3 class="profile-username text-center"><?php echo e($customer->name); ?></h3>

              <p class="text-muted text-center"><?php echo e($customer->adress); ?></p>
              <p class="text-muted text-center"><?php echo e($customer->phone); ?></p>
               <h2 class="text-center">
                  <b class="pull-right" style="margin-right:300px">المحفظة</b> 
                  <a class="pull-left" style="margin-left:300px"> <strong> <?php echo e($customer->payment); ?> </strong></a>
              </h2>
             
             </div>
            <!-- /.box-body -->
          </div>
          <!-- /.box -->

          
          <!-- /.box -->
        </div>
 </div>
        
        <div class="box">
             
             <!-- /.box-header -->
             <div class="box-body">
               <table dir="rtl" id="example2" class="table table-bordered table-striped">
                 <thead>
                 <tr>
                   <th style="text-align:center"> رقم الفاتوره </th>
                   <th style="text-align:center"> التاريخ </th>
                   
                   <th style="text-align:center" >الشحن </th>
                   <th style="text-align:center"> سعر الفاتورة  </th>
                   <th style="text-align:center"> الدفع  </th>
                   <th style="text-align:center"> الاكشن  </th>
                   </tr>
                 </thead>
                 <tbody>
                  <?php foreach( $customer_all_bills as $bill ): ?>   
                 <tr>
                 <td style="text-align:center">
                 <a  href='<?php echo e(url("/bills/print/$bill->id")); ?>'>
                   <?php echo e($bill->id); ?>

                   </a>
                 </td>
                   <td style="text-align:center">
                   
                   <?php echo e(date('d-m-Y', strtotime($bill->created_at))); ?>

                   </td>
                   
                   <td style="text-align:center">
                   <?php echo e($bill->transport); ?>

                   </td>
                   <td style="text-align:center">
                   <strong>
                   <?php echo e($bill->total_bill_price); ?>

                   </strong>
                   </td>
                   <td style="text-align:center">
                   <strong>
                   <?php echo e($bill->payments); ?>

                   </strong>
                   </td>
                  
                   <td style="text-align:center">
                   <a  href='<?php echo e(url("/bill/delete/$bill->id/$customer->id")); ?>' onclick="return confirm('  هل تريد مسح الفاتورة ؟  ')">
                   <strong>
                    مسح
                   </strong>
                   </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(); ?>