@if (get_ecommerce_setting('using_custom_font_for_invoice', 0) == 1 && get_ecommerce_setting('invoice_font_family')) @endif @if (get_ecommerce_setting('enable_invoice_stamp', 1) == 1) @if ($order->status == \Botble\Ecommerce\Enums\OrderStatusEnum::CANCELED && trim($order->status->label())) {{ $order->status->label() }} @elseif (trim($order->payment->status->label())) {{ $order->payment->status->label() }} @endif @endif @php $logo = theme_option('logo_in_invoices') ?: theme_option('logo'); @endphp
@if ($logo) {{ theme_option('site_title') }} @endif

{{ now()->format('F d, Y') }}

{{ trans('plugins/ecommerce::order.invoice') }} {{ get_order_code($order->id) }}

{{ get_ecommerce_setting('store_name') }}

{{ get_ecommerce_setting('store_address') }}, {{ get_ecommerce_setting('store_city') }}, {{ get_ecommerce_setting('store_state') }}, {{ EcommerceHelper::getCountryNameById(get_ecommerce_setting('store_country')) }}

{{ get_ecommerce_setting('store_phone') }}

@if (get_ecommerce_setting('store_vat_number'))

{{ trans('plugins/ecommerce::ecommerce.setting.vat_number') }}: {{ get_ecommerce_setting('store_vat_number') }}

@endif

{{ $order->address->name }}

{{ $order->full_address }}

@if ($order->address->phone)

{{ $order->address->phone }}

@endif
@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 }} {!! htmlentities(format_price($orderProduct->price)) !!} {!! htmlentities(format_price($orderProduct->price * $orderProduct->qty)) !!}
{{ 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)) !!}