@extends('layouts.admin') @section('page-title') {{__('Order')}} @endsection @section('breadcrumb') @endsection @section('content')
@foreach($orders as $order) @endforeach
{{__('Order Id')}} {{__('Date')}} {{__('Name')}} {{__('Plan Name')}} {{__('Price')}} {{__('Payment Type')}} {{__('Status')}} {{__('Coupon')}} {{__('Invoice')}}
{{$order->order_id}} {{$order->created_at->format('d M Y')}} {{$order->user_name}} {{$order->plan_name}} {{env('CURRENCY_SYMBOL').$order->price}} {{$order->payment_type}} @if($order->payment_status == 'succeeded') {{ucfirst($order->payment_status)}} @else {{ucfirst($order->payment_status)}} @endif {{!empty($order->total_coupon_used)? !empty($order->total_coupon_used->coupon_detail)?$order->total_coupon_used->coupon_detail->code:'-':'-'}} @if($order->receipt != 'free coupon' && $order->payment_type == 'STRIPE') @elseif($order->receipt == 'free coupon')

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

@elseif($order->payment_type == 'Manually')

{{__('Manually plan upgraded by super admin')}}

@else - @endif
@endsection