@extends(EcommerceHelper::viewPath('customers.master'))
@section('title', trans('plugins/ecommerce::invoice.name'))
@section('content')
@if($invoices->isNotEmpty())
@foreach ($invoices as $invoice)
{{ trans('plugins/ecommerce::customer-dashboard.total_amount') }}
{{ format_price($invoice->amount) }}
{{ trans('plugins/ecommerce::customer-dashboard.items') }}
{{ $invoice->items_count }}
{{ trans('plugins/ecommerce::customer-dashboard.payment') }}
@if(is_plugin_active('payment') && $invoice->payment->id && $invoice->payment->payment_channel->displayName())
{{ $invoice->payment->payment_channel->displayName() }}
@else
{{ trans('plugins/ecommerce::customer-dashboard.n_a') }}
@endif
@endforeach
@if($invoices->hasPages())
{!! $invoices->links() !!}
@endif
@else
@include(EcommerceHelper::viewPath('customers.partials.empty-state'), [
'title' => trans('plugins/ecommerce::customer-dashboard.no_invoices_yet'),
'subtitle' => trans('plugins/ecommerce::customer-dashboard.no_invoices_description'),
'actionUrl' => route('public.products'),
'actionLabel' => trans('plugins/ecommerce::customer-dashboard.start_shopping_now'),
])
@endif
@stop