{{ $order->payment->status->label() }} @php $logo = theme_option('logo_in_invoices') ?: theme_option('logo'); @endphp
@if ($logo) {{ theme_option('site_title') }} @endif
{{ trans('plugins/ecommerce::order.customer_label') }} {{ $order->address->name }}
{{ $order->full_address }}
{{ trans('plugins/ecommerce::order.created') }}: {{ now()->format('F d, Y') }} {{ $order->address->email }}
{{ trans('plugins/ecommerce::order.invoice') }}: {{ get_order_code($order->id) }} {{ $order->address->phone ?? 'N/A' }}
@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 (EcommerceHelper::isTaxEnabled()) @endif
{{ trans('plugins/ecommerce::products.form.product') }} {{ trans('plugins/ecommerce::products.form.options') }} {{ trans('plugins/ecommerce::products.form.quantity') }} {{ trans('plugins/ecommerce::products.form.price') }} {{ trans('plugins/ecommerce::products.form.total') }}
{{ $product->name }} {{ $product->variation_attributes }} @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
{{ $orderProduct->qty }} @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 @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.tax') }} {!! htmlentities(format_price($order->tax_amount)) !!}
{{ 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::order.payment_info') }} {{ trans('plugins/ecommerce::order.total_amount') }}
{{ trans('plugins/ecommerce::order.payment_method') }}: {{ $order->payment->payment_channel->label() }}
{{ trans('plugins/ecommerce::order.payment_status_label') }}: {{ $order->payment->status->label() }}
{!! htmlentities(format_price($order->amount)) !!}