From 88eafb72c5a247133d4cd89251fa1787db90e80e Mon Sep 17 00:00:00 2001 From: 1Day Date: Mon, 13 Dec 2021 08:59:27 +0100 Subject: [PATCH] quicksave --- .env.example | 1 + resources/lang/de.json | 16 +++++- resources/views/admin/store/create.blade.php | 59 ++++++++++--------- resources/views/admin/store/edit.blade.php | 60 +++++++++++--------- resources/views/admin/store/index.blade.php | 26 ++++----- 5 files changed, 96 insertions(+), 66 deletions(-) diff --git a/.env.example b/.env.example index c7016a83..eb484cbc 100644 --- a/.env.example +++ b/.env.example @@ -5,6 +5,7 @@ APP_DEBUG=false APP_URL=http://localhost #list with timezones https://www.php.net/manual/en/timezones.php APP_TIMEZONE=UTC +LOCALE=en DB_CONNECTION=mysql DB_HOST=127.0.0.1 diff --git a/resources/lang/de.json b/resources/lang/de.json index 952c1364..e0629000 100644 --- a/resources/lang/de.json +++ b/resources/lang/de.json @@ -83,7 +83,21 @@ "Settings": "Einstellungen", "Dashboard icons": "Dashboard Icons", "Select panel icon": "Icon auswählen", - "Select panel favicon": "Favicon auswählen" + "Select panel favicon": "Favicon auswählen", + + "Store": "Laden", + "Currency code": "Währungscode", + "Checkout the paypal docs to select the appropriate code": "Siehe Paypal für die entsprechenden Codes", + "Quantity": "Menge", + "Amount given to the user after purchasing": "Anzahl, die der User nach dem Kauf bekommt", + "Display": "Anzeigename", + "This is what the user sees at store and checkout": "Dies ist die 'Anzahl' welche der User beim Kaufen sieht", + "This is what the user sees at checkout": "Dies ist die Beschreibung auf der Rechnung und was der Kunde beim kauf sieht", + "Adds 1000 credits to your account": "Fügt deinem Account 1000 Credits hinzu", + + "Active": "Aktiv", + "Paypal is not configured.": "Paypal ist nicht konfiguriert!", + "To configure PayPal, head to the .env and add your PayPal’s client id and secret.": "Um Paypal zu konfigurieren, füge deine Paypal client ID und Secretkey in deine .env-Datei hinzu" diff --git a/resources/views/admin/store/create.blade.php b/resources/views/admin/store/create.blade.php index 9cd31bf9..b09d4bdf 100644 --- a/resources/views/admin/store/create.blade.php +++ b/resources/views/admin/store/create.blade.php @@ -6,13 +6,14 @@
-

Store

+

{{__('Store')}}

@@ -33,19 +34,22 @@ @csrf
- - +
- - + @error('name')
@@ -55,10 +59,12 @@
- - @foreach($currencyCodes as $code) - + @endforeach @error('currency_code') @@ -67,12 +73,14 @@
@enderror
- Checkout the paypal docs to select the appropriate code link + {{__('Checkout the paypal docs to select the appropriate code')}} link
- +
- + @enderror
- Amount given to the user after purchasing + {{__('Amount given to the user after purchasing')}}
- + @enderror
- This is what the user sees at store and checkout + {{__('This is what the user sees at store and checkout')}}
- + @error('description') @@ -133,15 +141,14 @@
@enderror
- This is what the user sees at checkout + {{__('This is what the user sees at checkout')}}
-
diff --git a/resources/views/admin/store/edit.blade.php b/resources/views/admin/store/edit.blade.php index 3ab8b57e..66ec3962 100644 --- a/resources/views/admin/store/edit.blade.php +++ b/resources/views/admin/store/edit.blade.php @@ -6,13 +6,14 @@
-

Store

+

{{__('Store')}}

@@ -34,19 +35,23 @@ @method('PATCH')
- disabled) checked @endif name="disabled" class="custom-control-input custom-control-input-danger" + disabled) checked + @endif name="disabled" + class="custom-control-input custom-control-input-danger" id="switch1"> - +
- - + @error('name')
@@ -56,10 +61,12 @@
- - @foreach($currencyCodes as $code) - + @endforeach @error('currency_code') @@ -68,12 +75,14 @@
@enderror
- Checkout the paypal docs to select the appropriate code link + {{__('Checkout the paypal docs to select the appropriate code')}} link
- +
- + @enderror
- Amount given to the user after purchasing + {{__('Amount given to the user after purchasing')}}
- + @enderror
- This is what the user sees at store and checkout + {{__('This is what the user sees at store and checkout')}}
- + @error('description') @@ -134,15 +143,14 @@
@enderror
- This is what the user sees at checkout + {{__('This is what the user sees at checkout')}}
-
diff --git a/resources/views/admin/store/index.blade.php b/resources/views/admin/store/index.blade.php index bb094b2e..75709455 100644 --- a/resources/views/admin/store/index.blade.php +++ b/resources/views/admin/store/index.blade.php @@ -6,13 +6,13 @@
-

Store

+

{{__('Store')}}

@@ -28,8 +28,8 @@
@if($isPaypalSetup == false)
-

Paypal is not configured.

-

To configure PayPal, head to the .env and add your PayPal’s client id and secret.

+

{{__('Paypal is not configured.')}}

+

{{__('To configure PayPal, head to the .env and add your PayPal’s client id and secret.')}}

@endif
@@ -39,9 +39,9 @@
-
Store
+
{{__('Store')}}
Create new + class="fas fa-plus mr-1">{{__('Create new')}}
@@ -50,12 +50,12 @@ - - - - - - + + + + + +
ActiveTypePriceDisplayDescriptionCreated at{{__('Active')}}{{__('Type')}}{{__('Price')}}{{__('Display')}}{{__('Description')}}{{__('Created at')}}