@lang('admin::app.sales.invoices.view.title', ['invoice_id' => $invoice->increment_id ?? $invoice->id]) @php $order = $invoice->order; @endphp
{!! view_render_event('bagisto.admin.sales.invoice.title.before', ['order' => $order]) !!}

@lang('admin::app.sales.invoices.view.title', ['invoice_id' => $invoice->increment_id ?? $invoice->id]) {{ $invoice->status_label }}

{!! view_render_event('bagisto.admin.sales.invoice.title.after', ['order' => $order]) !!}
{!! view_render_event('bagisto.admin.sales.invoice.page_action.before', ['order' => $order]) !!} @lang('admin::app.sales.invoices.view.print')

@lang('admin::app.sales.invoices.view.send-duplicate-invoice')

@lang('admin::app.sales.invoices.view.email')
{!! view_render_event('bagisto.admin.sales.invoice.page_action.after', ['order' => $order]) !!}

@lang('admin::app.sales.invoices.view.invoice-items') ({{ count($invoice->items) }})

@foreach($invoice->items as $item)
@if ($item->product?->base_image_url) @else

@lang('admin::app.sales.invoices.view.product-image')

@endif

{{ $item->name }}

@lang('admin::app.sales.invoices.view.amount-per-unit', [ 'amount' => core()->formatBasePrice($item->base_price), 'qty' => $item->qty, ])

@if (isset($item->additional['attributes']))

@foreach ($item->additional['attributes'] as $attribute) {{ $attribute['attribute_name'] }} : {{ $attribute['option_label'] }} @endforeach

@endif

@lang('admin::app.sales.invoices.view.sku', ['sku' => $item->getTypeInstance()->getOrderedItem($item)->sku])

@lang('admin::app.sales.invoices.view.qty', ['qty' => $item->qty])

{{ core()->formatBasePrice($item->base_total + $item->base_tax_amount - $item->base_discount_amount) }}

@if (core()->getConfigData('sales.taxes.sales.display_prices') == 'including_tax')

@lang('admin::app.sales.invoices.view.price', ['price' => core()->formatBasePrice($item->base_price_incl_tax)])

@elseif (core()->getConfigData('sales.taxes.sales.display_prices') == 'both')

@lang('admin::app.sales.invoices.view.price-excl-tax', ['price' => core()->formatBasePrice($item->base_price)])

@lang('admin::app.sales.invoices.view.price-incl-tax', ['price' => core()->formatBasePrice($item->base_price_incl_tax)])

@else

@lang('admin::app.sales.invoices.view.price', ['price' => core()->formatBasePrice($item->base_price)])

@endif

@lang('admin::app.sales.invoices.view.tax', ['tax' => core()->formatBasePrice($item->base_tax_amount)])

@if ($invoice->base_discount_amount > 0)

@lang('admin::app.sales.invoices.view.discount', ['discount' => core()->formatBasePrice($item->base_discount_amount)])

@endif @if (core()->getConfigData('sales.taxes.sales.display_subtotal') == 'including_tax')

@lang('admin::app.sales.invoices.view.sub-total', ['sub_total' => core()->formatBasePrice($item->base_total_incl_tax)])

@elseif (core()->getConfigData('sales.taxes.sales.display_subtotal') == 'both')

@lang('admin::app.sales.invoices.view.sub-total-excl-tax', ['sub_total' => core()->formatBasePrice($item->base_total)])

@lang('admin::app.sales.invoices.view.sub-total-incl-tax', ['sub_total' => core()->formatBasePrice($item->base_total_incl_tax)])

@else

@lang('admin::app.sales.invoices.view.sub-total', ['sub_total' => core()->formatBasePrice($item->base_total)])

@endif
@endforeach
@if (core()->getConfigData('sales.taxes.sales.display_subtotal') == 'both')

@lang('admin::app.sales.invoices.view.sub-total-summary-excl-tax')

