File manager - Edit - /var/www/payraty/accounting_main/storage/framework/views/70ff29b413c856748272eba3eb14ecf1.php
Back
<?php $__env->startSection('breadcrumb'); ?> <li class="breadcrumb-item"><a href="<?php echo e(route('dashboard')); ?>"><?php echo e(__('Dashboard')); ?> </a></li> <li class="breadcrumb-item active"><?php echo e(__('Income Summary')); ?></li> <?php $__env->stopSection(); ?> <?php $__env->startPush('theme-script'); ?> <script src="<?php echo e(asset('assets/js/plugins/apexcharts.min.js')); ?>"></script> <?php $__env->stopPush(); ?> <?php if (isset($_GET['category']) && $_GET['period'] == 'yearly') { $chartArr = []; foreach ($chartIncomeArr as $innerArray) { foreach ($innerArray as $value) { $chartArr[] = $value; } } } else { $chartArr = $chartIncomeArr[0]; } ?> <?php $__env->startPush('script-page'); ?> <script> (function() { var chartBarOptions = { series: [{ name: '<?php echo e(__('Income')); ?>', data: <?php echo json_encode($chartArr); ?>, }, ], chart: { height: 300, type: 'area', // type: 'line', dropShadow: { enabled: true, color: '#000', top: 18, left: 7, blur: 10, opacity: 0.2 }, toolbar: { show: false } }, dataLabels: { enabled: false }, stroke: { width: 2, curve: 'smooth' }, title: { text: '', align: 'left' }, xaxis: { categories: <?php echo json_encode($monthList); ?>, title: { text: '<?php echo e(__('Months')); ?>' } }, colors: ['#6fd944', '#6fd944'], grid: { strokeDashArray: 4, }, legend: { show: false, }, // markers: { // size: 4, // colors: ['#ffa21d', '#FF3A6E'], // opacity: 0.9, // strokeWidth: 2, // hover: { // size: 7, // } // }, yaxis: { title: { text: '<?php echo e(__('Income')); ?>' }, } }; var arChart = new ApexCharts(document.querySelector("#chart-sales"), chartBarOptions); arChart.render(); })(); </script> <script type="text/javascript" src="<?php echo e(asset('js/html2pdf.bundle.min.js')); ?>"></script> <script> var year = '<?php echo e($currentYear); ?>'; var filename = $('#filename').val(); function saveAsPDF() { var element = document.getElementById('printableArea'); var opt = { margin: 0.3, filename: filename, image: { type: 'jpeg', quality: 1 }, html2canvas: { scale: 4, dpi: 72, letterRendering: true }, jsPDF: { unit: 'in', format: 'A2' } }; html2pdf().set(opt).from(element).save(); } </script> <script src="<?php echo e(asset('js/jquery-ui.min.js')); ?>"></script> <?php $__env->stopPush(); ?> <?php $__env->startSection('content'); ?> <div class="row"> <div class="col-sm-12"> <div class="d-flex justify-content-end align-items-center gap-3 mt-3 mt-lg-0" style="margin-bottom: 25px"> <a href="#" onclick="saveAsPDF()"data-bs-toggle="tooltip" title="<?php echo e(__('Download')); ?>" data-original-title="<?php echo e(__('Download')); ?>" class="btn btn-outline-dark d-flex align-items-center"> <!-- <img src="<?php echo e(asset('assets/images/svg/export.svg')); ?>" class="w-4 h-4" alt="Export Customers Icon" /> --> <span class="ms-2">Download Income Summary</span> </a> </div> <div class=" multi-collapse mt-2 " id="multiCollapseExample1"> <div class="card"> <div class="card-body"> <?php echo e(Form::open(['route' => ['report.income.summary'], 'method' => 'GET', 'id' => 'report_income_summary'])); ?> <div class="row align-items-center justify-content-end"> <div class="col-xl-10"> <div class="row"> <?php if(isset($_GET['period']) && $_GET['period'] == 'yearly'): ?> <div class="col-xl-3 col-lg-3 col-md-6 col-sm-12 col-12"> </div> <div class="col-xl-3 col-lg-3 col-md-6 col-sm-12 col-12"> <div class="btn-box"> <?php echo e(Form::label('period', __('Period'), ['class' => 'text-type'])); ?> <?php echo e(Form::select('period', $periods, isset($_GET['period']) ? $_GET['period'] : '', ['class' => 'form-control period', 'id' => 'period-select'])); ?> </div> </div> <?php else: ?> <div class="col-xl-3 col-lg-3 col-md-6 col-sm-12 col-12"> <div class="btn-box"> <?php echo e(Form::label('period', __('Period'), ['class' => 'text-type'])); ?> <?php echo e(Form::select('period', $periods, isset($_GET['period']) ? $_GET['period'] : '', ['class' => 'form-control period', 'id' => 'period-select'])); ?> </div> </div> <div class="col-xl-3 col-lg-3 col-md-6 col-sm-12 col-12" id="year-select-box"> <div class="btn-box"> <?php echo e(Form::label('year', __('Year'), ['class' => 'text-type'])); ?> <?php echo e(Form::select('year', $yearList, isset($_GET['year']) ? $_GET['year'] : '', ['class' => 'form-control'])); ?> </div> </div> <?php endif; ?> <div class="col-xl-3 col-lg-3 col-md-6 col-sm-12 col-12"> <div class="btn-box"> <?php echo e(Form::label('category', __('Category'), ['class' => 'text-type'])); ?> <?php echo e(Form::select('category', $category, isset($_GET['category']) ? $_GET['category'] : '', ['class' => 'form-control'])); ?> </div> </div> <div class="col-xl-3 col-lg-3 col-md-6 col-sm-12 col-12"> <div class="btn-box"> <?php echo e(Form::label('customer', __('Customer'), ['class' => 'text-type'])); ?> <?php echo e(Form::select('customer', $customer, isset($_GET['customer']) ? $_GET['customer'] : '', ['class' => 'form-control'])); ?> </div> </div> </div> </div> <div class="col-auto"> <div class="row"> <div class="col-auto float-end ms-2 mt-4"> <a href="#" class="btn btn-sm btn-primary" onclick="document.getElementById('report_income_summary').submit(); return false;" data-bs-toggle="tooltip" title="<?php echo e(__('Apply')); ?>" data-original-title="<?php echo e(__('apply')); ?>"> <span class="btn-inner--icon"><i class="ti ti-search"></i></span> </a> <a href="<?php echo e(route('report.income.summary')); ?>" class="btn btn-sm btn-danger " data-bs-toggle="tooltip" title="<?php echo e(__('Reset')); ?>" data-original-title="<?php echo e(__('Reset')); ?>"> <span class="btn-inner--icon"><i class="ti ti-refresh text-white-off "></i></span> </a> </div> </div> </div> </div> </div> <?php echo e(Form::close()); ?> </div> </div> </div> </div> <div id="printableArea"> <div class="row mt-3"> <div class="col"> <input type="hidden" value="<?php echo e($filter['category'] . ' ' . __('Income Summary') . ' ' . 'Report of' . ' ' . $filter['startDateRange'] . ' to ' . $filter['endDateRange']); ?>" id="filename"> <div class="card p-4 mb-4"> <h7 class="report-text gray-text mb-0"><?php echo e(__('Report')); ?> :</h7> <h6 class="report-text mb-0"><?php echo e(__('Income Summary')); ?></h6> </div> </div> <?php if($filter['category'] != __('All')): ?> <div class="col"> <div class="card p-4 mb-4"> <h7 class="report-text gray-text mb-0"><?php echo e(__('Category')); ?> :</h7> <h6 class="report-text mb-0"><?php echo e($filter['category']); ?></h6> </div> </div> <?php endif; ?> <?php if($filter['customer'] != __('All')): ?> <div class="col"> <div class="card p-4 mb-4"> <h7 class="report-text gray-text mb-0"><?php echo e(__('Customer')); ?> :</h7> <h6 class="report-text mb-0"><?php echo e($filter['customer']); ?></h6> </div> </div> <?php endif; ?> <div class="col"> <div class="card p-4 mb-4"> <h7 class="report-text gray-text mb-0"><?php echo e(__('Duration')); ?> :</h7> <h6 class="report-text mb-0"><?php echo e($filter['startDateRange'] . ' to ' . $filter['endDateRange']); ?></h6> </div> </div> </div> <div class="row"> <div class="col-12" id="chart-container"> <div class="card summary"> <div class="card-body"> <div class="scrollbar-inner"> <div id="chart-sales" data-color="primary" data-height="300"></div> </div> </div> </div> </div> <div class="col-12 summary"> <div class="card"> <div class="card-body table-border-style"> <div class="table-responsive"> <table class="table "> <thead> <tr> <th><?php echo e(__('Category')); ?></th> <?php $__currentLoopData = $monthList; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $month): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <th><?php echo e($month); ?></th> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tr> </thead> <tbody> <tr> <td colspan="13" class="text-dark"><span><?php echo e(__('Revenue :')); ?></span></td> </tr> <?php $__currentLoopData = $incomeArr; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $i => $income): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td><?php echo e($income['category']); ?></td> <?php $__currentLoopData = $income['data']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $j => $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <td><?php echo e(\Auth::user()->priceFormat($data)); ?></td> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <tr> <td colspan="13" class="text-dark"><span><?php echo e(__('Invoice :')); ?></span></td> </tr> <?php $__currentLoopData = $invoiceArray; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $i => $invoice): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td><?php echo e($invoice['category']); ?></td> <?php $__currentLoopData = $invoice['data']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $j => $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <td><?php echo e(\Auth::user()->priceFormat($data)); ?></td> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <tr> <td colspan="13" class="text-dark"> <span><?php echo e(__('Income = Revenue + Invoice :')); ?></span> </td> </tr> <tr> <td class="text-dark"> <h6><?php echo e(__('Total')); ?></h6> </td> <?php $__currentLoopData = $chartIncomeArr; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $i => $income): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php $__currentLoopData = $income; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <td><?php echo e(\Auth::user()->priceFormat($value)); ?></td> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tr> </tbody> </table> </div> </div> </div> </div> </div> </div> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/payraty/accounting_main/resources/views/report/income_summary.blade.php ENDPATH**/ ?>
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings