@foreach ($order->products as $orderProduct) @php $product = get_products([ 'condition' => [ 'ec_products.status' => \Botble\Base\Enums\BaseStatusEnum::PUBLISHED, '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', ], ]); @endphp @if (!empty($product)) @endif @endforeach
@if (theme_option('logo')) {{ theme_option('site_title') }} @endif {{ trans('plugins/ecommerce::order.invoice') }}: {{ get_order_code($order->id) }}
{{ trans('plugins/ecommerce::order.created') }}: {{ now()->format('F d, Y') }}
{{ $order->address->name }}
{{ $order->address->address }}
{{ $order->address->email }}
{{ $order->address->phone ?? 'N/A' }}
{{ $order->user->name ? $order->user->name : $order->address->name }}
{{ $order->user->email ? $order->user->email : $order->address->email }}
{{ $order->user->phone ? $order->user->phone : $order->address->phone }}
{{ trans('plugins/ecommerce::order.payment_method') }} {{ trans('plugins/ecommerce::order.payment_status_label') }}
{{ $order->payment->payment_channel->label() }} {{ $order->payment->status->label() }}
{{ trans('plugins/ecommerce::products.form.product') }} {{ trans('plugins/ecommerce::products.form.options') }} {{ trans('plugins/ecommerce::products.form.price') }} {{ trans('plugins/ecommerce::products.form.quantity') }} {{ trans('plugins/ecommerce::products.form.total') }}
{{ $product->name }} @php $attributes = get_product_attributes($product->id); @endphp @if (!empty($attributes)) @foreach ($attributes as $attribute) @if (!$loop->last) {{ $attribute->attribute_set_title }}: {{ $attribute->title }}
@else {{ $attribute->attribute_set_title }}: {{ $attribute->title }} @endif @endforeach @endif @if (!empty($orderProduct->options) && is_array($orderProduct->options)) @foreach($orderProduct->options as $option) @if (!empty($option['key']) && !empty($option['value']))

{{ $option['key'] }}: {{ $option['value'] }}

@endif @endforeach @endif
@if ($product->front_sale_price != $product->price) {!! htmlentities(format_price($product->front_sale_price)) !!} {!! htmlentities(format_price($product->price)) !!} @else {!! htmlentities(format_price($product->price)) !!} @endif {{ $orderProduct->qty }} @if ($product->front_sale_price != $product->price) {!! htmlentities(format_price($product->front_sale_price * $orderProduct->qty)) !!} @else {!! htmlentities(format_price($product->price * $orderProduct->qty)) !!} @endif
 

{{ trans('plugins/ecommerce::products.form.sub_total') }}: {!! htmlentities(format_price($order->sub_total)) !!}

{{ trans('plugins/ecommerce::products.form.shipping_fee') }}: {!! htmlentities(format_price($order->shipping_amount)) !!}

{{ trans('plugins/ecommerce::products.form.discount') }}: {!! htmlentities(format_price($order->discount_amount)) !!}

{{ trans('plugins/ecommerce::products.form.total') }}: {!! htmlentities(format_price($order->amount)) !!}