@lang('admin::app.sales.invoices.view.sub-total-summary-incl-tax')

@else

@lang('admin::app.sales.invoices.view.sub-total-summary')

@endif @if (core()->getConfigData('sales.taxes.sales.display_shipping_amount') == 'both')

@lang('admin::app.sales.invoices.view.shipping-and-handling-excl-tax')

@lang('admin::app.sales.invoices.view.shipping-and-handling-incl-tax')

@else

@lang('admin::app.sales.invoices.view.shipping-and-handling')

@endif

@lang('admin::app.sales.invoices.view.summary-tax')

@if ($invoice->base_discount_amount > 0)

@lang('admin::app.sales.invoices.view.summary-discount')

@endif

@lang('admin::app.sales.invoices.view.grand-total')

@if (core()->getConfigData('sales.taxes.sales.display_subtotal') == 'including_tax')

{{ core()->formatBasePrice($invoice->base_sub_total_incl_tax) }}

@elseif (core()->getConfigData('sales.taxes.sales.display_subtotal') == 'both')

{{ core()->formatBasePrice($invoice->base_sub_total) }}

{{ core()->formatBasePrice($invoice->base_sub_total_incl_tax) }}

@else

{{ core()->formatBasePrice($invoice->base_sub_total) }}

@endif @if (core()->getConfigData('sales.taxes.sales.display_shipping_amount') == 'including_tax')

{{ core()->formatBasePrice($invoice->base_shipping_amount_incl_tax) }}

@elseif (core()->getConfigData('sales.taxes.sales.display_shipping_amount') == 'both')

{{ core()->formatBasePrice($invoice->base_shipping_amount) }}

{{ core()->formatBasePrice($invoice->base_shipping_amount_incl_tax) }}

@else

{{ core()->formatBasePrice($invoice->base_shipping_amount) }}

@endif

{{ core()->formatBasePrice($invoice->base_tax_amount) }}

@if ($invoice->base_discount_amount > 0)

{{ core()->formatBasePrice($invoice->base_discount_amount) }}

@endif

{{ core()->formatBasePrice($invoice->base_grand_total) }}

@lang('admin::app.sales.invoices.view.customer')

{{ $invoice->order->customer_full_name }}

{!! view_render_event('bagisto.admin.sales.invoice.customer_name.after', ['order' => $order]) !!}

@lang('admin::app.sales.invoices.view.customer-email', ['email' => $invoice->order->customer_email])

{!! view_render_event('bagisto.admin.sales.invoice.customer_email.after', ['order' => $order]) !!}
@if ($order->billing_address || $order->shipping_address) @if ($order->billing_address)

@lang('Billing Address')

@include ('admin::sales.address', ['address' => $order->billing_address]) {!! view_render_event('bagisto.admin.sales.invoice.billing_address.after', ['order' => $order]) !!}
@endif @if ($order->shipping_address)

@lang('Shipping Address')

@include ('admin::sales.address', ['address' => $order->shipping_address]) {!! view_render_event('bagisto.admin.sales.invoice.shipping_address.after', ['order' => $order]) !!} @endif @endif

@lang('admin::app.sales.invoices.view.order-information')

@foreach (['order-id', 'order-date', 'order-status', 'invoice-status', 'channel'] as $item)

@lang('admin::app.sales.invoices.view.' . $item)

@endforeach

#{{ $order->increment_id }}

{!! view_render_event('bagisto.admin.sales.invoice.increment_id.after', ['order' => $order]) !!}

{{ core()->formatDate($order->created_at) }}

{!! view_render_event('bagisto.admin.sales.invoice.created_at.after', ['order' => $order]) !!}

{{ $order->status_label }}

{!! view_render_event('bagisto.admin.sales.invoice.status_label.after', ['order' => $order]) !!}

{{ $invoice->status_label }}

{{ $order->channel_name }}

{!! view_render_event('bagisto.admin.sales.invoice.channel_name.after', ['order' => $order]) !!}