changed trans and trans_choice location..

This commit is contained in:
Cüneyt Şentürk
2020-12-25 13:30:12 +03:00
parent 7b126834ff
commit 7e35aefde6
9 changed files with 100 additions and 100 deletions

View File

@ -24,7 +24,7 @@
@if (!$hideItems)
@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('move_th_start')
@ -34,13 +34,13 @@
@stack('quantity_th_start')
@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
@stack('quantity_th_end')
@stack('price_th_start')
@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
@stack('price_th_end')
@ -54,7 +54,7 @@
@stack('total_th_start')
@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
@stack('total_th_end')

View File

@ -10,19 +10,19 @@
<div class="col-sm-6 col-md-6 col-lg-6 col-xl-6">
<div class="row">
@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
@if (!$hideDocumentNumber)
{{ Form::textGroup('document_number', $textDocumentNumber, 'file', ['required' => 'required'], $documentNumber) }}
{{ Form::textGroup('document_number', trans($textDocumentNumber), 'file', ['required' => 'required'], $documentNumber) }}
@endif
@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
@if (!$hideOrderNumber)
{{ Form::textGroup('order_number', $textOrderNumber, 'shopping-cart', [], $orderNumber) }}
{{ Form::textGroup('order_number', trans($textOrderNumber), 'shopping-cart', [], $orderNumber) }}
@endif
</div>
</div>

View File

@ -13,7 +13,7 @@
<th class="{{ $classDocumentNumber }}">
@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')
</th>
@ -25,7 +25,7 @@
<th class="{{ $classContactName }}">
@stack('contact_name_th_inside_start')
@sortablelink('contact_name', $textContactName)
@sortablelink('contact_name', trans_choice($textContactName, 1))
@stack('contact_name_th_inside_end')
</th>
@ -49,7 +49,7 @@
<th class="{{ $classIssuedAt }}">
@stack('issued_at_th_inside_start')
@sortablelink('issued_at', $textIssueAt)
@sortablelink('issued_at', trans($textIssueAt))
@stack('issued_at_th_inside_end')
</th>
@ -61,7 +61,7 @@
<th class="{{ $classDueAt }}">
@stack('due_at_th_inside_start')
@sortablelink('due_at', $textDueAt)
@sortablelink('due_at', trans($textDueAt))
@stack('due_at_th_inside_end')
</th>

View File

@ -62,7 +62,7 @@
@stack('invoice_number_input_start')
@if (!$hideDocumentNumber)
<div class="text company">
<strong>{{ $textDocumentNumber }}:</strong><br>
<strong>{{ trans($textDocumentNumber) }}:</strong><br>
{{ $document->document_number }}
</div>
@endif
@ -81,7 +81,7 @@
<div class="col-58">
<div class="text company">
@if (!$hideContactInfo)
<strong>{{ $textContactInfo }}</strong><br>
<strong>{{ trans($textContactInfo) }}</strong><br>
@endif
@stack('name_input_start')
@ -129,7 +129,7 @@
@stack('order_number_input_start')
@if (!$hideOrderNumber)
@if ($document->order_number)
<strong>{{ $textOrderNumber }}:</strong>
<strong>{{ trans($textOrderNumber) }}:</strong>
<span class="float-right">{{ $document->order_number }}</span><br><br>
@endif
@endif
@ -137,14 +137,14 @@
@stack('invoiced_at_input_start')
@if (!$hideIssuedAt)
<strong>{{ $textIssuedAt }}:</strong>
<strong>{{ trans($textIssuedAt) }}:</strong>
<span class="float-right">@date($document->issued_at)</span><br><br>
@endif
@stack('invoiced_at_input_end')
@stack('due_at_input_start')
@if (!$hideDueAt)
<strong>{{ $textDueAt }}:</strong>
<strong>{{ trans($textDueAt) }}:</strong>
<span class="float-right">@date($document->due_at)</span><br><br>
@endif
@stack('due_at_input_end')
@ -167,7 +167,7 @@
<tr>
@stack('name_th_start')
@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
@stack('name_th_end')
@ -193,7 +193,7 @@
@stack('total_th_start')
@if (!$hideAmount)
<th class="total">{{ $textAmount }}</th>
<th class="total">{{ trans($textAmount) }}</th>
@endif
@stack('total_th_end')
</tr>

View File

