@extends(EcommerceHelper::viewPath('customers.master')) @section('content')
@if ($invoice->company_logo) {{ $invoice->company_name }} @endif

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

    @if ($invoice->customer_name)
  • {{ $invoice->customer_name }}
  • @endif @if ($invoice->customer_email)
  • {{ $invoice->customer_email }}
  • @endif @if ($invoice->customer_phone)
  • {{ $invoice->customer_phone }}
  • @endif @if ($invoice->customer_address)
  • {{ $invoice->customer_address }}
  • @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 ($invoice->payment->payment_channel->label())
{{ trans('plugins/ecommerce::invoice.payment_method') }}: {{ $invoice->payment->payment_channel->label() }}
@endif

@foreach ($invoice->items as $item) @endforeach @if ((float) $invoice->tax_amount > 0) @endif @if ((float) $invoice->shipping_amount > 0) @endif @if ((float) $invoice->discount_amount > 0) @endif
{{ trans('plugins/ecommerce::invoice.detail.description') }} {{ trans('plugins/ecommerce::invoice.detail.qty') }} {{ trans('plugins/ecommerce::invoice.total_amount') }}

{{ $item->name }}

@if ($item->description) {{ $item->description }} @endif
{{ $item->qty }} {{ format_price($item->amount) }}
{{ trans('plugins/ecommerce::invoice.detail.sub_total') }}: {{ format_price($invoice->sub_total) }}
{{ trans('plugins/ecommerce::invoice.detail.tax') }}: {{ format_price($invoice->tax_amount) }}
{{ 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.detail.invoice_for') }}

@if ($invoice->created_at) {{ trans('plugins/ecommerce::invoice.detail.issue_at') }}: {{ $invoice->created_at->format('j F, Y') }}
@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

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

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


@endsection