⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.19
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Server Software:
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
id
/
erp.dev-unit.com
/
storage
/
framework
/
views
/
View File Name :
dea1022f934182f18f622c159be835d9.php
<?php $__env->startSection('page-title'); ?> <?php echo e(__('Invoice Summary')); ?> <?php $__env->stopSection(); ?> <?php $__env->startSection('page-breadcrumb'); ?> <?php echo e(__('Report')); ?>, <?php echo e(__('Invoice Summary')); ?> <?php $__env->stopSection(); ?> <?php $__env->startPush('scripts'); ?> <script src="<?php echo e(asset('assets/js/plugins/apexcharts.min.js')); ?>"></script> <script> (function () { var chartBarOptions = { series: [ { name: '<?php echo e(__("Invoice")); ?>', data: <?php echo json_encode($invoiceTotal); ?>, }, ], chart: { height: 300, type: 'bar', 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(__("Invoice")); ?>' }, } }; var arChart = new ApexCharts(document.querySelector("#chart-sales"), chartBarOptions); arChart.render(); })(); </script> <script src="<?php echo e(asset('packages/workdo/Account/src/Resources/assets/js/html2pdf.bundle.min.js')); ?>"></script> <script> 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> <?php $__env->stopPush(); ?> <?php $__env->startSection('page-action'); ?> <div> <a class="btn btn-sm btn-primary" onclick="saveAsPDF()" data-bs-toggle="tooltip" data-bs-original-title="<?php echo e(__('Download')); ?>"> <i class="ti ti-download"></i> </a> </div> <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <div class="row"> <div class="col-sm-12"> <div class=" multi-collapse mt-2 " id="multiCollapseExample1"> <div class="card"> <div class="card-body"> <?php echo e(Form::open(array('route' => array('report.invoice.summary'),'method' => 'GET','id'=>'report_invoice_summary'))); ?> <div class="row align-items-center justify-content-end"> <div class="col-xl-10"> <div class="row"> <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('start_month', __('Start Month'),['class'=>'form-label'])); ?> <?php echo e(Form::month('start_month',isset($_GET['start_month'])?$_GET['start_month']: date('Y-m'), array('class' => 'month-btn 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('end_month', __('End Month'),['class'=>'form-label'])); ?> <?php echo e(Form::month('end_month',isset($_GET['end_month'])?$_GET['end_month']: date('Y-m'), array('class' => 'month-btn 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'=>'form-label'])); ?> <?php echo e(Form::select('customer',$customer,isset($_GET['customer'])?$_GET['customer']:'', array('class' => 'form-control ','placeholder' => 'Select Customer'))); ?> </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('status', __('Status'),['class'=>'form-label'])); ?> <?php echo e(Form::select('status', [''=>'Select Status']+$status,isset($_GET['status'])?$_GET['status']:'', array('class' => 'form-control '))); ?> </div> </div> </div> </div> <div class="col-auto"> <div class="row"> <div class="col-auto mt-4"> <a class="btn btn-sm btn-primary me-1" onclick="document.getElementById('report_invoice_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.invoice.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-trash-off 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['status'].' '.__('Invoice').' '.'Report of'.' '.$filter['startDateRange'].' to '.$filter['endDateRange'].' '.__('of').' '.$filter['customer']); ?>" id="filename"> <div class="card p-4 mb-4"> <h5 class="report-text gray-text mb-0"><?php echo e(__('Report')); ?> :</h5> <h6 class="report-text mb-0 mt-1"><?php echo e(__('Invoice Summary')); ?></h6> </div> </div> <?php if($filter['customer']!= __('All')): ?> <div class="col"> <div class="card p-4 mb-4"> <h5 class="report-text gray-text mb-0"><?php echo e(__('Customer')); ?> :</h5> <h6 class="report-text mb-0 mt-1"><?php echo e($filter['customer']); ?></h6> </div> </div> <?php endif; ?> <?php if($filter['status']!= __('All')): ?> <div class="col"> <div class="card p-4 mb-4"> <h5 class="report-text gray-text mb-0"><?php echo e(__('Status')); ?> :</h5> <h6 class="report-text mb-0 mt-1"><?php echo e($filter['status']); ?></h6> </div> </div> <?php endif; ?> <div class="col"> <div class="card p-4 mb-4"> <h5 class="report-text gray-text mb-0"><?php echo e(__('Duration')); ?> :</h5> <h6 class="report-text mb-0 mt-1"><?php echo e($filter['startDateRange'].' to '.$filter['endDateRange']); ?></h6> </div> </div> </div> <div class="row"> <div class="col-xl-4 col-md-6 col-lg-4"> <div class="card p-4 mb-4"> <h5 class="report-text gray-text mb-0"><?php echo e(__('Total Invoice')); ?></h5> <h6 class="report-text mb-0"><?php echo e(currency_format_with_sym($totalInvoice)); ?></h6> </div> </div> <div class="col-xl-4 col-md-6 col-lg-4"> <div class="card p-4 mb-4"> <h5 class="report-text gray-text mb-0"><?php echo e(__('Total Paid')); ?></h5> <h6 class="report-text mb-0"><?php echo e(currency_format_with_sym($totalPaidInvoice)); ?></h6> </div> </div> <div class="col-xl-4 col-md-6 col-lg-4"> <div class="card p-4 mb-4"> <h5 class="report-text gray-text mb-0"><?php echo e(__('Total Due')); ?></h5> <h6 class="report-text mb-0"><?php echo e(currency_format_with_sym($totalDueInvoice)); ?></h6> </div> </div> </div> <div class="row"> <div class="col-12" id="invoice-container"> <div class="card"> <div class="card-header"> <div class="d-flex justify-content-between w-100"> <ul class="nav nav-pills mb-3" id="pills-tab" role="tablist"> <li class="nav-item"> <a class="nav-link active" id="profile-tab3" data-bs-toggle="pill" href="#summary" role="tab" aria-controls="pills-summary" aria-selected="true"><?php echo e(__('Summary')); ?></a> </li> <li class="nav-item"> <a class="nav-link" id="contact-tab4" data-bs-toggle="pill" href="#invoices" role="tab" aria-controls="pills-invoice" aria-selected="false"><?php echo e(__('Invoices')); ?></a> </li> </ul> </div> </div> <div class="card-body"> <div class="row"> <div class="col-sm-12"> <div class="tab-content" id="myTabContent2"> <div class="tab-pane fade fade" id="invoices" role="tabpanel" aria-labelledby="profile-tab3"> <table class="table table-flush" id="report-dataTable"> <thead> <tr> <th> <?php echo e(__('Invoice')); ?></th> <th> <?php echo e(__('Date')); ?></th> <th> <?php echo e(__('Customer')); ?></th> <th> <?php echo e(__('Category')); ?></th> <th> <?php echo e(__('Status')); ?></th> <th> <?php echo e(__(' Paid Amount')); ?></th> <th> <?php echo e(__('Due Amount')); ?></th> <th> <?php echo e(__('Payment Date')); ?></th> <th> <?php echo e(__('Amount')); ?></th> </tr> </thead> <tbody> <?php $__empty_1 = true; $__currentLoopData = $invoices; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $invoice): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <tr> <td class="Id"> <a href="<?php echo e(route('invoice.show',\Crypt::encrypt($invoice->id))); ?>" class="btn btn-outline-primary"><?php echo e(\App\Models\Invoice::invoiceNumberFormat($invoice->invoice_id)); ?></a> </td> <td><?php echo e(company_date_formate($invoice->send_date)); ?></td> <td><?php echo e(!empty($invoice->customer)? $invoice->customer->name:'-'); ?> </td> <td><?php echo e(!empty($invoice->category)?$invoice->category->name:'-'); ?></td> <td> <?php if($invoice->status == 0): ?> <span class="badge bg-primary p-2 px-3"><?php echo e(__(App\Models\Invoice::$statues[$invoice->status])); ?></span> <?php elseif($invoice->status == 1): ?> <span class="badge bg-info p-2 px-3"><?php echo e(__(App\Models\Invoice::$statues[$invoice->status])); ?></span> <?php elseif($invoice->status == 2): ?> <span class="badge bg-secondary p-2 px-3"><?php echo e(__(App\Models\Invoice::$statues[$invoice->status])); ?></span> <?php elseif($invoice->status == 3): ?> <span class="badge bg-warning p-2 px-3"><?php echo e(__(App\Models\Invoice::$statues[$invoice->status])); ?></span> <?php elseif($invoice->status == 4): ?> <span class="badge bg-danger p-2 px-3"><?php echo e(__(App\Models\Invoice::$statues[$invoice->status])); ?></span> <?php endif; ?> </td> <td> <?php echo e(\currency_format_with_sym($invoice->getTotal()-$invoice->getDue())); ?></td> <td> <?php echo e(\currency_format_with_sym($invoice->getDue())); ?></td> <td><?php echo e(!empty($invoice->lastPayments)?company_date_formate($invoice->lastPayments->date):''); ?></td> <td> <?php echo e(\currency_format_with_sym($invoice->getTotal())); ?></td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <?php echo $__env->make('layouts.nodatafound', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php endif; ?> </tbody> </table> </div> <div class="tab-pane fade fade show active" id="summary" role="tabpanel" aria-labelledby="profile-tab3"> <div class="col-sm-12"> <div class="scrollbar-inner"> <div id="chart-sales" data-color="primary" data-type="bar" data-height="300" ></div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.main', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/id/erp.dev-unit.com/packages/workdo/Account/src/Providers/../Resources/views/report/invoice_report.blade.php ENDPATH**/ ?>