File manager - Edit - /var/www/payraty/accounting_main/storage/framework/views/4cd05d82d3e0b5da8c7fdfd8a6c106ff.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(__('Order')); ?></li> <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <div class="row"> <div class="col-sm-12"> <div class="card"> <div class="card-body table-border-style"> <!-- Header Section --> <div class="d-flex flex-row justify-content-between align-items-center margin-bottom-big"> <!-- All Employees Header --> <div class="flex-grow-1"> <h2 class="text-lg font-semibold text-primary">All Orders</h2> </div> <!-- Search Input with Icon --> <div class="flex-grow-1 position-relative mt-4 mt-lg-0"> <div class="input-group" style="max-width: 400px;"> <span class="input-group-text bg-white border-0"> <i class="fas fa-search text-secondary"></i> </span> <input type="search" class="form-control border-0 shadow-sm text-sm bg-white border-grey-light-300" placeholder="Search by name, email or id..." /> </div> </div> <!-- Filters Dropdowns --> <div class="d-flex flex-lg-row flex-column justify-content-end align-items-lg-center align-items-start mt-4 mt-lg-0"> <!-- Pay Group Dropdown --> <div class="mb-3 mb-lg-0 me-lg-4" style="width: 150px;"> <select class="form-select bg-white" aria-label="Pay Group"> <option value="all" selected>Filter</option> <option value="monthly">Monthly</option> <option value="hourly">Hourly</option> </select> </div> <!-- Employment Status Dropdown --> <div class="mb-3 mb-lg-0" style="width: 150px;"> <select class="form-select bg-white" aria-label="Employment Status"> <option value="all" selected>Sort</option> <option value="full-time">Full Time</option> <option value="part-time">Part Time</option> <option value="contract">Contract</option> </select> </div> </div> </div> <div class="table-responsive"> <table class="table"> <thead> <tr> <th><?php echo e(__('Order Id')); ?></th> <th><?php echo e(__('Date')); ?></th> <th><?php echo e(__('Name')); ?></th> <th><?php echo e(__('Plan Name')); ?></th> <th><?php echo e(__('Price')); ?></th> <th><?php echo e(__('Payment Type')); ?></th> <th><?php echo e(__('Status')); ?></th> <th><?php echo e(__('Coupon')); ?></th> <th class="text-center"><?php echo e(__('Invoice')); ?></th> <?php if(\Auth::user()->type == 'super admin'): ?> <th><?php echo e(__('Action')); ?></th> <?php endif; ?> </tr> </thead> <tbody> <?php $path = \App\Models\Utility::get_file('/uploads/bank_receipt'); $admin = Utility::getAdminPaymentSetting(); ?> <?php if($orders->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 orders yet.')); ?></p> </td> </tr> <?php else: ?> <?php $__currentLoopData = $orders; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $order): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td><?php echo e($order->order_id); ?></td> <td><?php echo e($order->created_at->format('d M Y')); ?></td> <td><?php echo e($order->user_name); ?></td> <td><?php echo e($order->plan_name); ?></td> <td><?php echo e($admin['currency'] . $order->price); ?></td> <td><?php echo e($order->payment_type); ?></td> <td> <?php if($order->payment_status == 'succeeded'): ?> <i class="badge bg-success p-2 px-3 rounded"></i> <?php echo e(ucfirst($order->payment_status)); ?> <?php else: ?> <i class="badge bg-danger p-2 px-3 rounded"></i> <?php echo e(ucfirst($order->payment_status)); ?> <?php endif; ?> </td> <td><?php echo e(!empty($order->total_coupon_used) ? (!empty($order->total_coupon_used->coupon_detail) ? $order->total_coupon_used->coupon_detail->code : '-') : '-'); ?> </td> <td class="text-center"> <?php if($order->receipt != 'free coupon' && $order->payment_type == 'STRIPE'): ?> <a href="<?php echo e($order->receipt); ?>" title="Invoice" target="_blank" class=""> <i class="ti ti-file-invoice"></i> </a> <?php elseif($order->receipt == 'free coupon'): ?> <p><?php echo e(__('Used 100 % discount coupon code.')); ?></p> <?php elseif($order->payment_type == 'Manually'): ?> <p><?php echo e(__('Manually plan upgraded by super admin')); ?></p> <?php elseif(!empty($order->receipt)): ?> <a href="<?php echo e($path . '/' . $order->receipt); ?>" target="_blank"> <i class="ti ti-file"></i></a> <?php else: ?> - <?php endif; ?> </td> <?php if(\Auth::user()->type == 'super admin'): ?> <td> <?php if($order->payment_status == 'pending' && $order->payment_type == 'Bank Transfer'): ?> <div class="action-btn bg-warning ms-2"> <a href="#" class="mx-3 btn btn-sm d-inline-flex align-items-center" data-bs-toggle="modal" data-size="lg" data-ajax-popup="true" data-url="<?php echo e(route('banktransfer.show', [$order->id])); ?>" data-title="<?php echo e(__('Payment Status')); ?>" data-size="lg"> <span class="text-white"> <i class="ti ti-caret-right text-white" data-bs-toggle="tooltip" data-bs-original-title="<?php echo e(__('Payment Status')); ?>"></i></span></a> </div> <?php endif; ?> <?php $user = App\Models\User::find($order->user_id); ?> <div class="action-btn bg-danger ms-2"> <?php echo Form::open([ 'method' => 'DELETE', 'route' => ['banktransfer.destroy', $order->id], 'id' => 'delete-form-' . $order->id, ]); ?> <a href="#" class="mx-3 btn btn-sm align-items-center bs-pass-para" data-bs-toggle="tooltip" title="<?php echo e(__('Delete')); ?>"><i class="ti ti-trash text-white text-white"></i></a> <?php echo Form::close(); ?> </div> <?php $__currentLoopData = $userOrders; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $userOrder): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if($user->plan == $order->plan_id && $order->order_id == $userOrder->order_id && $order->is_refund == 0): ?> <div class="badge bg-warning rounded p-2 px-3 ms-2"> <a href="<?php echo e(route('order.refund', [$order->id, $order->user_id])); ?>" class="mx-3 align-items-center" data-bs-toggle="tooltip" title="<?php echo e(__('Delete')); ?>" data-original-title="<?php echo e(__('Delete')); ?>"> <span class ="text-white"><?php echo e(__('Refund')); ?></span> </a> </div> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </td> <?php endif; ?> </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/order/index.blade.php ENDPATH**/ ?>
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings