Current File : //home/tradevaly/www/storage/framework/views/79499bdea6cf6dadc3b043f75ac26f0beb6d415f.php |
<?php $__env->startPush('title'); ?> Income Lists <?php $__env->stopPush(); ?>
<?php $__env->startSection('css'); ?>
<style>
.th-white-space th{
white-space: nowrap;
}
</style>
<!-- DataTables -->
<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'); ?> Dashboards <?php $__env->endSlot(); ?>
<?php $__env->slot('title'); ?> Income Lists <?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><?php echo e(translate('Member ID')); ?></th>
<th><?php echo e(translate('Name')); ?></th>
<th><?php echo e(translate('Comapany Name')); ?></th>
<th><?php echo e(translate('Contact Number')); ?></th>
<th><?php echo e(translate('Amount')); ?></th>
<th><?php echo e(translate('Package')); ?></th>
<th><?php echo e(translate('Status')); ?></th>
<th><?php echo e(translate('Action')); ?></th>
</tr>
</thead>
<tbody>
<?php $__currentLoopData = $incomes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $income): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td class="text-center"><?php echo e($loop->iteration); ?></td>
<td>
<?php echo e($income->id); ?>
</td>
<td>
<?php echo e($income->user? $income->user->name:"User Not Exists"); ?>
</td>
<td>
<?php if($income->user): ?>
<?php echo e($income->user->company? $income->user->company->name:"Null"); ?>
<?php else: ?>
Company Not Exists
<?php endif; ?>
</td>
<td>
<?php if($income->user): ?>
<?php echo e($income->user->company? $income->user->company->phone:"Null"); ?>
<?php else: ?>
Null
<?php endif; ?>
</td>
<td>
Tk. <?php echo e($income->amount); ?>
</td>
<td>
<?php if($income->package): ?>
<img style="height: 50px; width:50px; border-radius:50%;" src="<?php echo e(asset('storage/images/admin/package/'.$income->package->image)); ?>" alt="">
<?php echo e($income->package->name); ?>
<?php endif; ?>
</td>
<td>
<?php if($income->status==1): ?>
Active
<?php else: ?>
Disabled
<?php endif; ?>
</td>
<td>
<a class="btn btn-success btn-sm d-block mb-2"
href="<?php echo e(route('admin.income.invoice_details',$income->id)); ?>">
Invoice
</a>
<?php if($income->payment_status == 'paid'): ?>
<a class="btn btn-warning btn-sm d-block" href="<?php echo e(route('admin.income.money_receipt',$income->id)); ?>">
Money Receipt
</a>
<?php endif; ?>
</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/category/income.blade.php ENDPATH**/ ?>