{Ninja-Shell}
Home
Info
Upload
Command
View /etc/passwd
cPanel Reset Password
Filename: /var/www//arsu//storage///framework/views//343b0a0c0705380f47f5e06fcbe799b52b24ed84.php
<?php $__env->startSection('title', \App\CPU\translate('expense_transaction')); ?> <?php $__env->startSection('content'); ?> <div class="content container-fluid "> <!-- Page Title --> <div class="mb-4"> <h2 class="h1 mb-0 text-capitalize d-flex align-items-center gap-2"> <img width="20" src="<?php echo e(asset('/public/assets/back-end/img/order_report.png')); ?>" alt=""> <?php echo e(\App\CPU\translate('transaction_report')); ?> </h2> </div> <!-- End Page Title --> <!-- Inlile Menu --> <?php echo $__env->make('admin-views.report.transaction-report-inline-menu', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <!-- End Inlile Menu --> <div class="card mb-2"> <div class="card-body"> <form action="#" id="form-data" method="GET"> <h4 class="mb-3"><?php echo e(\App\CPU\translate('Filter_Data')); ?></h4> <div class="row gy-2 align-items-center text-<?php echo e(Session::get('direction') === "rtl" ? 'right' : 'left'); ?>"> <div class="col-sm-6 col-md-3"> <select class="form-control __form-control" name="date_type" id="date_type"> <option value="this_year" <?php echo e($date_type == 'this_year'? 'selected' : ''); ?>><?php echo e(\App\CPU\translate('this_year')); ?></option> <option value="this_month" <?php echo e($date_type == 'this_month'? 'selected' : ''); ?>><?php echo e(\App\CPU\translate('this_month')); ?></option> <option value="this_week" <?php echo e($date_type == 'this_week'? 'selected' : ''); ?>><?php echo e(\App\CPU\translate('this_week')); ?></option> <option value="custom_date" <?php echo e($date_type == 'custom_date'? 'selected' : ''); ?>><?php echo e(\App\CPU\translate('custom_date')); ?></option> </select> </div> <div class="col-sm-6 col-md-3" id="from_div"> <div class="form-floating"> <input type="date" name="from" value="<?php echo e($from); ?>" id="from_date" class="form-control __form-control"> <label><?php echo e(\App\CPU\translate('Start Date')); ?></label> </div> </div> <div class="col-sm-6 col-md-3" id="to_div"> <div class="form-floating"> <input type="date" value="<?php echo e($to); ?>" name="to" id="to_date" class="form-control __form-control"> <label><?php echo e(\App\CPU\translate('End Date')); ?></label> </div> </div> <div class="col-sm-6 col-md-3"> <button type="submit" class="btn btn--primary px-4 w-100" onclick="formUrlChange(this)" data-action="<?php echo e(url()->current()); ?>"> <?php echo e(\App\CPU\translate('filter')); ?> </button> </div> </div> </form> </div> </div> <div class="store-report-content mb-2"> <div class="left-content expense--content"> <div class="left-content-card"> <img src="<?php echo e(asset('/public/assets/back-end/img/expense.svg')); ?>" alt=""> <div class="info"> <h4 class="subtitle"><?php echo e(\App\CPU\BackEndHelper::set_symbol(\App\CPU\BackEndHelper::usd_to_currency($total_expense))); ?></h4> <h6 class="subtext"> <span><?php echo e(\App\CPU\translate('Total_Expense')); ?></span> <span class="ml-2" data-toggle="tooltip" data-placement="top" title="<?php echo e(\App\CPU\translate('free_delivery_coupon')); ?>, <?php echo e(\App\CPU\translate('coupon_discount_will_be_shown_here')); ?>"> <img class="info-img" src="<?php echo e(asset('/public/assets/back-end/img/info-circle.svg')); ?>" alt="img"> </span> </h6> </div> </div> <div class="left-content-card"> <img src="<?php echo e(asset('/public/assets/back-end/img/free-delivery.svg')); ?>" alt=""> <div class="info"> <h4 class="subtitle"><?php echo e(\App\CPU\BackEndHelper::set_symbol(\App\CPU\BackEndHelper::usd_to_currency($free_delivery))); ?></h4> <h6 class="subtext"><?php echo e(\App\CPU\translate('Free_Delivery_Coupon')); ?></h6> </div> </div> <div class="left-content-card"> <img src="<?php echo e(asset('/public/assets/back-end/img/coupon-discount.svg')); ?>" alt=""> <div class="info"> <h4 class="subtitle"><?php echo e(\App\CPU\BackEndHelper::set_symbol(\App\CPU\BackEndHelper::usd_to_currency($coupon_discount))); ?></h4> <h6 class="subtext"> <span><?php echo e(\App\CPU\translate('Coupon_Discount')); ?></span> <span class="ml-2" data-toggle="tooltip" data-placement="top" title="<?php echo e(\App\CPU\translate('discount_on_purchase_and_first_delivery_coupon_amount_will_be_shown_here')); ?>"> <img class="info-img" src="<?php echo e(asset('/public/assets/back-end/img/info-circle.svg')); ?>" alt="img"> </span> </h6> </div> </div> </div> <div class="center-chart-area"> <div class="center-chart-header"> <h3 class="title"><?php echo e(\App\CPU\translate('expense_Statistics')); ?></h3> </div> <canvas id="updatingData" class="store-center-chart" data-hs-chartjs-options='{ "type": "bar", "data": { "labels": [<?php echo e('"'.implode('","', array_keys($expense_transaction_chart['discount_amount'])).'"'); ?>], "datasets": [{ "label": "<?php echo e(\App\CPU\translate('total_expense_amount')); ?>", "data": [ <?php echo e('"'.implode('","', array_values($expense_transaction_chart['discount_amount'])).'"'); ?>], "backgroundColor": "#a2ceee", "hoverBackgroundColor": "#0177cd", "borderColor": "#a2ceee" }] }, "options": { "scales": { "yAxes": [{ "gridLines": { "color": "#e7eaf3", "drawBorder": false, "zeroLineColor": "#e7eaf3" }, "ticks": { "beginAtZero": true, "fontSize": 12, "fontColor": "#97a4af", "fontFamily": "Open Sans, sans-serif", "padding": 5, "postfix": " $" } }], "xAxes": [{ "gridLines": { "display": false, "drawBorder": false }, "ticks": { "fontSize": 12, "fontColor": "#97a4af", "fontFamily": "Open Sans, sans-serif", "padding": 5 }, "categoryPercentage": 0.3, "maxBarThickness": "10" }] }, "cornerRadius": 5, "tooltips": { "prefix": " ", "hasIndicator": true, "mode": "index", "intersect": false }, "hover": { "mode": "nearest", "intersect": true } } }'> </canvas> </div> </div> <div class="card"> <div class="px-3 py-4"> <div class="d-flex flex-wrap gap-3 align-items-center"> <h4 class="mb-0 mr-auto"> <?php echo e(\App\CPU\translate('Total Transactions')); ?> <span class="badge badge-soft-dark radius-50 fz-12"><?php echo e($expense_transactions_table->total()); ?></span> </h4> <form action="" method="GET" class="mb-0"> <!-- Search --> <div class="input-group input-group-merge input-group-custom"> <div class="input-group-prepend"> <div class="input-group-text"> <i class="tio-search"></i> </div> </div> <input type="hidden" name="date_type" value="<?php echo e($date_type); ?>"> <input type="hidden" name="from" value="<?php echo e($from); ?>"> <input type="hidden" name="to" value="<?php echo e($to); ?>"> <input id="datatableSearch_" type="search" name="search" class="form-control" placeholder="<?php echo e(\App\CPU\translate('Search_by_Order_ID_or_Transaction_ID')); ?>" aria-label="Search orders" value="<?php echo e($search); ?>" required> <button type="submit" class="btn btn--primary"><?php echo e(\App\CPU\translate('search')); ?></button> </div> <!-- End Search --> </form> <div> <a href="<?php echo e(route('admin.transaction.expense-transaction-summary-pdf', ['date_type'=>request('date_type'), 'from'=>request('from'), 'to'=>request('to')])); ?>" class="btn btn-outline--primary text-nowrap btn-block"> <i class="tio-file-text"></i> <?php echo e(\App\CPU\translate('Download PDF')); ?> </a> </div> <div> <button type="button" class="btn btn-outline--primary text-nowrap btn-block" data-toggle="dropdown"> <i class="tio-download-to"></i> <?php echo e(\App\CPU\translate('Export')); ?> <i class="tio-chevron-down"></i> </button> <ul class="dropdown-menu dropdown-menu-right"> <li> <a class="dropdown-item" href="<?php echo e(route('admin.transaction.expense-transaction-export-excel', ['search'=>request('search'), 'date_type'=>request('date_type'), 'from'=>request('from'), 'to'=>request('to')])); ?>" ><?php echo e(\App\CPU\translate('Excel')); ?></a> </li> </ul> </div> </div> </div> <div class="table-responsive"> <table id="datatable" style="text-align: <?php echo e(Session::get('direction') === "rtl" ? 'right' : 'left'); ?>;" class="table __table table-hover table-borderless table-thead-bordered table-nowrap table-align-middle card-table w-100"> <thead class="thead-light thead-50 text-capitalize"> <tr> <th><?php echo e(\App\CPU\translate('SL')); ?></th> <th><?php echo e(\App\CPU\translate('XID')); ?></th> <th><?php echo e(\App\CPU\translate('Transaction Date')); ?></th> <th><?php echo e(\App\CPU\translate('Order ID')); ?></th> <th><?php echo e(\App\CPU\translate('Expense Amount')); ?></th> <th><?php echo e(\App\CPU\translate('Expense Type')); ?></th> <th class="text-center"><?php echo e(\App\CPU\translate('Action')); ?></th> </tr> </thead> <tbody> <?php $__currentLoopData = $expense_transactions_table; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$transaction): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td><?php echo e($expense_transactions_table->firstItem()+$key); ?></td> <td><?php echo e($transaction->order_transaction->transaction_id); ?></td> <td><?php echo e(date_format($transaction->order_transaction->updated_at, 'd F Y h:i:s a')); ?></td> <td> <a class="title-color" href="<?php echo e(route('admin.orders.details',['id'=>$transaction->id])); ?>"> <?php echo e($transaction->id); ?> </a> </td> <td><?php echo e(\App\CPU\BackEndHelper::set_symbol(\App\CPU\BackEndHelper::usd_to_currency($transaction->discount_amount))); ?></td> <td><?php echo e(isset($transaction->coupon->coupon_type) ? ucwords(str_replace('_', ' ', $transaction->coupon->coupon_type)) : ''); ?></td> <td> <div class="d-flex justify-content-center"> <a href="<?php echo e(route('admin.transaction.pdf-order-wise-expense-transaction', ['id'=>$transaction->id])); ?>" class="btn btn-outline-success square-btn btn-sm"> <i class="tio-download-to"></i> </a> </div> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php if(count($expense_transactions_table)==0): ?> <tr> <td colspan="7"> <div class="text-center p-4"> <img class="mb-3 w-160" src="<?php echo e(asset('public/assets/back-end')); ?>/svg/illustrations/sorry.svg" alt="Image Description"> <p class="mb-0"><?php echo e(\App\CPU\translate('No_data_to_show')); ?></p> </div> </td> </tr> <?php endif; ?> </tbody> </table> </div> <div class="table-responsive mt-4"> <div class="px-4 d-flex justify-content-lg-end"> <!-- Pagination --> <?php echo e($expense_transactions_table->links()); ?> </div> </div> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startPush('script'); ?> <!-- Chart JS --> <script src="<?php echo e(asset('public/assets/back-end')); ?>/js/chart.js/dist/Chart.min.js"></script> <script src="<?php echo e(asset('public/assets/back-end')); ?>/js/chart.js.extensions/chartjs-extensions.js"></script> <script src="<?php echo e(asset('public/assets/back-end')); ?>/js/chartjs-plugin-datalabels/dist/chartjs-plugin-datalabels.min.js"> </script> <!-- Chart JS --> <script> $(document).ready(function () { $('.js-select2-custom').select2(); }); $('#from_date,#to_date').change(function () { let fr = $('#from_date').val(); let to = $('#to_date').val(); if(fr != ''){ $('#to_date').attr('required','required'); } if(to != ''){ $('#from_date').attr('required','required'); } if (fr != '' && to != '') { if (fr > to) { $('#from_date').val(''); $('#to_date').val(''); toastr.error('Invalid date range!', Error, { CloseButton: true, ProgressBar: true }); } } }) $("#date_type").change(function() { let val = $(this).val(); $('#from_div').toggle(val === 'custom_date'); $('#to_div').toggle(val === 'custom_date'); if(val === 'custom_date'){ $('#from_date').attr('required','required'); $('#to_date').attr('required','required'); }else{ $('#from_date').val(null).removeAttr('required') $('#to_date').val(null).removeAttr('required') } }).change(); </script> <?php $__env->stopPush(); ?> <?php $__env->startPush('script_2'); ?> <script> // Bar Charts Chart.plugins.unregister(ChartDataLabels); $('.js-chart').each(function() { $.HSCore.components.HSChartJS.init($(this)); }); var updatingChart = $.HSCore.components.HSChartJS.init($('#updatingData')); $('.js-data-example-ajax').select2({ ajax: { url: '<?php echo e(url('/')); ?>/admin/store/get-stores', data: function(params) { return { q: params.term, // search term // all:true, <?php if(isset($zone)): ?> zone_ids: [<?php echo e($zone->id); ?>], <?php endif; ?> page: params.page }; }, processResults: function(data) { return { results: data }; }, __port: function(params, success, failure) { var $request = $.ajax(params); $request.then(success); $request.fail(failure); return $request; } } }); </script> <?php $__env->stopPush(); ?> <?php echo $__env->make('layouts.back-end.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/arsu/resources/views/admin-views/transaction/expense-list.blade.php ENDPATH**/ ?>
./Ninja\.