dbfdg @extends('layouts.admin') @section('page-title') {{ __('Orders') }} @endsection @section('breadcrumb') @endsection @php $admin_payment_setting = Utility::getAdminPaymentSetting(); @endphp @section('content')
@if (\Auth::user()->type == 'super admin') @endif @php $path = \App\Models\Utility::get_file('uploads/order'); @endphp @foreach ($orders as $key => $order) @if (\Auth::user()->type == 'super admin') @endif @endforeach
{{ __('Order Id') }} {{ __('Name') }} {{ __('Plan Name') }} {{ __('Price') }} {{ __('Status') }} {{ __('Payment Type') }} {{ __('Date') }} {{ __('Coupon') }} {{ __('Invoice') }}{{ __('Action') }}
{{ $order->order_id }} {{ $order->user_name }} {{ $order->plan_name }} {{ isset($admin_payment_setting['currency_symbol']) ? $admin_payment_setting['currency_symbol'] : '$' }}{{ number_format($order->price) }} @if ($order->payment_status == 'success' || $order->payment_status == 'Approved') {{ ucfirst($order->payment_status) }} @elseif($order->payment_status == 'succeeded') {{ __('Success') }} @elseif($order->payment_status == 'Pending') {{ __('Pending') }} @else {{ ucfirst($order->payment_status) }} @endif {{ $order->payment_type }} {{ $order->created_at->format('d M Y') }} {{ !empty($order->total_coupon_used) ? (!empty($order->total_coupon_used->coupon_detail) ? $order->total_coupon_used->coupon_detail->code : '-') : '-' }} @if ($order->payment_type == 'Manually')

{{ __('Manually plan upgraded by Super Admin') }}

@elseif($order->receipt == 'free coupon')

{{ __('Used 100 % discount coupon code.') }}

@elseif($order->payment_type == 'STRIPE') {{ __('Receipt') }} @elseif(!empty($order->receipt) && $order->payment_type == 'Bank Transfer') {{ __('Receipt') }} @else - @endif
@if ($order->payment_type == 'Bank Transfer' && $order->payment_status == 'Pending') @endif @php $user = App\Models\User::find($order->user_id); @endphp
{!! Form::open([ 'method' => 'DELETE', 'route' => ['order.destroy', $order->id], 'id' => 'delete-form-' . $order->id, ]) !!} {!! Form::close() !!}
@foreach ($userOrders as $userOrder) @if ( $user->plan == $order->plan_id && $order->order_id == $userOrder->order_id && $order->is_refund == 0 && !preg_match('/\bManually\b/i', $order->payment_type)) @endif @endforeach
@endsection