@ -55,7 +55,7 @@
<div class="text company">
<br>
@if ($hideContactInfo)
<strong>{{ $textContactInfo }}</strong><br>
<strong>{{ trans($textContactInfo) }}</strong><br>
@endif
@stack('name_input_start')
@ -106,7 +106,7 @@
@stack('document_number_input_start')
@if (!$hideDocumentNumber)
<strong>
{{ $textDocumentNumber }}:
{{ trans($textDocumentNumber) }}:
</strong>
<span class="float-right">{{ $document->document_number }}</span><br><br>
@endif
@ -116,7 +116,7 @@
@if (!$hideOrderNumber)
@if ($document->order_number)
<strong>
{{ $textOrderNumber }}:
{{ trans($textOrderNumber) }}:
</strong>
<span class="float-right">{{ $document->order_number }}</span><br><br>
@endif
@ -126,7 +126,7 @@
@stack('issued_at_input_start')
@if (!$hideIssuedAt)
<strong>
{{ $textIssuedAt }}:
{{ trans($textIssuedAt) }}:
</strong>
<span class="float-right">@date($document->issued_at)</span><br><br>
@endif
@ -135,7 +135,7 @@
@stack('due_at_input_start')
@if (!$hideDueAt)
<strong>
{{ $textDueAt }}:
{{ trans($textDueAt) }}:
</strong>
<span class="float-right">@date($document->due_at)</span><br><br>
@endif
@ -154,19 +154,19 @@
<tr>
@stack('name_th_start')
@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
@stack('name_th_end')
@stack('quantity_th_start')
@if (!$hideQuantity)
<th class="quantity text-white">{{ $textQuantity }}</th>
<th class="quantity text-white">{{ trans($textQuantity) }}</th>
@endif
@stack('quantity_th_end')
@stack('price_th_start')
@if (!$hidePrice)
<th class="price text-white">{{ $textPrice }}</th>
<th class="price text-white">{{ trans($textPrice) }}</th>
@endif
@stack('price_th_end')
@ -180,7 +180,7 @@
@stack('total_th_start')
@if (!$hideAmount)
<th class="total text-white">{{ $textAmount }}</th>
<th class="total text-white">{{ trans($textAmount) }}</th>
@endif
@stack('total_th_end')
</tr>

View File

@ -54,7 +54,7 @@
<div class="col-58">
<div class="text company">
@if (!$hideContactInfo)
<strong>{{ $textContactInfo }}</strong>
<strong>{{ trans($textContactInfo) }}</strong>
<br>
@endif
@ -104,7 +104,7 @@
@stack('order_number_input_start')
@if (!$hideOrderNumber)
@if ($document->order_number)
<strong>{{ $textOrderNumber }}:</strong>
<strong>{{ trans($textOrderNumber) }}:</strong>
<span class="float-right">{{ $document->order_number }}</span><br><br>
@endif
@endif
@ -112,21 +112,21 @@
@stack('invoice_number_input_start')
@if (!$hideDocumentNumber)
<strong>{{ $textDocumentNumber }}:</strong>
<strong>{{ trans($textDocumentNumber) }}:</strong>
<span class="float-right">{{ $document->document_number }}</span><br><br>
@endif
@stack('invoice_number_input_end')
@stack('invoiced_at_input_start')
@if (!$hideIssuedAt)
<strong>{{ $textIssuedAt }}:</strong>
<strong>{{ trans($textIssuedAt) }}:</strong>
<span class="float-right">@date($document->issued_at)</span><br><br>
@endif
@stack('invoiced_at_input_end')
@stack('due_at_input_start')
@if (!$hideDueAt)
<strong>{{ $textDueAt }}:</strong>
<strong>{{ trans($textDueAt) }}:</strong>
<span class="float-right">@date($document->due_at)</span>
@endif
@stack('due_at_input_end')
@ -142,19 +142,19 @@
<tr>
@stack('name_th_start')
@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
@stack('name_th_end')
@stack('quantity_th_start')
@if (!$hideQuantity)
<th class="quantity text-white">{{ $textQuantity }}</th>
<th class="quantity text-white">{{ trans($textQuantity) }}</th>
@endif
@stack('quantity_th_end')
@stack('price_th_start')
@if (!$hidePrice)
<th class="price text-white">{{ $textPrice }}</th>
<th class="price text-white">{{ trans($textPrice) }}</th>
@endif
@stack('price_th_end')
@ -168,7 +168,7 @@
@stack('total_th_start')
@if (!$hideAmount)
<th class="total text-white">{{ $textAmount }}</th>
<th class="total text-white">{{ trans($textAmount) }}</th>
@endif
@stack('total_th_end')
</tr>