From 183a51b27c4cecf5c1b5f08075f38087913627a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Thu, 23 Jul 2020 12:20:19 +0200 Subject: [PATCH] Update quotes page with right terminology --- app/Models/Quote.php | 2 +- .../livewire/quotes-table.blade.php | 54 +++++++++---------- 2 files changed, 28 insertions(+), 28 deletions(-) diff --git a/app/Models/Quote.php b/app/Models/Quote.php index e5a42b45c0da..3f6bf37b5dfd 100644 --- a/app/Models/Quote.php +++ b/app/Models/Quote.php @@ -218,7 +218,7 @@ class Quote extends BaseModel return '
' . ctrans('texts.draft') . '
'; break; case Quote::STATUS_SENT: - return '
' . ctrans('texts.sent') . '
'; + return '
' . ctrans('texts.pending') . '
'; break; case Quote::STATUS_APPROVED: return '
' . ctrans('texts.approved') . '
'; diff --git a/resources/views/portal/ninja2020/components/livewire/quotes-table.blade.php b/resources/views/portal/ninja2020/components/livewire/quotes-table.blade.php index 5c7ef5f35286..c357b5405cb0 100644 --- a/resources/views/portal/ninja2020/components/livewire/quotes-table.blade.php +++ b/resources/views/portal/ninja2020/components/livewire/quotes-table.blade.php @@ -1,8 +1,8 @@
- - @@ -11,54 +11,54 @@
- +
- - + +
- +
- +
-
-
- +
+
+
- - - - - - @forelse($quotes as $quote) - - - - - - - @empty - @@ -106,9 +106,9 @@
+ + {{ ctrans('texts.quote_number') }} + {{ ctrans('texts.quote_date') }} + {{ ctrans('texts.balance') }} + {{ ctrans('texts.valid_until') }} + {{ ctrans('texts.quote_status') }} @@ -69,27 +69,27 @@
+ + {{ $quote->number }} + {{ $quote->formatDate($quote->date, $quote->client->date_format()) }} + {{ App\Utils\Number::formatMoney($quote->balance, $quote->client) }} - {{ $quote->formatDate($quote->date, $quote->client->date_format()) }} + + {{ $quote->formatDate($quote->due_date, $quote->client->date_format()) }} + {!! App\Models\Quote::badgeForStatus($quote->status_id) !!} + @lang('texts.view') @@ -97,7 +97,7 @@
+ {{ ctrans('texts.no_results') }}
-
+
@if($quotes->total() > 0) -