@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

{{ $order->created_at->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
@php $address = $order->shippingAddress; if (EcommerceHelper::isBillingAddressEnabled() && $order->billingAddress->id) { $address = $order->billingAddress; } @endphp

{{ $address->name }}

{{ $address->full_address }}

@if ($address->phone)

{{ $address->phone }}

@endif
@if ($order->description)

{{ trans('plugins/ecommerce::order.note') }}: {{ $order->description }}

@endif @foreach ($order->products 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', ], ]); @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->original_product->name ?: $orderProduct->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() }}
@if ($order->payment->payment_channel == \Botble\Payment\Enums\PaymentMethodEnum::BANK_TRANSFER && $order->payment->status == \Botble\Payment\Enums\PaymentStatusEnum::PENDING)
{{ trans('plugins/ecommerce::order.payment_info') }}: {!! BaseHelper::clean(get_payment_setting('description', $order->payment->payment_channel)) !!}
@endif
{!! htmlentities(format_price($order->amount)) !!}