Show endless for recurring invoices with -1 cycles

This commit is contained in:
Benjamin Beganović 2021-01-04 14:24:30 +01:00
parent 66d6595a90
commit cb928833c5
3 changed files with 6 additions and 3 deletions

View File

@ -3360,4 +3360,6 @@ return [
'setup_phantomjs_note' => 'Note about Phantom JS. Read more.', 'setup_phantomjs_note' => 'Note about Phantom JS. Read more.',
'currency_armenian_dram' => 'Armenian Dram', 'currency_armenian_dram' => 'Armenian Dram',
'currency_albanian_lek' => 'Albanian Lek', 'currency_albanian_lek' => 'Albanian Lek',
'endless' => 'Endless',
]; ];

View File

@ -62,7 +62,7 @@
{{ \App\Utils\Number::formatMoney($invoice->amount, $invoice->client) }} {{ \App\Utils\Number::formatMoney($invoice->amount, $invoice->client) }}
</td> </td>
<td class="px-6 py-4 whitespace-no-wrap flex items-center justify-end text-sm leading-5 font-medium"> <td class="px-6 py-4 whitespace-no-wrap flex items-center justify-end text-sm leading-5 font-medium">
<a href="{{ route('client.recurring_invoices.show', $invoice->hashed_id) }}" class="text-blue-600 hover:text-indigo-900 focus:outline-none focus:underline"> <a href="{{ route('client.recurring_invoice.show', $invoice->hashed_id) }}" class="text-blue-600 hover:text-indigo-900 focus:outline-none focus:underline">
@lang('texts.view') @lang('texts.view')
</a> </a>
</td> </td>

View File

@ -43,7 +43,8 @@
{{ ctrans('texts.cycles_remaining') }} {{ ctrans('texts.cycles_remaining') }}
</dt> </dt>
<dd class="mt-1 text-sm leading-5 text-gray-900 sm:mt-0 sm:col-span-2"> <dd class="mt-1 text-sm leading-5 text-gray-900 sm:mt-0 sm:col-span-2">
{{ $invoice->remaining_cycles }} {{ $invoice->remaining_cycles == '-1' ? ctrans('texts.endless') : $invoice->remaining_cycles }}
@if($invoice->remaining_cycles == '-1') &#8734; @endif
</dd> </dd>
</div> </div>
<div class="bg-gray-50 px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6"> <div class="bg-gray-50 px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6">
@ -79,4 +80,4 @@
</div> </div>
</div> </div>
</div> </div>
@endsection @endsection