@extends(BaseHelper::getAdminMasterLayoutTemplate()) @push('header-action') {{ trans('plugins/ecommerce::invoice.print') }} {{ trans('plugins/ecommerce::invoice.download') }} @endpush @section('content')
@if ($invoice->company_logo) {{ $invoice->company_name }} @endif

{{ trans('plugins/ecommerce::invoice.heading') }}

    @if ($customerName = $invoice->customer_name)
  • {{ $customerName }}
  • @endif @if ($customerEmail = $invoice->customer_email)
  • {{ $customerEmail }}
  • @endif @if ($customerPhone = $invoice->customer_phone)
  • {{ $customerPhone }}
  • @endif @if ($customerAddress = $invoice->customer_address)
  • {{ $customerAddress }}
  • @endif @if ($customerTaxID = $invoice->customer_tax_id)
  • {{ __('Tax ID:') }} {{ $customerTaxID }}
  • @endif
{{ trans('plugins/ecommerce::invoice.detail.code') }} {{ $invoice->code }} @if ($invoice->created_at) {{ trans('plugins/ecommerce::invoice.detail.issue_at') }} {{ $invoice->created_at->translatedFormat('j F, Y') }} @endif @if (is_plugin_active('payment') && $invoice->payment->payment_channel->label()) {{ trans('plugins/ecommerce::invoice.payment_method') }} {{ $invoice->payment->payment_channel->label() }} @endif
# {{ __('Image') }} {{ __('Product') }} {{ __('Amount') }} {{ __('Quantity') }} {{ __('Total') }} @foreach ($invoice->items as $invoiceItem) @php $product = get_products([ 'condition' => [ 'ec_products.id' => $invoiceItem->reference_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 {{ $loop->iteration }} {{ $invoiceItem->name }} @if($product && $product->original_product?->url) {!! BaseHelper::clean($invoiceItem->name) !!} @else {!! BaseHelper::clean($invoiceItem->name) !!} @endif @if ($sku = Arr::get($invoiceItem->options, 'sku')) ({{ $sku }}) @endif @if ($attributes = Arr::get($invoiceItem->options, 'attributes'))

{{ $attributes }}

@elseif ($product && $product->is_variation)

@php $attributes = get_product_attributes($product->id); @endphp @foreach ($attributes as $attribute) {{ $attribute->attribute_set_title }}: {{ $attribute->title }}@if (!$loop->last), @endif @endforeach

@endif @include( EcommerceHelper::viewPath('includes.cart-item-options-extras'), ['options' => $invoiceItem->options] ) @if (is_plugin_active('marketplace') && ($product = $invoiceItem->reference) && $product->original_product->store->id)

{{ __('Sold by') }} {{$product->original_product->store->name }}

@endif
{{ $invoiceItem->amount_format }} {{ $invoiceItem->qty }} {{ $invoiceItem->total_format }}
@endforeach
{{ trans('plugins/ecommerce::invoice.detail.quantity') }} {{ number_format($invoice->items->sum('qty')) }} {{ trans('plugins/ecommerce::invoice.detail.sub_total') }} {{ format_price($invoice->sub_total) }} @if ($invoice->tax_amount > 0) {{ trans('plugins/ecommerce::invoice.detail.tax') }} {{ format_price($invoice->tax_amount) }} @endif {{ trans('plugins/ecommerce::invoice.detail.shipping_fee') }} {{ format_price($invoice->shipping_amount) }} {{ trans('plugins/ecommerce::invoice.detail.discount') }} {{ format_price($invoice->discount_amount) }} {{ trans('plugins/ecommerce::invoice.detail.grand_total') }} {{ format_price($invoice->amount) }} {{ trans('plugins/ecommerce::invoice.total_amount') }}

{{ format_price($invoice->amount) }}

@if ($invoice->reference && $invoice->reference->id) {{ trans('plugins/ecommerce::invoice.detail.invoice_for') }}: {{ $invoice->reference->code }} @endif

@if ($invoice->company_name) {{ trans('plugins/ecommerce::invoice.detail.invoice_to') }}: {{ $invoice->company_name }}
@endif @if ($invoice->customer_tax_id) {{ trans('plugins/ecommerce::invoice.detail.tax_id') }}: {{ $invoice->customer_tax_id }}
@endif {!! apply_filters('ecommerce_admin_invoice_extra_info', null, $invoice->reference) !!}

@endsection