File manager - Edit - /var/www/payraty/accounting_main/storage/framework/views/5040d33d0f31ca94c2e55d3f5268397e.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(__('Transaction Summary')); ?></li> <?php $__env->stopSection(); ?> <?php $__env->startPush('css-page'); ?> <link rel="stylesheet" href="<?php echo e(asset('css/datatable/buttons.dataTables.min.css')); ?>"> <?php $__env->stopPush(); ?> <?php $__env->startPush('script-page'); ?> <script type="text/javascript" src="<?php echo e(asset('js/html2pdf.bundle.min.js')); ?>"></script> <script src="<?php echo e(asset('js/datatable/jszip.min.js')); ?>"></script> <script src="<?php echo e(asset('js/datatable/pdfmake.min.js')); ?>"></script> <script src="<?php echo e(asset('js/datatable/vfs_fonts.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: 'A4'} }; html2pdf().set(opt).from(element).save(); } </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="<?php echo e(route('transaction.export')); ?>" 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">Export Transaction Summary</span> </a> <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 Transaction Summary</span> </a> </div> <div class=" multi-collapse mt-2 " id="multiCollapseExample1"> <div class="card"> <div class="card-body"> <?php echo e(Form::open(array('route' => array('transaction.index'),'method'=>'get','id'=>'transaction_report'))); ?> <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' => 'text-type'])); ?> <?php echo e(Form::month('start_month',null,array('class'=>'month-btn form-control','placeholder'=>'Start Month'))); ?> </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' => 'text-type'])); ?> <?php echo e(Form::month('end_month',null,array('class'=>'month-btn form-control','placeholder'=>'Start Month'))); ?> </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('account', __('Account'), ['class' => 'text-type'])); ?> <?php echo e(Form::select('account', $account,isset($_GET['account'])?$_GET['account']:'', array('class' => 'form-control select'))); ?> </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('category', __('Category'), ['class' => 'text-type'])); ?> <?php echo e(Form::select('category', $category,isset($_GET['category'])?$_GET['category']:'', array('class' => 'form-control select'))); ?> </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('transaction_report').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('transaction.index')); ?>" 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"> <div class="col"> <input type="hidden" value="<?php echo e($filter['category'].' '.__('Category').' '.__('Transaction').' '.'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(__('Transaction Summary')); ?></h6> </div> </div> <?php if($filter['account']!= __('All')): ?> <div class="col"> <div class="card p-4 mb-4"> <h7 class="report-text gray-text mb-0"><?php echo e(__('Account')); ?> :</h7> <h6 class="report-text mb-0"><?php echo e($filter['account']); ?></h6> </div> </div> <?php endif; ?> <?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; ?> <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"> <?php $__currentLoopData = $accounts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $account): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="col-xl-3 col-md-6 col-lg-3"> <div class="card p-4 mb-4"> <?php if($account->holder_name =='Cash'): ?> <h6 class="report-text gray-text mb-0"><?php echo e($account->holder_name); ?></h6> <?php elseif(empty($account->holder_name)): ?> <h6 class="report-text gray-text mb-0"><?php echo e(__('Stripe / Paypal')); ?></h6> <?php else: ?> <h6 class="report-text gray-text mb-0"><?php echo e($account->holder_name.' - '.$account->bank_name); ?></h6> <?php endif; ?> <h7 class="report-text mb-0"><?php echo e(\Auth::user()->priceFormat($account->total)); ?></h7> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </div> <div class="row"> <div class="col-md-12"> <div class="card"> <div class="card-body table-border-style"> <div class="table-responsive"> <table class="table datatable"> <thead> <tr> <th><?php echo e(__('Date')); ?></th> <th><?php echo e(__('Account')); ?></th> <th><?php echo e(__('Type')); ?></th> <th><?php echo e(__('Category')); ?></th> <th><?php echo e(__('Description')); ?></th> <th><?php echo e(__('Amount')); ?></th> </tr> </thead> <tbody> <?php if($transactions->isEmpty()): ?> <tr> <td colspan="10" class="text-center"> <img src="<?php echo e(asset('assets/images/no-data.png')); ?>" alt="No Data" style="max-width: 350px; margin-bottom: 50px; margin-top: 150px;"> <p><?php echo e(__('Oops, no report yet.')); ?></p> <?php else: ?> <?php $__currentLoopData = $transactions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $transaction): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td><?php echo e(\Auth::user()->dateFormat($transaction->date)); ?></td> <td> <?php if(!empty($transaction->bankAccount()) && $transaction->bankAccount()->holder_name=='Cash'): ?> <?php echo e($transaction->bankAccount()->holder_name); ?> <?php else: ?> <?php echo e(!empty($transaction->bankAccount())?$transaction->bankAccount()->bank_name.' '.$transaction->bankAccount()->holder_name:'-'); ?> <?php endif; ?> </td> <td><?php echo e($transaction->type); ?></td> <td><?php echo e($transaction->category); ?></td> <td><?php echo e(!empty($transaction->description)?$transaction->description:'-'); ?></td> <td><?php echo e(\Auth::user()->priceFormat($transaction->amount)); ?></td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> </tbody> </table> </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/transaction/index.blade.php ENDPATH**/ ?>
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings