{{ __('invoice.Invoice List') }}

@if (count($myInvoices) == 0)

{{ __('invoice.No Invoice Generate Yet') }}!

@else
{{-- --}} @if (hasTax()) @endif @if (isset($myInvoices)) @foreach ($myInvoices as $key => $invoice) @endforeach @endif
{{ __('common.SL') }} {{ __('invoice.Invoice Number') }} {{ __('common.Date') }} {{ __('common.Total Courses') }} {{ __('payment.Total Price') }}{{ __('common.Discount') }}{{ __('tax.TAX') }}{{ __('common.Status') }} {{ __('common.Payment Type') }} {{ __('payment.Invoice') }}
{{ $loop->iteration }} {{ $invoice->invoice_number }} {{ showDate($invoice->created_at) }} {{ $invoice->courses_count }} {{ getPriceFormat($invoice->purchase_price) }} @if($invoice->offlinePayment) {{__('invoice.Pending')}} @elseif ($invoice->status != 'paid') {{ __('invoice.Pay Now') }} @elseif($invoice->status == 'paid') {{strtoupper($invoice->status)}} @endif {{ $invoice->payment_type == 1 ? 'Online' : 'Offline' }} {{ $invoice->status == 'paid' ? '['. $invoice->payment_method.']' : '' }} {{ __('common.View') }}
{{ $myInvoices->links() }}
@endif
@if (isSubscribe())

{{ __('subscription.Subscription History') }}

@if (count($checkouts) == 0)

{{ __('subscription.No Subscription Purchased Yet') }}!

@else
@if (isset($checkouts)) @foreach ($checkouts as $key => $checkout) @endforeach @endif
{{ __('common.SL') }} {{ __('subscription.Plan') }} {{ __('subscription.Start Date') }} {{ __('subscription.End Date') }} {{ __('subscription.Days') }} {{ __('subscription.Price') }} {{ __('subscription.Payment Method') }} {{ __('subscription.Status') }} {{ __('payment.Invoice') }}
{{ @$key + 1 }} {{ $checkout->plan->title }} {{ showDate($checkout->start_date) }} {{ showDate($checkout->end_date) }} {{ $checkout->days }} {{ $checkout->price }} {{ $checkout->payment_method }} @php $date_of_subscription = $checkout->end_date; $now = new DateTime(); $startdate = new DateTime($checkout->start_date); $enddate = new DateTime($checkout->end_date); if ($startdate <= $now && $now <= $enddate) { echo 'Valid'; } else { echo 'Expire'; } @endphp {{ __('common.View') }}
{{ $checkouts->links() }}
@endif
@endif