|
Server : Apache/2.4.41 (Ubuntu) System : Linux vmi1525618.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64 User : www-data ( 33) PHP Version : 8.2.12 Disable Function : NONE Directory : /var/www/account.appointkrypt.com/storage/framework/views/ |
Upload File : |
<?php $__env->startSection('page-title'); ?>
<?php echo e(__('Order')); ?>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('page-breadcrumb'); ?>
<?php echo e(__('Order')); ?>
<?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">
<div class="table-responsive">
<table class="table datatable pc-dt-simple" id="test">
<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 class="text-center"><?php echo e(__('Refund')); ?></th>
<?php endif; ?>
</tr>
</thead>
<tbody>
<?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(company_datetime_formate($order->created_at)); ?></td>
<td><?php echo e($order->user_name); ?></td>
<td><?php echo e($order->plan_name); ?></td>
<td><?php echo e($order->price . ' ' . $order->price_currency); ?></td>
<td><?php echo e($order->payment_type); ?></td>
<td>
<?php if($order->payment_status == 'succeeded'): ?>
<span
class="bg-success p-1 px-3 rounded text-white"><?php echo e(ucfirst($order->payment_status)); ?></span>
<?php else: ?>
<span
class="bg-danger p-2 px-3 rounded text-white"><?php echo e(ucfirst($order->payment_status)); ?></span>
<?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); ?>" data-bs-toggle="tooltip"
data-bs-original-title="<?php echo e(__('Invoice')); ?>" target="_blank"
class="">
<i class="ti ti-file-invoice text-primary"></i>
</a>
<?php elseif($order->payment_type == 'Bank Transfer'): ?>
<a href="<?php echo e(!empty($order->receipt) ? (check_file($order->receipt) ? get_file($order->receipt) : '#!') : '#!'); ?>"
data-bs-toggle="tooltip" data-bs-original-title="<?php echo e(__('Invoice')); ?>"
target="_blank" class="">
<i class="ti ti-file-invoice text-primary"></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 else: ?>
-
<?php endif; ?>
</td>
<?php
$plan = \App\Models\Plan::where('is_free_plan',1)->first();
?>
<?php if(\Auth::user()->type == 'super admin'): ?>
<td class="text-center">
<?php if(\App\Models\Order::LatestOrder($order->user_id) == $order->id && $order->plan_id != $plan->id &&
($order->payment_status == 'succeeded' ||
$order->payment_status == 'Approval' ||
$order->payment_status == 'success' ||
$order->payment_type == 'Bank Transfer')): ?>
<div class="btn bg-primary ms-2">
<a href="<?php echo e(route('order.refund', $order->user_id)); ?>"
title="<?php echo e(__('Payment Refund')); ?>"
data-title="<?php echo e(__('Payment Refund')); ?>"
class="d-inline-flex align-items-center text-white">
<?php echo e(__('Refund')); ?>
</a>
</div>
<?php else: ?>
-
<?php endif; ?>
</td>
<?php endif; ?>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
</table>
</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 /var/www/account.appointkrypt.com/resources/views/plan_order/index.blade.php ENDPATH**/ ?>