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

    .user-info {
                margin: 0 auto;
                max-width: 100%;
                background-color: #f9f9f9;
                border: 1px solid #ddd;
                border-radius: 5px;
                padding: 10px;
                margin: 0 0 10px 0;
            }
      </style>
    
<div class="container-fluid px-4">

    <div class="card mt-4">
                   <div class="card-header">
                    <?php if(session('status')): ?>
                    <div class="alert alert-success"><?php echo e(session('status')); ?></div>
                <?php endif; ?>

                                  
                                  <div class="d-flex justify-content-between align-items-center mb-3">
                                    <h1 class=""><?php echo e(__('Billing')); ?></h1>
                                    
                                </div>
                                <div class="modal-body">
                                    <div class="user-info">
                                        <?php
                                        $user = Auth::user();

                                        ?>
                                    <?php if( $user->plan_type==0): ?>
                                     <p id="Plan">Current Plan: <?php echo e("Free"); ?></p>
                                     <?php elseif( $user->plan_type==1): ?>
                                     <p id="Plan">Current Plan: <?php echo e("Standard"); ?></p>
                                     <?php else: ?>
                                     <p id="Plan">Current Plan: <?php echo e("Premium"); ?></p>
                                     <?php endif; ?>
                                     <?php if( $user->status==0): ?>
                                     <p class="Status" id="Status">Status: <?php echo e("Deactive"); ?></p>
                                     <?php else: ?>
                                     <p class="Status" id="Status">Status: <?php echo e("Active"); ?></p>
                                     <?php endif; ?>
                                       
                                    <p  class="REG" id="REG"> Reg Date: <?php echo e($user->created_at); ?></p>
                
                                    </div>
                 
                                </div>
                                   
                  <div class="table-responsive text-nowrap">
                    <table id="myDataTable" class="table" width="100%" cellspacing="0">
                      <thead>
                          <tr>
                              
                              <th><?php echo e(__('Invoice No')); ?></th>
                              <th><?php echo e(__('Month')); ?></th>
                              <th><?php echo e(__('Due Date')); ?></th>
                              <th><?php echo e(__('Pay Date')); ?></th>
                              <th><?php echo e(__('Ammount')); ?></th>
                              <th><?php echo e(__('Status')); ?></th>
                              

                          </tr>
                      </thead>
                      <tbody  class="table-border-bottom-0">
                        <!-- Table rows -->
                        <?php $__currentLoopData = $billing_list; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $billing): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <tr>
                            
                            <td>
                                <?php echo e($billing->inv_no); ?>

                          </td>
                          <td>
                            <?php echo e($billing->month); ?>

                      </td>
                      <td>
                       <?php echo e($billing->due_date); ?> 
                        
                  </td>
                  <td>
                    <?php if($billing->pay_date!=Null): ?>
                    <?php echo e(\Carbon\Carbon::parse($billing->pay_date)->format('Y-m-d H:i')); ?>

                
                    <?php else: ?>
                    <?php echo e("N/A"); ?>

                    <?php endif; ?>
              </td>
              <td>
                <?php echo e($billing->amount); ?>

          </td>
          <td>
            <?php if( $billing->status==0 ): ?>
            <a href="<?php echo e(url('admin/update-billing-store/'.$billing->id)); ?>"  class="btn btn-success" > <?php echo e(__('pay')); ?></a>
            <a href="" class="btn btn-primary"> <?php echo e(__('print')); ?></a>
            <?php else: ?>
            <span class="text text-success"> <?php echo e(__('PAID')); ?> </span>
            <a href="" class="btn btn-primary"> <?php echo e(__('print')); ?></a>
        <?php endif; ?>
      </td>
                          
                        </tr>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </tbody>

                    
                  </table>
              </div>


                                
                              
                   </div>



  <script>
function confirmDelete() {
    return confirm('Are you sure you want to delete this user?');
}
</script>

    </div>

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

<?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/xorgeekc/public_html/medishop/resources/views/admin/admin_profile/shop_ad_billing.blade.php ENDPATH**/ ?>