changed trans and trans_choice location..
This commit is contained in:
parent
7b126834ff
commit
7e35aefde6
@ -522,7 +522,7 @@ abstract class DocumentIndex extends Component
|
|||||||
return $textDocumentNumber;
|
return $textDocumentNumber;
|
||||||
}
|
}
|
||||||
|
|
||||||
return trans_choice('general.numbers', 1);
|
return 'general.numbers';
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function getClassDocumentNumber($type, $classDocumentNumber)
|
protected function getClassDocumentNumber($type, $classDocumentNumber)
|
||||||
@ -548,12 +548,12 @@ abstract class DocumentIndex extends Component
|
|||||||
case 'sale':
|
case 'sale':
|
||||||
case 'income':
|
case 'income':
|
||||||
case 'invoice':
|
case 'invoice':
|
||||||
$textContactName = trans_choice('general.customers', 1);
|
$textContactName = 'general.customers';
|
||||||
break;
|
break;
|
||||||
case 'bill':
|
case 'bill':
|
||||||
case 'expense':
|
case 'expense':
|
||||||
case 'purchase':
|
case 'purchase':
|
||||||
$textContactName = trans_choice('general.vendors', 1);
|
$textContactName = 'general.vendors';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -596,12 +596,12 @@ abstract class DocumentIndex extends Component
|
|||||||
case 'sale':
|
case 'sale':
|
||||||
case 'income':
|
case 'income':
|
||||||
case 'invoice':
|
case 'invoice':
|
||||||
$textIssueAt = trans('invoices.invoice_date');
|
$textIssueAt = 'invoices.invoice_date';
|
||||||
break;
|
break;
|
||||||
case 'bill':
|
case 'bill':
|
||||||
case 'expense':
|
case 'expense':
|
||||||
case 'purchase':
|
case 'purchase':
|
||||||
$textIssueAt = trans('bills.bill_date');
|
$textIssueAt = 'bills.bill_date';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -631,12 +631,12 @@ abstract class DocumentIndex extends Component
|
|||||||
case 'sale':
|
case 'sale':
|
||||||
case 'income':
|
case 'income':
|
||||||
case 'invoice':
|
case 'invoice':
|
||||||
$textDueAt = trans('invoices.due_date');
|
$textDueAt = 'invoices.due_date';
|
||||||
break;
|
break;
|
||||||
case 'bill':
|
case 'bill':
|
||||||
case 'expense':
|
case 'expense':
|
||||||
case 'purchase':
|
case 'purchase':
|
||||||
$textDueAt = trans('bills.due_date');
|
$textDueAt = 'bills.due_date';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -254,12 +254,12 @@ abstract class DocumentTemplate extends Component
|
|||||||
case 'sale':
|
case 'sale':
|
||||||
case 'income':
|
case 'income':
|
||||||
case 'invoice':
|
case 'invoice':
|
||||||
$textDocumentNumber = trans('invoices.invoice_number');
|
$textDocumentNumber = 'invoices.invoice_number';
|
||||||
break;
|
break;
|
||||||
case 'bill':
|
case 'bill':
|
||||||
case 'expense':
|
case 'expense':
|
||||||
case 'purchase':
|
case 'purchase':
|
||||||
$textDocumentNumber = trans('bills.bill_number');
|
$textDocumentNumber = 'bills.bill_number';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -276,12 +276,12 @@ abstract class DocumentTemplate extends Component
|
|||||||
case 'sale':
|
case 'sale':
|
||||||
case 'income':
|
case 'income':
|
||||||
case 'invoice':
|
case 'invoice':
|
||||||
$textOrderNumber = trans('invoices.order_number');
|
$textOrderNumber = 'invoices.order_number';
|
||||||
break;
|
break;
|
||||||
case 'bill':
|
case 'bill':
|
||||||
case 'expense':
|
case 'expense':
|
||||||
case 'purchase':
|
case 'purchase':
|
||||||
$textOrderNumber = trans('bills.order_number');
|
$textOrderNumber = 'bills.order_number';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -298,12 +298,12 @@ abstract class DocumentTemplate extends Component
|
|||||||
case 'sale':
|
case 'sale':
|
||||||
case 'income':
|
case 'income':
|
||||||
case 'invoice':
|
case 'invoice':
|
||||||
$textContactInfo = trans('invoices.bill_to');
|
$textContactInfo = 'invoices.bill_to';
|
||||||
break;
|
break;
|
||||||
case 'bill':
|
case 'bill':
|
||||||
case 'expense':
|
case 'expense':
|
||||||
case 'purchase':
|
case 'purchase':
|
||||||
$textContactInfo = trans('bills.bill_from');
|
$textContactInfo = 'bills.bill_from';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -320,12 +320,12 @@ abstract class DocumentTemplate extends Component
|
|||||||
case 'sale':
|
case 'sale':
|
||||||
case 'income':
|
case 'income':
|
||||||
case 'invoice':
|
case 'invoice':
|
||||||
$textIssuedAt = trans('invoices.invoice_date');
|
$textIssuedAt = 'invoices.invoice_date';
|
||||||
break;
|
break;
|
||||||
case 'bill':
|
case 'bill':
|
||||||
case 'expense':
|
case 'expense':
|
||||||
case 'purchase':
|
case 'purchase':
|
||||||
$textIssuedAt = trans('bills.bill_date');
|
$textIssuedAt = 'bills.bill_date';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -342,68 +342,68 @@ abstract class DocumentTemplate extends Component
|
|||||||
case 'sale':
|
case 'sale':
|
||||||
case 'income':
|
case 'income':
|
||||||
case 'invoice':
|
case 'invoice':
|
||||||
$textDueAt = trans('invoices.due_date');
|
$textDueAt = 'invoices.due_date';
|
||||||
break;
|
break;
|
||||||
case 'bill':
|
case 'bill':
|
||||||
case 'expense':
|
case 'expense':
|
||||||
case 'purchase':
|
case 'purchase':
|
||||||
$textDueAt = trans('bills.due_date');
|
$textDueAt = 'bills.due_date';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $textDueAt;
|
return $textDueAt;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function getTextItems($type, $text_items)
|
protected function getTextItems($type, $textItems)
|
||||||
{
|
{
|
||||||
if (!empty($text_items)) {
|
if (!empty($textItems)) {
|
||||||
return $text_items;
|
return $textItems;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch ($type) {
|
switch ($type) {
|
||||||
case 'sale':
|
case 'sale':
|
||||||
case 'income':
|
case 'income':
|
||||||
case 'invoice':
|
case 'invoice':
|
||||||
$text_items = trans_choice(setting('invoice.item_name', 'general.items'), 2);
|
$textItems = setting('invoice.item_name', 'general.items');
|
||||||
|
|
||||||
if ($text_items == 'custom') {
|
if ($textItems == 'custom') {
|
||||||
$text_items = setting('invoice.item_name_input');
|
$textItems = setting('invoice.item_name_input');
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'bill':
|
case 'bill':
|
||||||
case 'expense':
|
case 'expense':
|
||||||
case 'purchase':
|
case 'purchase':
|
||||||
$text_items = trans_choice('general.items', 2);
|
$textItems = 'general.items';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $text_items;
|
return $textItems;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function getTextQuantity($type, $text_quantity)
|
protected function getTextQuantity($type, $textQuantity)
|
||||||
{
|
{
|
||||||
if (!empty($text_quantity)) {
|
if (!empty($textQuantity)) {
|
||||||
return $text_quantity;
|
return $textQuantity;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch ($type) {
|
switch ($type) {
|
||||||
case 'sale':
|
case 'sale':
|
||||||
case 'income':
|
case 'income':
|
||||||
case 'invoice':
|
case 'invoice':
|
||||||
$text_quantity = trans(setting('invoice.quantity_name', 'invoices.quantity'));
|
$textQuantity = setting('invoice.quantity_name', 'invoices.quantity');
|
||||||
|
|
||||||
if ($text_quantity == 'custom') {
|
if ($textQuantity == 'custom') {
|
||||||
$text_quantity = setting('invoice.quantity_name_input');
|
$textQuantity = setting('invoice.quantity_name_input');
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'bill':
|
case 'bill':
|
||||||
case 'expense':
|
case 'expense':
|
||||||
case 'purchase':
|
case 'purchase':
|
||||||
$text_quantity = trans('bills.quantity');
|
$textQuantity = 'bills.quantity';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $text_quantity;
|
return $textQuantity;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function getTextPrice($type, $text_price)
|
protected function getTextPrice($type, $text_price)
|
||||||
@ -416,7 +416,7 @@ abstract class DocumentTemplate extends Component
|
|||||||
case 'sale':
|
case 'sale':
|
||||||
case 'income':
|
case 'income':
|
||||||
case 'invoice':
|
case 'invoice':
|
||||||
$text_price = trans(setting('invoice.price_name', 'invoices.price'));
|
$text_price = setting('invoice.price_name', 'invoices.price');
|
||||||
|
|
||||||
if ($text_price == 'custom') {
|
if ($text_price == 'custom') {
|
||||||
$text_price = setting('invoice.price_name_input');
|
$text_price = setting('invoice.price_name_input');
|
||||||
@ -425,17 +425,17 @@ abstract class DocumentTemplate extends Component
|
|||||||
case 'bill':
|
case 'bill':
|
||||||
case 'expense':
|
case 'expense':
|
||||||
case 'purchase':
|
case 'purchase':
|
||||||
$text_price = trans('bills.price');
|
$text_price = 'bills.price';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $text_price;
|
return $text_price;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function getTextAmount($type, $text_amount)
|
protected function getTextAmount($type, $textAmount)
|
||||||
{
|
{
|
||||||
if (!empty($text_amount)) {
|
if (!empty($textAmount)) {
|
||||||
return $text_amount;
|
return $textAmount;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch ($type) {
|
switch ($type) {
|
||||||
@ -445,11 +445,11 @@ abstract class DocumentTemplate extends Component
|
|||||||
case 'bill':
|
case 'bill':
|
||||||
case 'expense':
|
case 'expense':
|
||||||
case 'purchase':
|
case 'purchase':
|
||||||
$text_amount = trans('general.amount');
|
$textAmount = 'general.amount';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $text_amount;
|
return $textAmount;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function getHideItems($type, $hideItems, $hideName, $hideDescription)
|
protected function getHideItems($type, $hideItems, $hideName, $hideDescription)
|
||||||
|
@ -244,12 +244,12 @@ class Metadata extends Component
|
|||||||
case 'sale':
|
case 'sale':
|
||||||
case 'income':
|
case 'income':
|
||||||
case 'invoice':
|
case 'invoice':
|
||||||
$textDocumentNumber = trans('invoices.invoice_number');
|
$textDocumentNumber = 'invoices.invoice_number';
|
||||||
break;
|
break;
|
||||||
case 'bill':
|
case 'bill':
|
||||||
case 'expense':
|
case 'expense':
|
||||||
case 'purchase':
|
case 'purchase':
|
||||||
$textDocumentNumber = trans('bills.bill_number');
|
$textDocumentNumber = 'bills.bill_number';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -266,12 +266,12 @@ class Metadata extends Component
|
|||||||
case 'sale':
|
case 'sale':
|
||||||
case 'income':
|
case 'income':
|
||||||
case 'invoice':
|
case 'invoice':
|
||||||
$textOrderNumber = trans('invoices.order_number');
|
$textOrderNumber = 'invoices.order_number';
|
||||||
break;
|
break;
|
||||||
case 'bill':
|
case 'bill':
|
||||||
case 'expense':
|
case 'expense':
|
||||||
case 'purchase':
|
case 'purchase':
|
||||||
$textOrderNumber = trans('bills.order_number');
|
$textOrderNumber = 'bills.order_number';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -288,12 +288,12 @@ class Metadata extends Component
|
|||||||
case 'sale':
|
case 'sale':
|
||||||
case 'income':
|
case 'income':
|
||||||
case 'invoice':
|
case 'invoice':
|
||||||
$textIssuedAt = trans('invoices.invoice_date');
|
$textIssuedAt = 'invoices.invoice_date';
|
||||||
break;
|
break;
|
||||||
case 'bill':
|
case 'bill':
|
||||||
case 'expense':
|
case 'expense':
|
||||||
case 'purchase':
|
case 'purchase':
|
||||||
$textIssuedAt = trans('bills.bill_date');
|
$textIssuedAt = 'bills.bill_date';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -310,12 +310,12 @@ class Metadata extends Component
|
|||||||
case 'sale':
|
case 'sale':
|
||||||
case 'income':
|
case 'income':
|
||||||
case 'invoice':
|
case 'invoice':
|
||||||
$textDueAt = trans('invoices.due_date');
|
$textDueAt = 'invoices.due_date';
|
||||||
break;
|
break;
|
||||||
case 'bill':
|
case 'bill':
|
||||||
case 'expense':
|
case 'expense':
|
||||||
case 'purchase':
|
case 'purchase':
|
||||||
$textDueAt = trans('bills.due_date');
|
$textDueAt = 'bills.due_date';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
@if (!$hideItems)
|
@if (!$hideItems)
|
||||||
@stack('name_th_start')
|
@stack('name_th_start')
|
||||||
<th class="text-left border-top-0 border-right-0 border-bottom-0">{{ $textItems }}</th>
|
<th class="text-left border-top-0 border-right-0 border-bottom-0">{{ (trans_choice($textItems, 2) != $textItems) ? trans_choice($textItems, 2) : trans($textItems) }}</th>
|
||||||
@stack('name_th_end')
|
@stack('name_th_end')
|
||||||
|
|
||||||
@stack('move_th_start')
|
@stack('move_th_start')
|
||||||
@ -34,13 +34,13 @@
|
|||||||
|
|
||||||
@stack('quantity_th_start')
|
@stack('quantity_th_start')
|
||||||
@if (!$hideQuantity)
|
@if (!$hideQuantity)
|
||||||
<th class="text-center border-top-0 border-right-0 border-bottom-0" style="padding-right: 5px;">{{ $textQuantity }}</th>
|
<th class="text-center border-top-0 border-right-0 border-bottom-0" style="padding-right: 5px;">{{ trans($textQuantity) }}</th>
|
||||||
@endif
|
@endif
|
||||||
@stack('quantity_th_end')
|
@stack('quantity_th_end')
|
||||||
|
|
||||||
@stack('price_th_start')
|
@stack('price_th_start')
|
||||||
@if (!$hidePrice)
|
@if (!$hidePrice)
|
||||||
<th class="text-right border-top-0 border-right-0 border-bottom-0" style="padding-left: 5px;">{{ $textPrice }}</th>
|
<th class="text-right border-top-0 border-right-0 border-bottom-0" style="padding-left: 5px;">{{ trans($textPrice) }}</th>
|
||||||
@endif
|
@endif
|
||||||
@stack('price_th_end')
|
@stack('price_th_end')
|
||||||
|
|
||||||
@ -54,7 +54,7 @@
|
|||||||
|
|
||||||
@stack('total_th_start')
|
@stack('total_th_start')
|
||||||
@if (!$hideAmount)
|
@if (!$hideAmount)
|
||||||
<th class="text-right border-top-0 border-bottom-0 item-total">{{ $textAmount }}</th>
|
<th class="text-right border-top-0 border-bottom-0 item-total">{{ trans($textAmount) }}</th>
|
||||||
@endif
|
@endif
|
||||||
@stack('total_th_end')
|
@stack('total_th_end')
|
||||||
|
|
||||||
|
@ -10,19 +10,19 @@
|
|||||||
<div class="col-sm-6 col-md-6 col-lg-6 col-xl-6">
|
<div class="col-sm-6 col-md-6 col-lg-6 col-xl-6">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@if (!$hideIssuedAt)
|
@if (!$hideIssuedAt)
|
||||||
{{ Form::dateGroup('issued_at', $textIssuedAt, 'calendar', ['id' => 'issued_at', 'class' => 'form-control datepicker', 'required' => 'required', 'date-format' => 'Y-m-d', 'autocomplete' => 'off'], $issuedAt) }}
|
{{ Form::dateGroup('issued_at', trans($textIssuedAt), 'calendar', ['id' => 'issued_at', 'class' => 'form-control datepicker', 'required' => 'required', 'date-format' => 'Y-m-d', 'autocomplete' => 'off'], $issuedAt) }}
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (!$hideDocumentNumber)
|
@if (!$hideDocumentNumber)
|
||||||
{{ Form::textGroup('document_number', $textDocumentNumber, 'file', ['required' => 'required'], $documentNumber) }}
|
{{ Form::textGroup('document_number', trans($textDocumentNumber), 'file', ['required' => 'required'], $documentNumber) }}
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (!$hideDueAt)
|
@if (!$hideDueAt)
|
||||||
{{ Form::dateGroup('due_at', $textDueAt, 'calendar', ['id' => 'due_at', 'class' => 'form-control datepicker', 'required' => 'required', 'date-format' => 'Y-m-d', 'autocomplete' => 'off'], $dueAt) }}
|
{{ Form::dateGroup('due_at', trans($textDueAt), 'calendar', ['id' => 'due_at', 'class' => 'form-control datepicker', 'required' => 'required', 'date-format' => 'Y-m-d', 'autocomplete' => 'off'], $dueAt) }}
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (!$hideOrderNumber)
|
@if (!$hideOrderNumber)
|
||||||
{{ Form::textGroup('order_number', $textOrderNumber, 'shopping-cart', [], $orderNumber) }}
|
{{ Form::textGroup('order_number', trans($textOrderNumber), 'shopping-cart', [], $orderNumber) }}
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
<th class="{{ $classDocumentNumber }}">
|
<th class="{{ $classDocumentNumber }}">
|
||||||
@stack('document_number_th_inside_start')
|
@stack('document_number_th_inside_start')
|
||||||
|
|
||||||
@sortablelink('document_number', $textDocumentNumber, ['filter' => 'active, visible'], ['class' => 'col-aka', 'rel' => 'nofollow'])
|
@sortablelink('document_number', trans_choice($textDocumentNumber, 1), ['filter' => 'active, visible'], ['class' => 'col-aka', 'rel' => 'nofollow'])
|
||||||
|
|
||||||
@stack('document_number_th_inside_end')
|
@stack('document_number_th_inside_end')
|
||||||
</th>
|
</th>
|
||||||
@ -25,7 +25,7 @@
|
|||||||
<th class="{{ $classContactName }}">
|
<th class="{{ $classContactName }}">
|
||||||
@stack('contact_name_th_inside_start')
|
@stack('contact_name_th_inside_start')
|
||||||
|
|
||||||
@sortablelink('contact_name', $textContactName)
|
@sortablelink('contact_name', trans_choice($textContactName, 1))
|
||||||
|
|
||||||
@stack('contact_name_th_inside_end')
|
@stack('contact_name_th_inside_end')
|
||||||
</th>
|
</th>
|
||||||
@ -49,7 +49,7 @@
|
|||||||
<th class="{{ $classIssuedAt }}">
|
<th class="{{ $classIssuedAt }}">
|
||||||
@stack('issued_at_th_inside_start')
|
@stack('issued_at_th_inside_start')
|
||||||
|
|
||||||
@sortablelink('issued_at', $textIssueAt)
|
@sortablelink('issued_at', trans($textIssueAt))
|
||||||
|
|
||||||
@stack('issued_at_th_inside_end')
|
@stack('issued_at_th_inside_end')
|
||||||
</th>
|
</th>
|
||||||
@ -61,7 +61,7 @@
|
|||||||
<th class="{{ $classDueAt }}">
|
<th class="{{ $classDueAt }}">
|
||||||
@stack('due_at_th_inside_start')
|
@stack('due_at_th_inside_start')
|
||||||
|
|
||||||
@sortablelink('due_at', $textDueAt)
|
@sortablelink('due_at', trans($textDueAt))
|
||||||
|
|
||||||
@stack('due_at_th_inside_end')
|
@stack('due_at_th_inside_end')
|
||||||
</th>
|
</th>
|
||||||
|
@ -62,7 +62,7 @@
|
|||||||
@stack('invoice_number_input_start')
|
@stack('invoice_number_input_start')
|
||||||
@if (!$hideDocumentNumber)
|
@if (!$hideDocumentNumber)
|
||||||
<div class="text company">
|
<div class="text company">
|
||||||
<strong>{{ $textDocumentNumber }}:</strong><br>
|
<strong>{{ trans($textDocumentNumber) }}:</strong><br>
|
||||||
{{ $document->document_number }}
|
{{ $document->document_number }}
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
@ -81,7 +81,7 @@
|
|||||||
<div class="col-58">
|
<div class="col-58">
|
||||||
<div class="text company">
|
<div class="text company">
|
||||||
@if (!$hideContactInfo)
|
@if (!$hideContactInfo)
|
||||||
<strong>{{ $textContactInfo }}</strong><br>
|
<strong>{{ trans($textContactInfo) }}</strong><br>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@stack('name_input_start')
|
@stack('name_input_start')
|
||||||
@ -129,7 +129,7 @@
|
|||||||
@stack('order_number_input_start')
|
@stack('order_number_input_start')
|
||||||
@if (!$hideOrderNumber)
|
@if (!$hideOrderNumber)
|
||||||
@if ($document->order_number)
|
@if ($document->order_number)
|
||||||
<strong>{{ $textOrderNumber }}:</strong>
|
<strong>{{ trans($textOrderNumber) }}:</strong>
|
||||||
<span class="float-right">{{ $document->order_number }}</span><br><br>
|
<span class="float-right">{{ $document->order_number }}</span><br><br>
|
||||||
@endif
|
@endif
|
||||||
@endif
|
@endif
|
||||||
@ -137,14 +137,14 @@
|
|||||||
|
|
||||||
@stack('invoiced_at_input_start')
|
@stack('invoiced_at_input_start')
|
||||||
@if (!$hideIssuedAt)
|
@if (!$hideIssuedAt)
|
||||||
<strong>{{ $textIssuedAt }}:</strong>
|
<strong>{{ trans($textIssuedAt) }}:</strong>
|
||||||
<span class="float-right">@date($document->issued_at)</span><br><br>
|
<span class="float-right">@date($document->issued_at)</span><br><br>
|
||||||
@endif
|
@endif
|
||||||
@stack('invoiced_at_input_end')
|
@stack('invoiced_at_input_end')
|
||||||
|
|
||||||
@stack('due_at_input_start')
|
@stack('due_at_input_start')
|
||||||
@if (!$hideDueAt)
|
@if (!$hideDueAt)
|
||||||
<strong>{{ $textDueAt }}:</strong>
|
<strong>{{ trans($textDueAt) }}:</strong>
|
||||||
<span class="float-right">@date($document->due_at)</span><br><br>
|
<span class="float-right">@date($document->due_at)</span><br><br>
|
||||||
@endif
|
@endif
|
||||||
@stack('due_at_input_end')
|
@stack('due_at_input_end')
|
||||||
@ -167,7 +167,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
@stack('name_th_start')
|
@stack('name_th_start')
|
||||||
@if (!$hideItems || (!$hideName && !$hideDescription))
|
@if (!$hideItems || (!$hideName && !$hideDescription))
|
||||||
<th class="text-left item">{{ $textItems }}</th>
|
<th class="text-left item">{{ (trans_choice($textItems, 2) != $textItems) ? trans_choice($textItems, 2) : trans($textItems) }}</th>
|
||||||
@endif
|
@endif
|
||||||
@stack('name_th_end')
|
@stack('name_th_end')
|
||||||
|
|
||||||
@ -193,7 +193,7 @@
|
|||||||
|
|
||||||
@stack('total_th_start')
|
@stack('total_th_start')
|
||||||
@if (!$hideAmount)
|
@if (!$hideAmount)
|
||||||
<th class="total">{{ $textAmount }}</th>
|
<th class="total">{{ trans($textAmount) }}</th>
|
||||||
@endif
|
@endif
|
||||||
@stack('total_th_end')
|
@stack('total_th_end')
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -55,7 +55,7 @@
|
|||||||
<div class="text company">
|
<div class="text company">
|
||||||
<br>
|
<br>
|
||||||
@if ($hideContactInfo)
|
@if ($hideContactInfo)
|
||||||
<strong>{{ $textContactInfo }}</strong><br>
|
<strong>{{ trans($textContactInfo) }}</strong><br>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@stack('name_input_start')
|
@stack('name_input_start')
|
||||||
@ -106,7 +106,7 @@
|
|||||||
@stack('document_number_input_start')
|
@stack('document_number_input_start')
|
||||||
@if (!$hideDocumentNumber)
|
@if (!$hideDocumentNumber)
|
||||||
<strong>
|
<strong>
|
||||||
{{ $textDocumentNumber }}:
|
{{ trans($textDocumentNumber) }}:
|
||||||
</strong>
|
</strong>
|
||||||
<span class="float-right">{{ $document->document_number }}</span><br><br>
|
<span class="float-right">{{ $document->document_number }}</span><br><br>
|
||||||
@endif
|
@endif
|
||||||
@ -116,7 +116,7 @@
|
|||||||
@if (!$hideOrderNumber)
|
@if (!$hideOrderNumber)
|
||||||
@if ($document->order_number)
|
@if ($document->order_number)
|
||||||
<strong>
|
<strong>
|
||||||
{{ $textOrderNumber }}:
|
{{ trans($textOrderNumber) }}:
|
||||||
</strong>
|
</strong>
|
||||||
<span class="float-right">{{ $document->order_number }}</span><br><br>
|
<span class="float-right">{{ $document->order_number }}</span><br><br>
|
||||||
@endif
|
@endif
|
||||||
@ -126,7 +126,7 @@
|
|||||||
@stack('issued_at_input_start')
|
@stack('issued_at_input_start')
|
||||||
@if (!$hideIssuedAt)
|
@if (!$hideIssuedAt)
|
||||||
<strong>
|
<strong>
|
||||||
{{ $textIssuedAt }}:
|
{{ trans($textIssuedAt) }}:
|
||||||
</strong>
|
</strong>
|
||||||
<span class="float-right">@date($document->issued_at)</span><br><br>
|
<span class="float-right">@date($document->issued_at)</span><br><br>
|
||||||
@endif
|
@endif
|
||||||
@ -135,7 +135,7 @@
|
|||||||
@stack('due_at_input_start')
|
@stack('due_at_input_start')
|
||||||
@if (!$hideDueAt)
|
@if (!$hideDueAt)
|
||||||
<strong>
|
<strong>
|
||||||
{{ $textDueAt }}:
|
{{ trans($textDueAt) }}:
|
||||||
</strong>
|
</strong>
|
||||||
<span class="float-right">@date($document->due_at)</span><br><br>
|
<span class="float-right">@date($document->due_at)</span><br><br>
|
||||||
@endif
|
@endif
|
||||||
@ -154,19 +154,19 @@
|
|||||||
<tr>
|
<tr>
|
||||||
@stack('name_th_start')
|
@stack('name_th_start')
|
||||||
@if ($hideItems || (!$hideName && !$hideDescription))
|
@if ($hideItems || (!$hideName && !$hideDescription))
|
||||||
<th class="item text-left text-white">{{ $textItems }}</th>
|
<th class="item text-left text-white">{{ (trans_choice($textItems, 2) != $textItems) ? trans_choice($textItems, 2) : trans($textItems) }}</th>
|
||||||
@endif
|
@endif
|
||||||
@stack('name_th_end')
|
@stack('name_th_end')
|
||||||
|
|
||||||
@stack('quantity_th_start')
|
@stack('quantity_th_start')
|
||||||
@if (!$hideQuantity)
|
@if (!$hideQuantity)
|
||||||
<th class="quantity text-white">{{ $textQuantity }}</th>
|
<th class="quantity text-white">{{ trans($textQuantity) }}</th>
|
||||||
@endif
|
@endif
|
||||||
@stack('quantity_th_end')
|
@stack('quantity_th_end')
|
||||||
|
|
||||||
@stack('price_th_start')
|
@stack('price_th_start')
|
||||||
@if (!$hidePrice)
|
@if (!$hidePrice)
|
||||||
<th class="price text-white">{{ $textPrice }}</th>
|
<th class="price text-white">{{ trans($textPrice) }}</th>
|
||||||
@endif
|
@endif
|
||||||
@stack('price_th_end')
|
@stack('price_th_end')
|
||||||
|
|
||||||
@ -180,7 +180,7 @@
|
|||||||
|
|
||||||
@stack('total_th_start')
|
@stack('total_th_start')
|
||||||
@if (!$hideAmount)
|
@if (!$hideAmount)
|
||||||
<th class="total text-white">{{ $textAmount }}</th>
|
<th class="total text-white">{{ trans($textAmount) }}</th>
|
||||||
@endif
|
@endif
|
||||||
@stack('total_th_end')
|
@stack('total_th_end')
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -54,7 +54,7 @@
|
|||||||
<div class="col-58">
|
<div class="col-58">
|
||||||
<div class="text company">
|
<div class="text company">
|
||||||
@if (!$hideContactInfo)
|
@if (!$hideContactInfo)
|
||||||
<strong>{{ $textContactInfo }}</strong>
|
<strong>{{ trans($textContactInfo) }}</strong>
|
||||||
<br>
|
<br>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@ -104,7 +104,7 @@
|
|||||||
@stack('order_number_input_start')
|
@stack('order_number_input_start')
|
||||||
@if (!$hideOrderNumber)
|
@if (!$hideOrderNumber)
|
||||||
@if ($document->order_number)
|
@if ($document->order_number)
|
||||||
<strong>{{ $textOrderNumber }}:</strong>
|
<strong>{{ trans($textOrderNumber) }}:</strong>
|
||||||
<span class="float-right">{{ $document->order_number }}</span><br><br>
|
<span class="float-right">{{ $document->order_number }}</span><br><br>
|
||||||
@endif
|
@endif
|
||||||
@endif
|
@endif
|
||||||
@ -112,21 +112,21 @@
|
|||||||
|
|
||||||
@stack('invoice_number_input_start')
|
@stack('invoice_number_input_start')
|
||||||
@if (!$hideDocumentNumber)
|
@if (!$hideDocumentNumber)
|
||||||
<strong>{{ $textDocumentNumber }}:</strong>
|
<strong>{{ trans($textDocumentNumber) }}:</strong>
|
||||||
<span class="float-right">{{ $document->document_number }}</span><br><br>
|
<span class="float-right">{{ $document->document_number }}</span><br><br>
|
||||||
@endif
|
@endif
|
||||||
@stack('invoice_number_input_end')
|
@stack('invoice_number_input_end')
|
||||||
|
|
||||||
@stack('invoiced_at_input_start')
|
@stack('invoiced_at_input_start')
|
||||||
@if (!$hideIssuedAt)
|
@if (!$hideIssuedAt)
|
||||||
<strong>{{ $textIssuedAt }}:</strong>
|
<strong>{{ trans($textIssuedAt) }}:</strong>
|
||||||
<span class="float-right">@date($document->issued_at)</span><br><br>
|
<span class="float-right">@date($document->issued_at)</span><br><br>
|
||||||
@endif
|
@endif
|
||||||
@stack('invoiced_at_input_end')
|
@stack('invoiced_at_input_end')
|
||||||
|
|
||||||
@stack('due_at_input_start')
|
@stack('due_at_input_start')
|
||||||
@if (!$hideDueAt)
|
@if (!$hideDueAt)
|
||||||
<strong>{{ $textDueAt }}:</strong>
|
<strong>{{ trans($textDueAt) }}:</strong>
|
||||||
<span class="float-right">@date($document->due_at)</span>
|
<span class="float-right">@date($document->due_at)</span>
|
||||||
@endif
|
@endif
|
||||||
@stack('due_at_input_end')
|
@stack('due_at_input_end')
|
||||||
@ -142,19 +142,19 @@
|
|||||||
<tr>
|
<tr>
|
||||||
@stack('name_th_start')
|
@stack('name_th_start')
|
||||||
@if (!$hideItems || (!$hideName && !$hideDescription))
|
@if (!$hideItems || (!$hideName && !$hideDescription))
|
||||||
<th class="item text-left text-white">{{ $textItems }}</th>
|
<th class="item text-left text-white">{{ (trans_choice($textItems, 2) != $textItems) ? trans_choice($textItems, 2) : trans($textItems) }}</th>
|
||||||
@endif
|
@endif
|
||||||
@stack('name_th_end')
|
@stack('name_th_end')
|
||||||
|
|
||||||
@stack('quantity_th_start')
|
@stack('quantity_th_start')
|
||||||
@if (!$hideQuantity)
|
@if (!$hideQuantity)
|
||||||
<th class="quantity text-white">{{ $textQuantity }}</th>
|
<th class="quantity text-white">{{ trans($textQuantity) }}</th>
|
||||||
@endif
|
@endif
|
||||||
@stack('quantity_th_end')
|
@stack('quantity_th_end')
|
||||||
|
|
||||||
@stack('price_th_start')
|
@stack('price_th_start')
|
||||||
@if (!$hidePrice)
|
@if (!$hidePrice)
|
||||||
<th class="price text-white">{{ $textPrice }}</th>
|
<th class="price text-white">{{ trans($textPrice) }}</th>
|
||||||
@endif
|
@endif
|
||||||
@stack('price_th_end')
|
@stack('price_th_end')
|
||||||
|
|
||||||
@ -168,7 +168,7 @@
|
|||||||
|
|
||||||
@stack('total_th_start')
|
@stack('total_th_start')
|
||||||
@if (!$hideAmount)
|
@if (!$hideAmount)
|
||||||
<th class="total text-white">{{ $textAmount }}</th>
|
<th class="total text-white">{{ trans($textAmount) }}</th>
|
||||||
@endif
|
@endif
|
||||||
@stack('total_th_end')
|
@stack('total_th_end')
|
||||||
</tr>
|
</tr>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user