@extends(EcommerceHelper::viewPath('customers.master')) @section('title', __('Orders')) @section('content') @if($orders->isNotEmpty())
@foreach ($orders as $order)

{{ __('Order :code', ['code' => $order->code]) }}

{!! BaseHelper::clean($order->status->toHtml()) !!}

{{ $order->created_at->translatedFormat('M d, Y \a\t g:i A') }}

{{ __('Total Amount') }} {{ $order->amount_format }}
{{ __('Items') }} {{ $order->products_count }} {{ __('item(s)') }}
{{ __('Payment Method') }} @if(is_plugin_active('payment') && $order->payment->id && $order->payment->payment_channel->label()) {{ $order->payment->payment_channel->label() }} @else {{ __('Not specified') }} @endif
@endforeach
@if($orders->hasPages())
{!! $orders->links() !!}
@endif
@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