@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.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}}{{ $order->total_amount - $order->coupon_discount }}{{ $order->total_amount }}
{{ csrf_field() }}
{{ __('adminstaticword.View') }}
{{ csrf_field() }} {{ method_field('DELETE') }}
@endsection