Viewing file: f6487225ab391e87bf10deccce14f0f9f462cf50.php (6.91 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title',trans('layout.report')); ?>
<?php $__env->startSection('css'); ?>
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/daterangepicker/daterangepicker.css"/>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('main-content'); ?>
<div class="row page-titles mx-0">
<div class="col-12">
<div class="card">
<div class="card-body">
<form action="">
<div class="row">
<div class="col-3">
<select name="customer_id" id="customer_id" class="form-control"
title="<?php echo e(trans('layout.select_customer')); ?>">
<option <?php echo e(request()->get('customer_id')=='all'?'selected':''); ?> value="all"><?php echo e(trans('layout.all')); ?></option>
<?php $__currentLoopData = $customers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $customer): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<option
<?php echo e(request()->get('customer_id')==$customer->id?'selected':''); ?> value="<?php echo e($customer->id); ?>"><?php echo e(substr($customer->name, 0, 30)); ?>
(<?php echo e($customer->email); ?>)
</option>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</select>
</div>
<div class="col-3">
<select name="plan_id" id="plan_id" class="form-control"
title="<?php echo e(trans('layout.select_plan')); ?>">
<option <?php echo e(request()->get('plan_id')=='all'?'selected':''); ?> value="all"><?php echo e(trans('layout.all')); ?></option>
<?php $__currentLoopData = $plans; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $plan): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<option
<?php echo e(request()->get('plan_id')==$plan->id?'selected':''); ?> value="<?php echo e($plan->id); ?>"><?php echo e($plan->title); ?>
(<?php echo e(formatNumberWithCurrSymbol($plan->cost)); ?>)
</option>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</select>
</div>
<div class="col-3">
<input value="<?php echo e(request()->get('from_to_dates')); ?>" type="text" class="form-control" name="from_to_dates">
</div>
<div class="col-3 pt-2">
<button type="submit" class="btn btn-sm btn-primary"><?php echo e(trans('layout.submit')); ?></button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<!-- row -->
<div class="row">
<div class="col-lg-12">
<div class="card">
<div class="card-header">
<h4 class="card-title"><?php echo e(trans('layout.report')); ?></h4>
</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-responsive-md">
<thead>
<tr>
<th><strong><?php echo e(trans('layout.name')); ?></strong></th>
<th><strong><?php echo e(trans('layout.plan_name')); ?></strong></th>
<th><strong><?php echo e(trans('layout.cost')); ?></strong></th>
</tr>
</thead>
<tbody>
<?php $totalCost=0; ?>
<?php $__currentLoopData = $userPlans; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $userPlan): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td> <?php if($userPlan->user->name): ?><a title="<?php echo e($userPlan->user->email); ?>"
class="text-blue"
href="<?php echo e(route('customers.edit',['user'=>$userPlan->user])); ?>"><?php echo e($userPlan->user->name); ?></a> <?php endif; ?>
</td>
<td> <?php if($userPlan->plan->title): ?><a class="text-blue"
href="<?php echo e(route('plan.edit',['plan'=>$userPlan->plan])); ?>"><?php echo e($userPlan->plan->title); ?></a> <?php endif; ?>
</td>
<?php $totalCost+=$userPlan->cost ?>
<td><?php echo e(formatNumberWithCurrSymbol($userPlan->cost)); ?></td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<tr>
<td></td>
<td class="text-right"><?php echo e(trans('layout.total')); ?>:</td>
<td class="font-weight-bold"><?php echo e(formatNumberWithCurrSymbol($totalCost)); ?></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('js'); ?>
<script type="text/javascript" src="https://cdn.jsdelivr.net/momentjs/latest/moment.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/daterangepicker/daterangepicker.min.js"></script>
<script>
$('input[name="from_to_dates"]').daterangepicker();
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.dashboard', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/picotech/domains/qr.picotech.app/public_html/resources/views/reports/index.blade.php ENDPATH**/ ?>
|