@extends('core/base::layouts.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 ($invoice->tax_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.quantity') }}: {{ number_format($invoice->items->sum('qty')) }}
{{ 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) }}
@if ($invoice->reference && $invoice->reference->id)
{{ trans('plugins/ecommerce::invoice.detail.invoice_for') }}: {{ Html::link(route('orders.edit', $invoice->reference->id), $invoice->reference->code, ['target' => '_blank']) }}
@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) !!}

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

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


@endsection