@extends(EcommerceHelper::viewPath('customers.master')) @section('title', trans('plugins/ecommerce::customer-dashboard.orders')) @section('content')
@if($orders->isNotEmpty())
@foreach ($orders as $order)

{{ trans('plugins/ecommerce::customer-dashboard.order_code', ['code' => $order->code]) }}

{!! BaseHelper::clean($order->status->toHtml()) !!}
{{ $order->created_at->translatedFormat('M d, Y') }}
{{ trans('plugins/ecommerce::customer-dashboard.total_amount') }} {{ $order->amount_format }}
{{ trans('plugins/ecommerce::customer-dashboard.items') }} {{ $order->products_count }}
{{ trans('plugins/ecommerce::customer-dashboard.payment') }} @if(is_plugin_active('payment') && $order->payment->id && $order->payment->payment_channel->displayName()) {{ $order->payment->payment_channel->displayName() }} @else {{ trans('plugins/ecommerce::customer-dashboard.n_a') }} @endif
@endforeach
@if($orders->hasPages())
{!! $orders->links() !!}
@endif
@else @include(EcommerceHelper::viewPath('customers.partials.empty-state'), [ 'title' => trans('plugins/ecommerce::customer-dashboard.no_orders_yet'), 'subtitle' => trans('plugins/ecommerce::customer-dashboard.not_placed_orders_yet'), 'actionUrl' => route('public.products'), 'actionLabel' => trans('plugins/ecommerce::customer-dashboard.start_shopping_now'), ]) @endif
@stop