From 5fd9e82ba621b04c98ba80e9df6c4b10cbb6dcc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Mon, 10 Oct 2022 13:48:02 +0300 Subject: [PATCH] typo --- app/Abstracts/View/Components/Documents/Form.php | 6 +++--- resources/lang/en-GB/auth.php | 1 + resources/views/components/documents/form/content.blade.php | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/Abstracts/View/Components/Documents/Form.php b/app/Abstracts/View/Components/Documents/Form.php index 6158e12d1..606488315 100644 --- a/app/Abstracts/View/Components/Documents/Form.php +++ b/app/Abstracts/View/Components/Documents/Form.php @@ -425,15 +425,15 @@ abstract class Form extends Component protected function getCurrency($document, $currency, $currency_code) { - if (!empty($currency)) { + if (! empty($currency)) { return $currency; } - if (!empty($currency_code)) { + if (! empty($currency_code)) { $currency = Currency::where('code', $currency_code)->first(); } - if (empty($currency) && !empty($document)) { + if (empty($currency) && ! empty($document)) { $currency = Currency::where('code', $document->currency_code)->first(); } diff --git a/resources/lang/en-GB/auth.php b/resources/lang/en-GB/auth.php index d9d3c31f7..7504d18af 100644 --- a/resources/lang/en-GB/auth.php +++ b/resources/lang/en-GB/auth.php @@ -39,6 +39,7 @@ return [ 'error' => [ 'self_delete' => 'Error: Can not delete yourself!', 'self_disable' => 'Error: Can not disable yourself!', + 'unassigned' => 'Error: Can not unassigned company! The :company company must be assigned at least one user.', 'no_company' => 'Error: No company assigned to your account. Please, contact the system administrator.', ], diff --git a/resources/views/components/documents/form/content.blade.php b/resources/views/components/documents/form/content.blade.php index 29c4b2b06..851e96566 100644 --- a/resources/views/components/documents/form/content.blade.php +++ b/resources/views/components/documents/form/content.blade.php @@ -4,7 +4,7 @@ id="{{ $formId }}" :route="$formRoute" method="{{ $formMethod }}" - :model="$contact" + :model="$document" > @if (! $hideCompany)