@extends('layouts.admin') @section('title') {{__('Orders')}} @endsection @section('content')
@if($orders->count() > 0) @foreach($orders as $order) @endforeach @else @endif
{{__('Order Id')}} {{__('Name')}} {{__('Plan Name')}} {{__('Price')}} {{__('Status')}} {{__('Type')}} {{__('Date')}} {{__('Coupon')}} {{__('Invoice')}} {{__('Action')}}
{{$order->order_id}} {{$order->user_name}} {{$order->plan_name}} {{(isset($payment_setting['currency']) ? $payment_setting['currency'] : '$')}} {{number_format($order->price)}} @if($order->payment_status == 'succeeded' || $order->payment_status == 'Approved') {{ucfirst($order->payment_status)}} @else {{ucfirst($order->payment_status)}} @endif {{$order->payment_type}} {{$order->created_at->format('d M Y')}} {{!empty($order->use_coupon)?$order->use_coupon->coupon_detail->code:'-'}} @if($order->receipt =='free coupon')

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

@elseif ($order->payment_type == 'Bank Transfer') @else {{'-'}} @endif
@if(($order->payment_type == 'Bank Transfer' && $order->payment_status == 'pending')) @endif {!! Form::open(['method' => 'GET', 'route' => ['order.destory', $order->id], 'id' => 'delete-order-' . $order->id]) !!} {!! Form::close() !!} @if($order->payment_status == 'success' || $order->payment_status == 'Approved') @foreach ($userOrders as $userOrder) @if ($order->order_id == $userOrder->order_id && $order->is_refund == 0) @endif @endforeach @endif
{{__('No Orders Found.')}}
@endsection