@extends('layouts.new_theme') @section('content')

{{ __('Invoices') }}

{{ __('List of Invoices') }}

{{__('Total number of invoices')}}: {{ $invoices->total() }}

@include('common.demo') @include('common.admin') @include('common.errors')

{{ __('List of Invoices') }}

@foreach ($invoices as $invoice) @if($invoice->coupon_code) @else @endif @if ($invoice->is_renew == true) @else @endif @endforeach
{{ __('Order Id') }} {{ __('User') }} {{ __('Amount') }} {{ __('Coupon Code') }} {{ __('Discount ') }} {{ __('Payment Status') }} {{ __('Status') }} {{ __('Invoice Date') }}
{{ $invoice->orders->order_id }} {{ $invoice->user->first_name }} {{ number_format($invoice->amount, 2) }} {{$invoice->currency}}{{ __($invoice->coupon_code) }} {{ number_format($invoice->discount_amount, 2) }} {{$invoice->currency}}{{ __("NA") }} {{ __("NA") }}{{ __($invoice->payment_status) }}{{ __('Renew') }}{{ __('Normal') }}{{ \Carbon\Carbon::parse($invoice->created_at)->format('d/m/Y g:i A') }}

{{ $invoices->appends($request->all())->links("pagination::bootstrap-4") }}
@endsection