@extends('admin.layouts.master') @section('title', 'All Order - Admin') @section('body')
@include('admin.message')

{{ __('adminstaticword.Order') }}

@if (Auth::User()->role == 'admin') + Enroll User @endif
@foreach ($orders as $order) @if ($order->coupon_discount == !null) @else @endif @endforeach
# {{ __('adminstaticword.User') }} {{ __('adminstaticword.Course') }} {{ __('adminstaticword.TransactionId') }} {{ __('adminstaticword.PaymentMethod') }} {{ __('adminstaticword.TotalAmount') }} {{ __('adminstaticword.Status') }} {{ __('adminstaticword.View') }} {{ __('adminstaticword.SubscriptionStatus') }} {{ __('adminstaticword.Unenroll') }} {{ __('adminstaticword.Delete') }}
1 @if(Auth::user()->role == 'admin') {{ $order->user['fname'] }} {{ $order->user['lname'] }} @else @if ($gsetting->hide_identity == 0) {{ $order->user['fname'] }} {{ $order->user['lname'] }} @else Hidden @endif @endif @if ($order->course_id != null) {{ $order->courses['title'] }} @else {{ $order->bundle['title'] }} @endif {{ $order->transaction_id }} {{ $order->payment_method }} @if($gsetting['currency_swipe'] == 1) {{ $order->total_amount - $order->coupon_discount }} @if ($order->subscription_id !== null) / {{ $order->bundle->billing_interval }} @endif @else {{ $order->total_amount - $order->coupon_discount }} @if ($order->subscription_id !== null) / {{ $order->bundle->billing_interval }} @endif @endif @if($gsetting['currency_swipe'] == 1) {{ $order->total_amount }} @if ($order->subscription_id !== null) / {{ $order->bundle->billing_interval }} @endif @else {{ $order->total_amount }} @if ($order->subscription_id !== null) / {{ $order->bundle->billing_interval }} @endif @endif
{{ csrf_field() }}
{{ __('adminstaticword.View') }} @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
{{ csrf_field() }} {{ method_field('DELETE') }}
@endsection