
<?php $__env->startSection('content'); ?>
<?php echo $__env->make('sarf/business/business_js', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

<main class="container-fluid px-0 scroll-y">
  <div class="card card-dashboard rounded border-0 p-2 bg-light">
    <div class="nav-scroller bg-light shado-sm mx-3 mt-2 border">
      <nav class="nav nav-underline align-items-center">
        <li class="nav-item">
          <a class="nav-link font-weight-bold font-large p-1 px-2"><h4><?php echo e(trans('admin.detail')); ?></h4></a> 
        </li>
      </nav>
    </div>
    <div class="card-body p-0 p-md-2">
      <div class="p-3 rounded mb-2 clearfix bg-white shadow-sm">
        <div class="row align-items-center">
          <div class="col-md-4">
            <h3 class="font-100">
              <span class="text" style="font-weight:600;"><?php echo e($data['post'][0]->name); ?></span>
              <h6 class="text-muted"><?php echo e($data['post'][0]->username); ?></h6>
            </h3>
          </div>
          <div class="col mt-3 mt-md-0">
            <div class="row row-cols-2 row-cols-md-4 row-cols-sm-2 g-3 align-items-center">
              <!-- color cards  -->
              <div class="col ml-auto">
                <div class="card alert-warning">
                  <div class="card-body clearfix">
                      <div class="card-icon float-right">
                        <i class="bi-people" style="font-size: 2.3em"></i>
                    </div>
                    <h5 class="card-title font-weight-bold">
                        <a  class="text-warning no-deco" href="<?php echo e(url('/invoices/'.$data['post'][0]->id)); ?>"><?php echo e($data['invoices_count']); ?></a>
                    </h5>
                      <p class="card-text font-weight-bold"><?php echo e(trans('admin.Invoices')); ?></p>
                  </div>
                </div>
              </div>

              <div class="col">
                <div class="card alert-danger">
                  <div class="card-body">
                    <div class="card-icon float-right">
                        <i class="bi-layers" style="font-size: 2.3em"></i>
                    </div>
                    <h5 class="card-title font-weight-bold">
                      <a class="text-danger no-deco" href="<?php echo e(url('/subscriptions/'.$data['post'][0]->id)); ?>"><?php echo e($data['subscription_count']); ?></a>
                    </h5>
                    <p class="card-text font-weight-bold"><?php echo e(trans('admin.Subscription')); ?></p>
                  </div>
                </div>
              </div>

              <div class="col">
                <div class="card alert-success">
                  <div class="card-body">
                    <div class="card-icon float-right">
                        <i class="bi-people" style="font-size: 2.3em"></i>
                    </div>
                    <h5 class="card-title font-weight-bold">
                        <a class="text-success no-deco" href="<?php echo e(url('/invoices/'.$data['post'][0]->id)); ?>"><?php echo e($data['invoices_count']); ?></a>
                    </h5>
                    <p class="card-text font-weight-bold"><?php echo e(trans('admin.Admin_Users')); ?></p>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>

      <div class="row g-2">
        <div class="col-md-4">
            <div class="card shadow-sm border-0 p-3 mb-2">
                <div class="card-header border-0 bg-white py-1  px-1">
                    <h4 class="mb-0 pl-1 mt-3"><?php echo e(trans('admin.Invoices')); ?></h4>
                </div>
                <div class="card-body px-0">
                    <div class="table-responsive table-scroll p-0" style="min-height: 185px; max-height: 185;">
                        <table class="table table-success  table-sm table-hover mb-0 table-bordered">
                            <thead>
                                <tr class="text-center">
                                    <th class="text-lowercase"><?php echo e(trans('admin.Id')); ?></th>
                                    <th class="text-left"><?php echo e(trans('admin.date')); ?></th>
                                    <th class="text-left"><?php echo e(trans('admin.net_total')); ?></th>
                                </tr>
                            </thead>
                            <tbody class="text-center" id="entries">
                              <?php $counter=0; ?>
                              <?php $__currentLoopData = $data['invoices']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <tr id="<?php echo e($row->id); ?>">
                                  <td><?php echo e($counter+=1); ?></td>
                                  <td><?php echo e($row->date); ?></td>
                                  <td><?php echo e($row->net_total); ?></td>
                                </tr>
                              <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-md-4">
            <div class="card shadow-sm border-0 p-3 mb-2">
                <div class="card-header border-0 bg-white py-1  px-1">
                    <h4 class="mb-0 pl-1 mt-3"><?php echo e(trans('admin.Subscription')); ?></h4>
                </div>
                <div class="card-body px-0">
                    <div class="table-responsive table-scroll p-0" style="min-height: 185px; max-height: 185;">
                        <table class="table table-danger table-sm table-hover mb-0 table-bordered">
                            <thead>
                                <tr class="text-center">
                                    <th class="text-lowercase"><?php echo e(trans('admin.Id')); ?></th>
                                    <th class="text-left"><?php echo e(trans('admin.package')); ?></th>
                                    <th class="text-left"><?php echo e(trans('admin.end_date')); ?></th>
                                </tr>
                            </thead>
                            <tbody class="text-center" id="entries">
                              <?php $counter=0; ?>
                              <?php $__currentLoopData = $data['subscription']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <tr id="<?php echo e($row->id); ?>">
                                  <td><?php echo e($counter+=1); ?></td>
                                  <td><?php echo e(pkgName($row->pkg_id)); ?></td>
                                  <td><?php echo e($row->end_date); ?></td>
                                </tr>
                              <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-md-4">
            <div class="card shadow-sm border-0 p-3 mb-2">
                <div class="card-header border-0 bg-white py-1  px-1">
                    <h4 class="mb-0 pl-1 mt-3"><?php echo e(trans('admin.Subscription')); ?></h4>
                </div>
                <div class="card-body px-0">
                    <div class="table-responsive table-scroll p-0" style="min-height: 185px; max-height: 185;">
                        <table class="table table-warning table-sm table-hover mb-0 table-bordered">
                            <thead>
                                <tr class="text-center">
                                    <th class="text-lowercase"><?php echo e(trans('admin.Id')); ?></th>
                                    <th class="text-left"><?php echo e(trans('admin.date')); ?></th>
                                    <th class="text-left"><?php echo e(trans('admin.net_total')); ?></th>
                                </tr>
                            </thead>
                            <tbody class="text-center" id="entries">
                              <?php $counter=0; ?>
                              <?php $__currentLoopData = $data['invoices']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <tr id="<?php echo e($row->id); ?>">
                                  <td><?php echo e($counter+=1); ?></td>
                                  <td><?php echo e($row->date); ?></td>
                                  <td><?php echo e($row->net_total); ?></td>
                                </tr>
                              <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
      </div>
    </div> <!-- card body end -->
  </div>
</main>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layout.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\HomesteadStuff\code\manage_sarfapp\resources\views/sarf/business/detail.blade.php ENDPATH**/ ?>