{{ __('All Order') }}
@foreach ($orders as $order) @endforeach
# {{ __('adminstaticword.User') }} {{ __('Payment') }} {{ __('adminstaticword.Detail') }} {{ __('adminstaticword.Status') }} {{ __('adminstaticword.SubscriptionStatus') }} {{ __('adminstaticword.Unenroll') }} {{ __('adminstaticword.Action') }}
1

{{ __('adminstaticword.User') }}: @if(Auth::user()->role == 'admin') @if(isset($order->user)) {{ $order->user['fname'] }} {{ $order->user['lname'] }} @endif @else @if ($gsetting->hide_identity == 0) @if(isset($order->user)) {{ $order->user['fname'] }} {{ $order->user['lname'] }} @endif @else {{ __('Hidden') }} @endif @endif

{{ __('adminstaticword.Course') }}: @if ($order->course_id != null) {{ optional($order->courses)['title'] }} @else {{ optional($order->bundle)['title'] }} @endif

{{ __('adminstaticword.TransactionId') }}: {{ $order->transaction_id }}

{{ __('adminstaticword.PaymentMethod') }}: {{ $order->payment_method }}

@php $contains = Illuminate\Support\Str::contains($order->currency_icon, 'fa'); @endphp

{{ __('adminstaticword.TotalAmount') }}: @if ($order->coupon_discount == !null) @if($contains) {{ $order->total_amount - $order->coupon_discount }} @if ($order->subscription_id !== null) / {{ $order->bundle->billing_interval }} @endif @else {{ $order->currency_icon }} {{ $order->total_amount - $order->coupon_discount }} @if ($order->subscription_id !== null) / {{ $order->bundle->billing_interval }} @endif @endif @else @if($contains) {{ $order->total_amount }} @if ($order->subscription_id !== null) / {{ $order->bundle->billing_interval }} @endif @else {{ $order->currency_icon }} {{ $order->total_amount }} @if ($order->subscription_id !== null) / {{ $order->bundle->billing_interval }} @endif @endif @endif

@if ($order->bundle_id != null) @if ($order->subscription_status == 'active') {{ __('adminstaticword.Active') }} @else {{ __('adminstaticword.Canceled') }} @endif @else - @endif @if ($order->subscription_status === 'active')
{{ csrf_field() }}
@else - @endif
@section('script') @endsection