@extends('layouts.invoice') @section('title', trans_choice('general.invoices', 1) . ': ' . $invoice->invoice_number) @section('content')
@if ($logo) @endif
{{ setting('general.company_name') }}
{!! nl2br(setting('general.company_address')) !!}
@if (setting('general.company_tax_number')) {{ trans('general.tax_number') }}: {{ setting('general.company_tax_number') }}
@endif
@if (setting('general.company_phone')) {{ setting('general.company_phone') }}
@endif {{ setting('general.company_email') }}
{{ trans('invoices.bill_to') }}

@stack('name_input_start') {{ $invoice->customer_name }}
@stack('name_input_end') @stack('address_input_start') {!! nl2br($invoice->customer_address) !!}
@stack('address_input_end') @stack('tax_number_input_start') @if ($invoice->customer_tax_number) {{ trans('general.tax_number') }}: {{ $invoice->customer_tax_number }}
@endif @stack('tax_number_input_end')
@stack('phone_input_start') @if ($invoice->customer_phone) {{ $invoice->customer_phone }}
@endif @stack('phone_input_end') @stack('email_start') {{ $invoice->customer_email }} @stack('email_input_end')
@stack('invoice_number_input_start') @stack('invoice_number_input_end') @stack('order_number_input_start') @if ($invoice->order_number) @endif @stack('order_number_input_end') @stack('invoiced_at_input_start') @stack('invoiced_at_input_end') @stack('due_at_input_start') @stack('due_at_input_end')
{{ trans('invoices.invoice_number') }}: {{ $invoice->invoice_number }}
{{ trans('invoices.order_number') }}: {{ $invoice->order_number }}
{{ trans('invoices.invoice_date') }}: {{ Date::parse($invoice->invoiced_at)->format($date_format) }}
{{ trans('invoices.payment_due') }}: {{ Date::parse($invoice->due_at)->format($date_format) }}
@stack('actions_th_start') @stack('actions_th_end') @stack('name_th_start') @stack('name_th_end') @stack('quantity_th_start') @stack('quantity_th_end') @stack('price_th_start') @stack('price_th_end') @stack('taxes_th_start') @stack('taxes_th_end') @stack('total_th_start') @stack('total_th_end') @foreach($invoice->items as $item) @stack('actions_td_start') @stack('actions_td_end') @stack('name_td_start') @stack('name_td_end') @stack('quantity_td_start') @stack('quantity_td_end') @stack('price_td_start') @stack('price_td_end') @stack('taxes_td_start') @stack('taxes_td_end') @stack('total_td_start') @stack('total_td_end') @endforeach
{{ trans_choice($text_override['items'], 2) }}{{ trans($text_override['quantity']) }}{{ trans($text_override['price']) }}{{ trans('invoices.total') }}
{{ $item->name }} @if ($item->sku)
{{ trans('items.sku') }}: {{ $item->sku }} @endif
{{ $item->quantity }}@money($item->price, $invoice->currency_code, true)@money($item->total, $invoice->currency_code, true)
@stack('notes_input_start') @if ($invoice->notes)
{{ trans_choice('general.notes', 2) }}
{{ $invoice->notes }}
@endif @stack('notes_input_end')
@foreach ($invoice->totals as $total) @if ($total->code != 'total') @stack($total->code . '_td_start') @stack($total->code . '_td_end') @else @if ($invoice->paid) @endif @stack('grand_total_td_start') @stack('grand_total_td_end') @endif @endforeach
{{ trans($total->title) }}: @money($total->amount, $invoice->currency_code, true)
{{ trans('invoices.paid') }}: - @money($invoice->paid, $invoice->currency_code, true)
{{ trans($total->name) }}: @money($total->amount - $invoice->paid, $invoice->currency_code, true)
@endsection