@extends(EcommerceHelper::viewPath('customers.master')) @section('title', __('Orders')) @section('content') @if($orders->isNotEmpty())
@foreach ($orders as $order) @endforeach
{{ __('Order number') }} {{ __('Created at') }} {{ __('Total') }} {{ __('Payment method') }} {{ __('Status') }} {{ __('Actions') }}
{{ $order->code }} {{ $order->created_at->format('d M Y H:i:s') }} {{ __(':price for :total item(s)', ['price' => $order->amount_format, 'total' => $order->products_count]) }} @if(is_plugin_active('payment') && $order->payment->id && $order->payment->payment_channel->label()) {{ $order->payment->payment_channel->label() }} @else — @endif {!! BaseHelper::clean($order->status->toHtml()) !!} {{ __('View') }}
{!! $orders->links() !!}
@else @include(EcommerceHelper::viewPath('customers.partials.empty-state'), [ 'title' => __('No orders yet!'), 'subtitle' => __('You have not placed any orders yet.'), 'actionUrl' => route('public.products'), 'actionLabel' => __('Start shopping now'), ]) @endif @stop