2017-09-14 22:21:00 +03:00
|
|
|
@extends('layouts.invoice')
|
|
|
|
|
|
|
|
@section('title', trans_choice('general.invoices', 1) . ': ' . $invoice->invoice_number)
|
|
|
|
|
|
|
|
@section('content')
|
2018-10-11 12:29:48 +03:00
|
|
|
<div class="row header">
|
2018-10-11 05:35:38 +13:00
|
|
|
<div class="col-58">
|
|
|
|
@if ($logo)
|
2018-10-11 12:29:48 +03:00
|
|
|
<img src="{{ $logo }}" class="logo" />
|
2018-10-11 05:35:38 +13:00
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
<div class="col-42">
|
2018-10-11 12:29:48 +03:00
|
|
|
<div class="text company">
|
2018-10-11 05:35:38 +13:00
|
|
|
<strong>{{ setting('general.company_name') }}</strong><br>
|
|
|
|
{!! nl2br(setting('general.company_address')) !!}<br>
|
|
|
|
@if (setting('general.company_tax_number'))
|
|
|
|
{{ trans('general.tax_number') }}: {{ setting('general.company_tax_number') }}<br>
|
|
|
|
@endif
|
|
|
|
<br>
|
|
|
|
@if (setting('general.company_phone'))
|
|
|
|
{{ setting('general.company_phone') }}<br>
|
|
|
|
@endif
|
|
|
|
{{ setting('general.company_email') }}
|
2017-09-14 22:21:00 +03:00
|
|
|
</div>
|
2018-10-11 05:35:38 +13:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-09-14 22:21:00 +03:00
|
|
|
|
2018-10-11 05:35:38 +13:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-58">
|
|
|
|
<div class="text">
|
|
|
|
{{ trans('invoices.bill_to') }}<br><br>
|
2018-11-07 22:32:46 +03:00
|
|
|
@stack('name_input_start')
|
2018-10-11 05:35:38 +13:00
|
|
|
<strong>{{ $invoice->customer_name }}</strong><br>
|
2018-11-07 22:32:46 +03:00
|
|
|
@stack('name_input_end')
|
|
|
|
@stack('address_input_start')
|
2018-10-11 05:35:38 +13:00
|
|
|
{!! nl2br($invoice->customer_address) !!}<br>
|
2018-11-07 22:32:46 +03:00
|
|
|
@stack('address_input_end')
|
|
|
|
@stack('tax_number_input_start')
|
2018-10-11 05:35:38 +13:00
|
|
|
@if ($invoice->customer_tax_number)
|
|
|
|
{{ trans('general.tax_number') }}: {{ $invoice->customer_tax_number }}<br>
|
|
|
|
@endif
|
2018-11-07 22:32:46 +03:00
|
|
|
@stack('tax_number_input_end')
|
2018-10-11 05:35:38 +13:00
|
|
|
<br>
|
2018-11-07 22:32:46 +03:00
|
|
|
@stack('phone_input_start')
|
2018-10-11 05:35:38 +13:00
|
|
|
@if ($invoice->customer_phone)
|
|
|
|
{{ $invoice->customer_phone }}<br>
|
|
|
|
@endif
|
2018-11-07 22:32:46 +03:00
|
|
|
@stack('phone_input_end')
|
|
|
|
@stack('email_start')
|
2018-10-11 05:35:38 +13:00
|
|
|
{{ $invoice->customer_email }}
|
2018-11-07 22:32:46 +03:00
|
|
|
@stack('email_input_end')
|
2017-09-14 22:21:00 +03:00
|
|
|
</div>
|
2018-10-11 05:35:38 +13:00
|
|
|
</div>
|
|
|
|
<div class="col-42">
|
|
|
|
<div class="text">
|
|
|
|
<table>
|
|
|
|
<tbody>
|
2018-11-07 22:32:46 +03:00
|
|
|
@stack('invoice_number_input_start')
|
2018-10-11 05:35:38 +13:00
|
|
|
<tr>
|
|
|
|
<th>{{ trans('invoices.invoice_number') }}:</th>
|
|
|
|
<td class="text-right">{{ $invoice->invoice_number }}</td>
|
|
|
|
</tr>
|
2018-11-07 22:32:46 +03:00
|
|
|
@stack('invoice_number_input_end')
|
|
|
|
@stack('order_number_input_start')
|
2018-10-11 05:35:38 +13:00
|
|
|
@if ($invoice->order_number)
|
|
|
|
<tr>
|
|
|
|
<th>{{ trans('invoices.order_number') }}:</th>
|
|
|
|
<td class="text-right">{{ $invoice->order_number }}</td>
|
|
|
|
</tr>
|
|
|
|
@endif
|
2018-11-07 22:32:46 +03:00
|
|
|
@stack('order_number_input_end')
|
|
|
|
@stack('invoiced_at_input_start')
|
2018-10-11 05:35:38 +13:00
|
|
|
<tr>
|
|
|
|
<th>{{ trans('invoices.invoice_date') }}:</th>
|
|
|
|
<td class="text-right">{{ Date::parse($invoice->invoiced_at)->format($date_format) }}</td>
|
|
|
|
</tr>
|
2018-11-07 22:32:46 +03:00
|
|
|
@stack('invoiced_at_input_end')
|
|
|
|
@stack('due_at_input_start')
|
2018-10-11 05:35:38 +13:00
|
|
|
<tr>
|
|
|
|
<th>{{ trans('invoices.payment_due') }}:</th>
|
|
|
|
<td class="text-right">{{ Date::parse($invoice->due_at)->format($date_format) }}</td>
|
|
|
|
</tr>
|
2018-11-07 22:32:46 +03:00
|
|
|
@stack('due_at_input_end')
|
2018-10-11 05:35:38 +13:00
|
|
|
</tbody>
|
|
|
|
</table>
|
2017-09-14 22:21:00 +03:00
|
|
|
</div>
|
2018-10-11 05:35:38 +13:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-09-14 22:21:00 +03:00
|
|
|
|
2018-10-11 12:29:48 +03:00
|
|
|
<table class="lines">
|
2018-10-11 05:35:38 +13:00
|
|
|
<thead>
|
|
|
|
<tr>
|
2018-11-07 22:32:46 +03:00
|
|
|
@stack('actions_th_start')
|
|
|
|
@stack('actions_th_end')
|
|
|
|
@stack('name_th_start')
|
2018-10-17 20:58:46 +03:00
|
|
|
<th class="item">{{ trans_choice($text_override['items'], 2) }}</th>
|
2018-11-07 22:32:46 +03:00
|
|
|
@stack('name_th_end')
|
|
|
|
@stack('quantity_th_start')
|
2018-10-17 20:58:46 +03:00
|
|
|
<th class="quantity">{{ trans($text_override['quantity']) }}</th>
|
2018-11-07 22:32:46 +03:00
|
|
|
@stack('quantity_th_end')
|
|
|
|
@stack('price_th_start')
|
2018-10-17 20:58:46 +03:00
|
|
|
<th class="price">{{ trans($text_override['price']) }}</th>
|
2018-11-07 22:32:46 +03:00
|
|
|
@stack('price_th_end')
|
|
|
|
@stack('taxes_th_start')
|
|
|
|
@stack('taxes_th_end')
|
|
|
|
@stack('total_th_start')
|
2018-10-11 05:35:38 +13:00
|
|
|
<th class="total">{{ trans('invoices.total') }}</th>
|
2018-11-07 22:32:46 +03:00
|
|
|
@stack('total_th_end')
|
2018-10-11 05:35:38 +13:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
@foreach($invoice->items as $item)
|
2018-10-11 12:29:48 +03:00
|
|
|
<tr>
|
2018-11-07 22:32:46 +03:00
|
|
|
@stack('actions_td_start')
|
|
|
|
@stack('actions_td_end')
|
|
|
|
@stack('name_td_start')
|
2018-10-11 12:29:48 +03:00
|
|
|
<td class="item">
|
|
|
|
{{ $item->name }}
|
|
|
|
@if ($item->sku)
|
|
|
|
<br><small>{{ trans('items.sku') }}: {{ $item->sku }}</small>
|
|
|
|
@endif
|
|
|
|
</td>
|
2018-11-07 22:32:46 +03:00
|
|
|
@stack('name_td_end')
|
|
|
|
@stack('quantity_td_start')
|
2018-10-11 12:29:48 +03:00
|
|
|
<td class="quantity">{{ $item->quantity }}</td>
|
2018-11-07 22:32:46 +03:00
|
|
|
@stack('quantity_td_end')
|
|
|
|
@stack('price_td_start')
|
2018-11-29 12:56:49 +03:00
|
|
|
<td class="style-price price">@money($item->price, $invoice->currency_code, true)</td>
|
2018-11-07 22:32:46 +03:00
|
|
|
@stack('price_td_end')
|
|
|
|
@stack('taxes_td_start')
|
|
|
|
@stack('taxes_td_end')
|
|
|
|
@stack('total_td_start')
|
2018-11-29 12:56:49 +03:00
|
|
|
<td class="style-price total">@money($item->total, $invoice->currency_code, true)</td>
|
2018-11-07 22:32:46 +03:00
|
|
|
@stack('total_td_end')
|
2018-10-11 12:29:48 +03:00
|
|
|
</tr>
|
2018-10-11 05:35:38 +13:00
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2017-09-14 22:21:00 +03:00
|
|
|
|
2018-10-11 05:35:38 +13:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-58">
|
2018-11-07 22:32:46 +03:00
|
|
|
@stack('notes_input_start')
|
2018-10-11 05:35:38 +13:00
|
|
|
@if ($invoice->notes)
|
2018-10-11 12:29:48 +03:00
|
|
|
<table class="text" style="page-break-inside: avoid;">
|
|
|
|
<tr><th>{{ trans_choice('general.notes', 2) }}</th></tr>
|
|
|
|
<tr><td>{{ $invoice->notes }}</td></tr>
|
|
|
|
</table>
|
2018-10-11 05:35:38 +13:00
|
|
|
@endif
|
2018-11-07 22:32:46 +03:00
|
|
|
@stack('notes_input_end')
|
2018-10-11 05:35:38 +13:00
|
|
|
</div>
|
|
|
|
<div class="col-42">
|
|
|
|
<table class="text" style="page-break-inside: avoid;">
|
|
|
|
<tbody>
|
|
|
|
@foreach ($invoice->totals as $total)
|
|
|
|
@if ($total->code != 'total')
|
2018-11-07 22:32:46 +03:00
|
|
|
@stack($total->code . '_td_start')
|
2018-10-11 05:35:38 +13:00
|
|
|
<tr>
|
|
|
|
<th>{{ trans($total->title) }}:</th>
|
2018-11-29 12:56:49 +03:00
|
|
|
<td class="style-price text-right">@money($total->amount, $invoice->currency_code, true)</td>
|
2018-10-11 05:35:38 +13:00
|
|
|
</tr>
|
2018-11-07 22:32:46 +03:00
|
|
|
@stack($total->code . '_td_end')
|
2018-10-11 05:35:38 +13:00
|
|
|
@else
|
|
|
|
@if ($invoice->paid)
|
|
|
|
<tr class="text-success">
|
|
|
|
<th>{{ trans('invoices.paid') }}:</th>
|
2018-11-29 12:56:49 +03:00
|
|
|
<td class="style-price text-right">- @money($invoice->paid, $invoice->currency_code, true)</td>
|
2018-10-11 05:35:38 +13:00
|
|
|
</tr>
|
|
|
|
@endif
|
2018-11-07 22:32:46 +03:00
|
|
|
@stack('grand_total_td_start')
|
2018-10-11 05:35:38 +13:00
|
|
|
<tr>
|
|
|
|
<th>{{ trans($total->name) }}:</th>
|
2018-11-29 12:56:49 +03:00
|
|
|
<td class="style-price text-right">@money($total->amount - $invoice->paid, $invoice->currency_code, true)</td>
|
2018-10-11 05:35:38 +13:00
|
|
|
</tr>
|
2018-11-07 22:32:46 +03:00
|
|
|
@stack('grand_total_td_end')
|
2017-09-14 22:21:00 +03:00
|
|
|
@endif
|
2018-10-11 05:35:38 +13:00
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-09-14 22:21:00 +03:00
|
|
|
@endsection
|
2018-11-29 12:56:49 +03:00
|
|
|
|
|
|
|
@if (isset($currency_style) && $currency_style)
|
|
|
|
@push('stylesheet')
|
|
|
|
<style type="text/css">
|
|
|
|
.style-price {
|
|
|
|
font-family: sans-serif;
|
|
|
|
font-size: 15px;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
@endpush
|
|
|
|
@endif
|