|
Server : Apache/2.4.41 (Ubuntu) System : Linux vmi1525618.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64 User : www-data ( 33) PHP Version : 8.2.12 Disable Function : NONE Directory : /var/www/leadai/leadai.co.in/storage/framework/views/ |
Upload File : |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Distributor License Report</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<style>
body {
margin: 20px;
}
.table thead th {
background-color: #007bff;
color: #fff;
font-size:11px;
}
.table td{
font-size:10px;
}
.table tfoot th {
background-color: #f8f9fa;
}
.address-tag{
width:100% !important;
}
.row-box{
width:100% !important;
display: table; /* Use table layout */
table-layout: fixed;
}
.col-md-6{
width:50% !important;
padding:20px !important;
}
p{
font-size:15px;
}
table tr td{
padding:10px;
}
</style>
</head>
<body>
<div class="container-fluid" style="width:100%">
<div class="header-box d-flex justify-content-center">
<img src="<?php echo e(asset('public/logo.png')); ?>" width="180" alt="logo" />
</div>
<div class="address-tag">
<table class="row-box" >
<tr>
<td class="col-md-6" >
<p>
Issue Date:<?php
$date = date('d-m-Y H:i:s');
echo $date;
?>
</p>
<p><strong>Edukrypt Corporation Private Limited </strong></p>
<p><strong>Phone : +91 873432234234</strong></p>
<p><strong>Email : connect@edukrypt.com</strong></p>
<p><strong>GSTTIN : </strong></p>
<p><strong>Website : </strong></p>
<p><strong>Contact Name : </strong></p>
<p><strong>Address: 7th Floor, TS-01, Galaxy Blue Sapphire Plaza, Plot No. C-03, Sector-4, Haibatpur, Greater Noida, Ghaziabad, Uttar Pradesh 201306</strong></p>
</td>
<td class="col-md-6" >
<p><strong>Name : <?php echo e($distributor->name); ?></strong></p>
<p><strong>Mobile : <?php echo e($distributor->mobile); ?></strong></p>
<p><strong>Email : <?php echo e($distributor->email); ?></strong></p>
<p><strong>Address : <?php echo e($distributor->address); ?></strong></p>
<p><strong>City : <?php echo e($distributor->city); ?></strong></p>
<p><strong>ZIP : <?php echo e($distributor->zipcode); ?></strong></p>
</td>
</tr>
</table>
</div>
<div class="line"></div>
<div class="mb-3">
<p class="text-capitalize py-0"> <strong>Distributor : <?php echo e($distributor->name); ?></strong></p>
<p class="py-0"> Date : <span id="report-date">
<?php
$date = date('d-m-Y H:i:s');
echo $date;
?>
</span></p>
</div>
<div class="row">
<div class="col-md-12">
<table class="table table-bordered" >
<thead style="background-color:#E9EEF1">
<tr>
<th>S.No</th>
<th>Created Date</th>
<th>License Key</th>
<th>Activation Date</th>
<th>Duration</th>
<th>Renewal Date</th>
<th>Commission</th>
<th>GST</th>
<th>Discount Type</th>
<th>Discount</th>
<th>Price (INR)</th>
<th>Total Price</th>
</tr>
</thead>
<tbody>
<?php $total = 0; ?>
<?php $__currentLoopData = $licence; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td><?php echo e(++$key); ?></td>
<td><?php echo e($value->licence_details ? $value->licence_details->created_date : ''); ?></td>
<td><?php echo e($value->licence_details ? $value->licence_details->licence_key : ''); ?></td>
<td><?php echo e($value->licence_details ? $value->licence_details->activation_date : ''); ?></td>
<td><?php echo e($value->licence_details ? $value->licence_details->duration : ''); ?></td>
<td>
<?php if(isset($value->licence_details)): ?>
<?php
$activationDate = \Carbon\Carbon::parse($value->licence_details->activation_date);
$renewalDate = $activationDate->addDays($value->licence_details->duration);
?>
<?php echo e($renewalDate->format('Y-m-d')); ?>
<?php endif; ?>
</td>
<td>
<?php echo e($value->commission_details ? $value->commission_details->amount : ''); ?>
</td>
<td>
<?php echo e($distributor->gst); ?>
</td>
<td><?php echo e($value->licence_details ? $value->licence_details->discount_type : ''); ?></td>
<td><?php echo e($value->licence_details ? $value->licence_details->discount : ''); ?></td>
<td>
<?php if(isset($value->licence_details)): ?>
<?php if($value->licence_details->currency == 'rupee'): ?>
<?php echo e($value->licence_details ? $value->licence_details->price : ''); ?>
<?php else: ?>
$ <?php echo e($value->licence_details ? $value->licence_details->price : ''); ?>
<?php endif; ?>
<?php endif; ?>
</td>
<td>
<?php if(isset($value->licence_details)): ?>
<?php
$gst = ($value->licence_details->price * $distributor->gst) /100;
$price = $value->licence_details->price + $gst;
?>
<?php if($value->licence_details->currency == 'rupee'): ?>
<?php echo e($value->licence_details->price + $gst); ?>
<?php else: ?>
$ <?php echo e($value->licence_details->price + $gst); ?>
<?php endif; ?>
<?php endif; ?>
</td>
</tr>
<?php
$total += $price;
?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
<tfoot>
<tr>
<th colspan="10" class="text-end">Total Amount:</th>
<th colspan="3"><?php echo "INR ".$total; ?></th>
</tr>
</tfoot>
</table>
</div>
</div>
</div>
<script>
// Auto-fill the current date in the report
</script>
</body>
</html>
<?php /**PATH C:\xampp\htdocs\licence_panel\resources\views/pdf/report.blade.php ENDPATH**/ ?>