dbfdg @extends('layouts.admin') @section('page-title') {{ __('Orders') }} @endsection @section('breadcrumb')
{{ __('Order Id') }} | {{ __('Name') }} | {{ __('Plan Name') }} | {{ __('Price') }} | {{ __('Status') }} | {{ __('Payment Type') }} | {{ __('Date') }} | {{ __('Coupon') }} | {{ __('Invoice') }} | @if (\Auth::user()->type == 'super admin'){{ __('Action') }} | @endif
---|---|---|---|---|---|---|---|---|---|
{{ $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 (\Auth::user()->type == 'super admin')
@if ($order->payment_type == 'Bank Transfer' && $order->payment_status == 'Pending') @endif @php $user = App\Models\User::find($order->user_id); @endphp @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 | @endif