Viewing file: 2c0458f96f25368d106df5a35353dbc1.php (19.72 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title'); ?> <?php echo e(__('orders')); ?>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?> <?php $user = auth()->user(); ?> <div class=""> <div class="row"> <div class="col-md-12"> <div class="card"> <div class="card-header"> <div class="d-flex justify-content-between"> <h3 class="card-title line-height-36"> <?php echo e(__('orders')); ?>
</h3> <div class="d-flex align-items-center gap-20px"> <?php if($user->can('order.create')): ?> <div> <a href="<?php echo e(route('order.create')); ?>" class="btn bg-primary"> <i class="fas fa-plus"></i> <span class="ml-2"> <?php echo e(__('Add New Order')); ?>
</span> </a> </div> <?php endif; ?> <?php if(request('company') || request('provider') || request('plan') || request('sort_by')): ?> <div> <a href="<?php echo e(route('order.index')); ?>" class="btn bg-danger"> <i class="fas fa-times"></i> <?php echo e(__('clear')); ?>
</a> </div> <?php endif; ?> </div> </div> </div> <form id="filterForm" action="<?php echo e(route('order.index')); ?>" method="GET"> <div class="card-body border-bottom row"> <div class="col-xl-3 col-md-6 col-12"> <label><?php echo e(__('customer')); ?></label> <select name="customer" class="form-control select2bs4"> <option <?php echo e(request('customer') ? '' : 'selected'); ?> value="" selected> <?php echo e(__('all')); ?>
</option> <?php $__currentLoopData = $customers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $customer): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option <?php echo e(request('customer') == $customer->id ? 'selected' : ''); ?>
value="<?php echo e($customer->id); ?>"> <?php echo e($customer->name); ?>
</option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> <div class="col-xl-3 col-md-6 col-12"> <label><?php echo e(__('payment_provider')); ?></label> <select name="provider" id="filter" class="form-control select2bs4"> <option <?php echo e(request('provider') ? '' : 'selected'); ?> value="" selected> <?php echo e(__('all')); ?>
</option> <option <?php echo e(request('provider') == 'paypal' ? 'selected' : ''); ?> value="paypal"> <?php echo e(__('paypal')); ?>
</option> <option <?php echo e(request('provider') == 'stripe' ? 'selected' : ''); ?> value="stripe"> <?php echo e(__('stripe')); ?>
</option> <option <?php echo e(request('provider') == 'razorpay' ? 'selected' : ''); ?> value="razorpay"> <?php echo e(__('razorpay')); ?>
</option> <option <?php echo e(request('provider') == 'paystack' ? 'selected' : ''); ?> value="paystack"> <?php echo e(__('paystack')); ?>
</option> <option <?php echo e(request('provider') == 'sslcommerz' ? 'selected' : ''); ?> value="sslcommerz"> <?php echo e(__('sslcommerz')); ?>
</option> <option <?php echo e(request('provider') == 'instamojo' ? 'selected' : ''); ?> value="instamojo"> <?php echo e(__('instamojo')); ?>
</option> <option <?php echo e(request('provider') == 'flutterwave' ? 'selected' : ''); ?>
value="flutterwave"> <?php echo e(__('flutterwave')); ?>
</option> <option <?php echo e(request('provider') == 'mollie' ? 'selected' : ''); ?> value="mollie"> <?php echo e(__('mollie')); ?>
</option> <option <?php echo e(request('provider') == 'midtrans' ? 'selected' : ''); ?> value="midtrans"> <?php echo e(__('midtrans')); ?>
</option> <option <?php echo e(request('provider') == 'offline' ? 'selected' : ''); ?> value="offline"> <?php echo e(__('offline')); ?>
</option> </select> </div> <div class="col-xl-3 col-md-6 col-12"> <label><?php echo e(__('plan')); ?></label> <select name="plan" class="form-control select2bs4"> <option <?php echo e(request('plan') ? '' : 'selected'); ?> value="" selected> <?php echo e(__('all')); ?>
</option> <?php $__currentLoopData = $plans; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $plan): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option <?php echo e(request('plan') == $plan->id ? 'selected' : ''); ?>
value="<?php echo e($plan->id); ?>"> <?php echo e($plan->label); ?>
</option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> <div class="col-xl-3 col-md-6 col-12"> <label><?php echo e(__('sort_by')); ?></label> <select name="sort_by" class="form-control select2bs4"> <option <?php echo e(!request('sort_by') || request('sort_by') == 'latest' ? 'selected' : ''); ?>
value="latest" selected> <?php echo e(__('latest')); ?>
</option> <option <?php echo e(request('sort_by') == 'oldest' ? 'selected' : ''); ?> value="oldest"> <?php echo e(__('oldest')); ?>
</option> </select> </div> </div> </form> <div class="card-body text-center table-responsive p-0"> <table class="ll-table table table-hover text-nowrap"> <thead> <tr> <th><?php echo e(__('order_no')); ?></th> <th><?php echo e(__('transaction_no')); ?></th> <th><?php echo e(__('plan_name')); ?></th> <th><?php echo e(__('payment_provider')); ?></th> <th><?php echo e(__('customer')); ?></th> <th><?php echo e(__('amount')); ?>($)</th> <th><?php echo e(__('created_time')); ?></th> <th><?php echo e(__('payment_status')); ?></th> <th width="10%"><?php echo e(__('action')); ?></th> </tr> </thead> <tbody> <?php $__empty_1 = true; $__currentLoopData = $transactions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $order): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <tr> <td> #<?php echo e($order->order_id); ?>
</td> <td> <?php echo e($order->transaction_id); ?>
</td> <td> <?php if($order->payment_type == 'per_job_based'): ?> <span class="badge badge-secondary"> <?php echo e(ucfirst(Str::replace('_', ' ', $order->payment_type))); ?>
</span> <?php else: ?> <span class="badge badge-primary"><?php echo e($order->plan->label); ?></span> <?php endif; ?> </td> <td> <?php if($order->payment_provider == 'offline'): ?> Offline <?php if(isset($order->manualPayment) && isset($order->manualPayment->name)): ?> (<b><?php echo e($order->manualPayment->name); ?></b>) <?php endif; ?> <?php else: ?> <?php echo e(ucfirst($order->payment_provider)); ?>
<?php endif; ?> </td> <td class="text-capitalize""> <a href=""> <?php echo e($order->customer ? $order->customer->name : '-'); ?>
</a> </td> <td> <?php echo e($order->currency_symbol); ?><?php echo e($order->amount); ?> ($<?php echo e($order->usd_amount); ?>) </td> <td class="text-muted"> <?php echo e(formatTime($order->created_at, 'M d, Y')); ?>
</td> <td class="text-capitalize"> <?php if($order->payment_status == 'paid'): ?> <span class="badge badge-pill bg-success"><?php echo e(__('paid')); ?></span> <?php else: ?> <span class="badge badge-pill bg-warning"><?php echo e(__('unpaid')); ?></span> <br> <a onclick="return confirm('<?php echo e(__('are_you_sure')); ?> ?')" href="<?php echo e(route('manual.payment.mark.paid', $order->id)); ?>"><?php echo e(__('mark_as_paid')); ?></a> <?php endif; ?> </td> <td> <div class="d-flex"> <form action="<?php echo e(route('admin.transaction.invoice.download', $order->id)); ?>" method="POST" id="invoice_download_form"> <?php echo csrf_field(); ?> <button type="submit" class="mr-1 btn btn-sm btn-info"> <i class="fas fa-download"></i> </button> </form> <a href="<?php echo e(route('order.show', $order->id)); ?>" class="mr-1 btn btn-sm bg-primary mr-1"> <i class="fas fa-eye"></i> </a> <?php if($user->can('order.edit')): ?> <a href="<?php echo e(route('order.edit', $order->id)); ?>" class="mr-1 btn btn-sm bg-secondary"> <i class="fas fa-pen"></i> </a> <?php endif; ?> <?php if($user->can('order.delete')): ?> <form action="<?php echo e(route('order.destroy', $order->id)); ?>" method="POST"> <?php echo csrf_field(); ?> <?php echo method_field('DELETE'); ?> <button onclick="return confirm('<?php echo e(__('are_you_sure_want_to_delete_this_item')); ?>?');" type="submit" class="mr-1 btn btn-sm btn-danger"> <i class="fas fa-trash"></i> </button> </form> <?php endif; ?> </div> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <tr> <td colspan="9"> <div class="empty py-5"> <?php if (isset($component)) { $__componentOriginal29785112a59eec7800237cc87bc86e3e = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal29785112a59eec7800237cc87bc86e3e = $attributes; } ?> <?php $component = App\View\Components\NotFound::resolve(['route' => ''] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('not-found'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\NotFound::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['message' => ''.e(__('no_data_found')).'']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal29785112a59eec7800237cc87bc86e3e)): ?> <?php $attributes = $__attributesOriginal29785112a59eec7800237cc87bc86e3e; ?> <?php unset($__attributesOriginal29785112a59eec7800237cc87bc86e3e); ?> <?php endif; ?> <?php if (isset($__componentOriginal29785112a59eec7800237cc87bc86e3e)): ?> <?php $component = $__componentOriginal29785112a59eec7800237cc87bc86e3e; ?> <?php unset($__componentOriginal29785112a59eec7800237cc87bc86e3e); ?> <?php endif; ?> </div> </td> </tr> <?php endif; ?> </tbody> </table> </div> <?php if($transactions->total() > $transactions->count()): ?> <div class="mt-3 d-flex justify-content-center"><?php echo e($transactions->links()); ?></div> <?php endif; ?> </div> </div> </div> </div> <?php $__env->stopSection(); ?>
<?php $__env->startSection('script'); ?> <script src="<?php echo e(asset('backend')); ?>/plugins/select2/js/select2.full.min.js"></script> <script> $('#filterForm').on('change', function() { $(this).submit(); })
$('.select2bs4').select2({ theme: 'bootstrap4' }) </script> <?php $__env->stopSection(); ?>
<?php $__env->startSection('style'); ?> <link rel="stylesheet" href="<?php echo e(asset('backend')); ?>/plugins/select2/css/select2.min.css"> <link rel="stylesheet" href="<?php echo e(asset('backend')); ?>/plugins/select2-bootstrap4-theme/select2-bootstrap4.min.css"> <style> .select2-container { width: 100% !important; } .select2-results__option[aria-selected=true] { display: none; }
.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice { color: #fff; border: 1px solid #fff; background: #007bff; border-radius: 30px; }
.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice__remove { color: #fff; } </style> <?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/picotech/domains/classify.picotech.app/public_html/resources/views/admin/order/index.blade.php ENDPATH**/ ?>
|