@extends(EcommerceHelper::viewPath('customers.master')) @section('content')

{{ SeoHelper::getTitle() }}

@if (count($orderProducts) > 0) @foreach ($orderProducts as $orderProduct) @php $product = get_products([ 'condition' => [ 'ec_products.id' => $orderProduct->product_id, ], 'take' => 1, 'select' => [ 'ec_products.id', 'ec_products.images', 'ec_products.name', 'ec_products.price', 'ec_products.sale_price', 'ec_products.sale_type', 'ec_products.start_date', 'ec_products.end_date', 'ec_products.sku', 'ec_products.is_variation', 'ec_products.status', 'ec_products.order', 'ec_products.created_at', ], 'include_out_of_stock_products' => true, ]); @endphp @endforeach @else @endif
{{ __('Image') }} {{ __('Product Name') }} {{ __('Times downloaded') }} {{ __('Ordered at') }} {{ __('Action') }}
{{ $orderProduct->product_name }} @if ($product) {{ $product->original_product->name }} @if ($product->sku) ({{ $product->sku }}) @endif @if ($product->is_variation)

@php $attributes = get_product_attributes($product->id) @endphp @if (!empty($attributes)) @foreach ($attributes as $attribute) {{ $attribute->attribute_set_title }}: {{ $attribute->title }}@if (!$loop->last), @endif @endforeach @endif

@endif @else {{ $orderProduct->product_name }} @endif
{{ $orderProduct->times_downloaded }} {{ $orderProduct->created_at->translatedFormat('M d, Y h:m') }} {{ __('Download') }}
{{ __('No digital products!') }}
@endsection