Current File : //home/tradevaly/public_html/storage/framework/views/c8313266a0266a5967f6aee15e1f4ecca46b32e8.php |
<?php $__env->startPush('title'); ?> Subscribers | B2B Admin <?php $__env->stopPush(); ?>
<?php $__env->startSection('css'); ?>
<style>
.th-white-space th {
white-space: nowrap;
}
</style>
<link href="<?php echo e(asset('/assets/libs/datatables/datatables.min.css')); ?>" rel="stylesheet" type="text/css"/>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<?php $__env->startComponent('components.breadcrumb'); ?>
<?php $__env->slot('li_1'); ?> Dashboard <?php $__env->endSlot(); ?>
<?php $__env->slot('title'); ?> Subscribers <?php $__env->endSlot(); ?>
<?php echo $__env->renderComponent(); ?>
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-body">
<div class="table-responsive">
<table class="table th-white-space" id="datatable-buttons">
<thead>
<tr>
<th class="text-center">#</th>
<th>User</th>
<th>Order Id</th>
<th>Transaction Type</th>
<th>Payment Method</th>
<th>Status</th>
<th>Discount</th>
<th>Amount</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php $__currentLoopData = $transactions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $transaction): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td class="text-center"><?php echo e($loop->iteration); ?></td>
<td>
<?php echo e($transaction->user? $transaction->user->name:"User Not Exists"); ?>
</td>
<td>
<?php echo e($transaction->order_id); ?>
</td>
<td>
<?php echo e($transaction->order_from); ?> (<?php echo e($transaction->order_status); ?> )
</td>
<td>
<?php echo e($transaction->payment_method); ?>
</td>
<td>
<span class="badge bg-<?php echo e($transaction->payment_status == 'paid' ? 'success' : ($transaction->payment_status == 'unpaid' ? 'warning' : 'danger')); ?>"><?php echo e($transaction->payment_status); ?></span>
</td>
<td>
Tk. <?php echo e($transaction->discount_amount); ?>
</td>
<td>
Tk. <?php echo e($transaction->total_amount); ?>
</td>
<td>
<!--<div class="btn-group" role="group" aria-label="Basic example">-->
<?php if(!empty($transaction->subscriber)): ?>
<a class="btn btn-info btn-sm d-block mb-2 btn-sm"
href="<?php echo e(route('admin.subscriber.invoice_details',$transaction->subscriber->id)); ?>">
Invoice
</a>
<?php if($transaction->subscriber->payment_status == 'paid'): ?>
<a style="white-space: nowrap;" class="btn btn-success mb-2 btn-sm d-block text-nowrap"
href="<?php echo e(route('admin.subscriber.money_receipt',$transaction->subscriber->id)); ?>">
Money Receipt
</a>
<?php endif; ?>
<?php endif; ?>
<?php if(!empty($transaction->order_from == "product")): ?>
<a style="white-space: nowrap;" class="btn btn-info btn-sm d-block mb-2 btn-sm"
href="<?php echo e(route('admin.product_invoice',$transaction->order_id)); ?>">Invoice
</a>
<?php if($transaction->payment_status == 'paid'): ?>
<a style="white-space: nowrap;" class="btn btn-success mb-2 btn-sm d-block text-nowrap"
href="<?php echo e(route('admin.product_money_receipt',$transaction->order_id)); ?>">
<i class="fa fa-download"></i> Money Receipt
</a>
<?php endif; ?>
<?php endif; ?>
<?php if(!empty($transaction->advertiser)): ?>
<a class="btn btn-info btn-sm d-block mb-2 btn-sm"
href="<?php echo e(route('admin.advertiser.invoice_details',$transaction->advertiser->id)); ?>">
<i class="fa fa-download"></i> Invoice
</a>
<?php if($transaction->advertiser->payment_status == 'paid'): ?>
<a style="white-space: nowrap;" class="btn btn-success mb-2 btn-sm d-block text-nowrap" href="<?php echo e(route('admin.advertiser.money_receipt',$transaction->advertiser->id)); ?>">
<i class="fa fa-download"></i> Money Receipt
</a>
<?php endif; ?>
<?php endif; ?>
<!--</div>-->
</td>
<!-- <div class="btn-group btn-group-sm" role="group" aria-label="Basic example">-->
<!-- <a href="<?php echo e(route('admin.transaction.details',$transaction->id)); ?>" class="btn btn-primary"><i class="fas fa-eye"></i></a>-->
<!--<button type="button" class="btn btn-info"><i class="fas fa-envelope"></i></button>-->
<!-- </div>-->
<!--</td>-->
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<!-- end row -->
<?php $__env->stopSection(); ?>
<?php $__env->startSection('script'); ?>
<!-- Required datatable js -->
<script src="<?php echo e(asset('/assets/libs/datatables/datatables.min.js')); ?>"></script>
<script src="<?php echo e(asset('/assets/libs/jszip/jszip.min.js')); ?>"></script>
<script src="<?php echo e(asset('/assets/libs/pdfmake/pdfmake.min.js')); ?>"></script>
<!-- Datatable init js -->
<script type="text/javascript">
$(function () {
$(document).ready(function () {
var table = $('#datatable-buttons').DataTable({
lengthChange: false,
processing: true,
dom: 'Bfrtip',
buttons: ['copy', 'excel', 'pdf', 'colvis']
});
table.buttons().container().appendTo('#datatable-buttons_wrapper .col-md-6:eq(0)');
$(".dataTables_length select").addClass('form-select form-select-sm');
});
});
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('backend.ayaan.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/tradevaly/public_html/resources/views/backend/pages/transaction/index.blade.php ENDPATH**/ ?>