Skip to content

Commit 41736ab

Browse files
committed
adding language and currency
1 parent 42472b2 commit 41736ab

10 files changed

+567
-83
lines changed

Entities/Data/LanguageTranslation.php

+417
Large diffs are not rendered by default.

Resources/views/access-buyform.blade.php

+7-5
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
<div class="text-center shadow-xl rounded-md bg-white sm:mr-2 m-1 pt-5 p-2 ">
1414

1515
<h3 class="pt-3 text-xl font-semibold leading-6 text-green-700 dark:text-white text-center">
16-
Please
17-
Enter Your Phone</h3>
16+
{{ __('isp-access-buyform-phone-label') }}
17+
</h3>
1818

1919
<div class="bg-white mb-4 text-center">
2020

@@ -25,11 +25,13 @@ class="shadow appearance-none border rounded w-full py-2 text-gray-700 leading-t
2525
</div>
2626

2727
<button
28-
class="inline-block px-6 py-2.5 bg-blue-500 text-white font-medium text-xs leading-tight uppercase rounded shadow-md hover:bg-blue-700 hover:shadow-lg focus:bg-blue-700 focus:shadow-lg focus:outline-none focus:ring-0 active:bg-blue-800 active:shadow-lg transition duration-150 ease-in-out">Proceed</button>
28+
class="inline-block px-6 py-2.5 bg-blue-500 text-white font-medium text-xs leading-tight uppercase rounded shadow-md hover:bg-blue-700 hover:shadow-lg focus:bg-blue-700 focus:shadow-lg focus:outline-none focus:ring-0 active:bg-blue-800 active:shadow-lg transition duration-150 ease-in-out">
29+
{{ __('isp-access-buyform-button-label') }}
30+
</button>
2931
</div>
3032
</div>
3133

32-
<input type="hidden" name="package_id" id="package_id" value="{{ $package_id }}"/>
34+
<input type="hidden" name="package_id" id="package_id" value="{{ $package_id }}" />
3335
</form>
3436
</div>
3537
</div>
@@ -43,7 +45,7 @@ class="inline-block px-6 py-2.5 bg-blue-500 text-white font-medium text-xs leadi
4345
<div class="w-full max-w-xs login-card">
4446

4547
<p class="text-center text-gray-500 text-xs">
46-
&copy;2022-2023. All rights reserved.
48+
&copy;2022 - {{ date('Y') }}. {{ __('isp-copy-right') }}
4749
</p>
4850
</div>
4951
</div>

Resources/views/access-canceled.blade.php

+8-4
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,20 @@
1010

1111
<i class="far fa-times-circle text-5xl text-red-700"></i>
1212

13-
<h3 class="pt-3 text-2xl font-semibold leading-6 text-red-700 dark:text-white text-center"> - Payment was Canceled. - </h3>
13+
<h3 class="pt-3 text-2xl font-semibold leading-6 text-red-700 dark:text-white text-center">
14+
- {{ __('isp-access-canceled-title') }} -
15+
</h3>
1416

1517
<div class="bg-white mb-4 text-center">
1618

1719
<p style="text-align:center; padding:20px;">
18-
Click the button <b>Profile</b> to try again.
20+
{{ __('isp-access-canceled-instructions') }}
1921
</p>
2022

2123
<a id='package' href="{{ url(route('isp_profile')) }}"
22-
class="inline-block px-6 py-2.5 bg-red-700 text-white font-medium text-xs leading-tight uppercase rounded shadow-md hover:bg-blue-700 hover:shadow-lg focus:bg-blue-700 focus:shadow-lg focus:outline-none focus:ring-0 active:bg-blue-800 active:shadow-lg transition duration-150 ease-in-out">Profile</a>
24+
class="inline-block px-6 py-2.5 bg-red-700 text-white font-medium text-xs leading-tight uppercase rounded shadow-md hover:bg-blue-700 hover:shadow-lg focus:bg-blue-700 focus:shadow-lg focus:outline-none focus:ring-0 active:bg-blue-800 active:shadow-lg transition duration-150 ease-in-out">
25+
{{ __('isp-access-canceled-button') }}
26+
</a>
2327

2428
</div>
2529

@@ -36,7 +40,7 @@ class="inline-block px-6 py-2.5 bg-red-700 text-white font-medium text-xs leadin
3640
<div class="w-full max-w-xs login-card">
3741

3842
<p class="text-center text-gray-500 text-xs">
39-
&copy;2022-2023. All rights reserved.
43+
&copy;2022 - {{ date('Y') }}. {{ __('isp-copy-right') }}
4044
</p>
4145
</div>
4246
</div>

Resources/views/access-dashboard.blade.php

+90-39
Large diffs are not rendered by default.

Resources/views/access-error.blade.php

+7-5
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,19 @@
1111
<i class="far fa-times-circle text-5xl text-red-700"></i>
1212

1313
<h3 class="pt-3 text-2xl font-semibold leading-6 text-red-700 dark:text-white text-center">
14-
ERROR: <br><br><span class="text-lg"> {{ $message }}</span>
15-
</h3>
14+
{{ __('isp-access-error-title') }}: <br><br><span class="text-lg"> {{ $message }}</span>
15+
</h3>
1616

1717
<div class="bg-white mb-4 text-center">
1818

1919
<p style="text-align:center; padding:20px;">
20-
Click the button <b>Profile</b> to try again.
20+
{{ __('isp-access-error-instruction') }}
2121
</p>
2222

2323
<a id='package' href="{{ url(route('isp_profile')) }}"
24-
class="inline-block px-6 py-2.5 bg-red-700 text-white font-medium text-xs leading-tight uppercase rounded shadow-md hover:bg-blue-700 hover:shadow-lg focus:bg-blue-700 focus:shadow-lg focus:outline-none focus:ring-0 active:bg-blue-800 active:shadow-lg transition duration-150 ease-in-out">Profile</a>
24+
class="inline-block px-6 py-2.5 bg-red-700 text-white font-medium text-xs leading-tight uppercase rounded shadow-md hover:bg-blue-700 hover:shadow-lg focus:bg-blue-700 focus:shadow-lg focus:outline-none focus:ring-0 active:bg-blue-800 active:shadow-lg transition duration-150 ease-in-out">
25+
{{ __('isp-access-error-button') }}
26+
</a>
2527

2628
</div>
2729

@@ -38,7 +40,7 @@ class="inline-block px-6 py-2.5 bg-red-700 text-white font-medium text-xs leadin
3840
<div class="w-full max-w-xs login-card">
3941

4042
<p class="text-center text-gray-500 text-xs">
41-
&copy;2022-2023. All rights reserved.
43+
&copy;2022 - {{ date('Y') }}. {{ __('isp-copy-right') }}
4244
</p>
4345
</div>
4446
</div>

Resources/views/access-login.blade.php

+7-5
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
<div class="text-center shadow-xl rounded-md bg-white sm:mr-2 m-1 pt-3 p-2 ">
1414

1515
<h3 class="pt-3 text-xl font-semibold leading-6 text-green-700 dark:text-white text-center">
16-
Login Form</h3>
16+
{{ __('isp-access-login-title') }}
17+
18+
</h3>
1719

1820
@if ($message != '')
1921
<div class="my-2 p-3 text-red-500 border border-dashed border-red-400 rounded bg-red-50">
@@ -24,7 +26,7 @@
2426
<div class="bg-white mb-3 text-left">
2527
<div class="my-3 md:flex md:items-center">
2628
<div class="md:w-1/3">
27-
<b class="block md:text-right">Username :</b>
29+
<b class="block md:text-right">{{ __('isp-access-login-username') }} :</b>
2830
</div>
2931
<div class="md:w-2/3">
3032
<input
@@ -35,7 +37,7 @@ class="shadow appearance-none border rounded w-full py-2 px-1 text-gray-700 lead
3537
</div>
3638
<div class="my-3 md:flex md:items-center">
3739
<div class="md:w-1/3">
38-
<b class="block md:text-right">Phone :</b>
40+
<b class="block md:text-right">{{ __('isp-access-login-phone') }} :</b>
3941
</div>
4042
<div class="md:w-2/3">
4143
<input
@@ -49,7 +51,7 @@ class="shadow appearance-none border rounded w-full py-2 text-gray-700 leading-t
4951
<div class="my-3">
5052
<button
5153
class="inline-block px-6 py-2.5 bg-blue-500 text-white font-medium text-xs leading-tight uppercase rounded shadow-md hover:bg-blue-700 hover:shadow-lg focus:bg-blue-700 focus:shadow-lg focus:outline-none focus:ring-0 active:bg-blue-800 active:shadow-lg transition duration-150 ease-in-out">
52-
LOGIN
54+
{{ __('isp-access-login-button') }}
5355
</button>
5456
</div>
5557

@@ -71,7 +73,7 @@ class="inline-block px-6 py-2.5 bg-blue-500 text-white font-medium text-xs leadi
7173
<div class="w-full max-w-xs login-card">
7274

7375
<p class="text-center text-gray-500 text-xs">
74-
&copy;2022-2023. All rights reserved.
76+
&copy;2022 - {{ date('Y') }}. {{ __('isp-copy-right') }}
7577
</p>
7678
</div>
7779
</div>

Resources/views/access-mikrotik-login.blade.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<div class=" shadow-xl rounded-md bg-white sm:mr-2 m-1 pt-2 p-2">
1010

1111
<h3 class="text-2xl font-semibold leading-6 text-gray-800 dark:text-white text-center pt-2">
12-
- LOGGING IN -
12+
- {{ __('isp-access-mikrotik-login-title') }} -
1313
</h3>
1414

1515
<div class="bg-white mb-4">
@@ -18,7 +18,7 @@
1818

1919
<div class="text-center text-green-400">
2020
<p class="pt-4">
21-
Please Wait...
21+
{{ __('isp-access-mikrotik-login-wait') }}
2222
</p>
2323

2424
<div class="fa-3x">
@@ -37,7 +37,7 @@
3737
<p style="text-align:center;" class="p-1">
3838
<button id='register' type="submit" name="view" value="register"
3939
class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline">
40-
Access Internet
40+
{{ __('isp-access-mikrotik-login-button') }}
4141
</button>
4242
</p>
4343
</form>
@@ -58,7 +58,7 @@ class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded focu
5858
<div class="w-full max-w-xs login-card">
5959

6060
<p class="text-center text-gray-500 text-xs">
61-
&copy;2022. All rights reserved.
61+
&copy;2022 - {{ date('Y') }}. {{ __('isp-copy-right') }}
6262
</p>
6363
</div>
6464
</div>

Resources/views/access-register.blade.php

+17-13
Original file line numberDiff line numberDiff line change
@@ -6,61 +6,65 @@
66
<div class="relative overflow-hidden mb-8">
77
<div class="overflow-hidden px-3 py-10 flex justify-center">
88
<div class="w-full max-w-xs login-card">
9-
<h3 style="text-align: center"> - REGISTER - </h3>
9+
<h3 style="text-align: center"> - {{ __('isp-access-register-title') }} - </h3>
1010
<div class="bg-white">
1111
<div class="mb-4">
1212
<label class="block text-gray-700 text-sm font-bold mb-2" for="name">
13-
Name
13+
{{ __('isp-access-register-name') }}
1414
</label>
1515
<input
1616
class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline"
17-
id="name" name="name" type="text" placeholder="Name" required>
17+
id="name" name="name" type="text"
18+
placeholder="{{ __('isp-access-register-name') }}" required>
1819
</div>
1920
<div class="mb-4">
2021
<label class="block text-gray-700 text-sm font-bold mb-2" for="username">
21-
Username
22+
{{ __('isp-access-register-username') }}
2223
</label>
2324
<input
2425
class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline"
25-
id="username" name="username" type="text" placeholder="Username" required>
26+
id="username" name="username" type="text"
27+
placeholder="{{ __('isp-access-register-username') }}" required>
2628
</div>
2729
<div class="mb-4">
2830
<label class="block text-gray-700 text-sm font-bold mb-2" for="password">
29-
Password
31+
32+
{{ __('isp-access-register-password') }}
3033
</label>
3134
<input
3235
class="shadow appearance-none border border-red-500 rounded w-full py-2 px-3 text-gray-700 mb-3 leading-tight focus:outline-none focus:shadow-outline"
3336
id="password" name="password" type="password" placeholder="******************" required>
34-
<p class="text-red-500 text-xs italic">Please choose a password.</p>
37+
<p class="text-red-500 text-xs italic">{{ __('isp-access-register-password-label') }}</p>
3538
</div>
3639

3740
<div class="mb-4">
3841
<label class="block text-gray-700 text-sm font-bold mb-2" for="phone">
39-
Phone
42+
{{ __('isp-access-register-phone') }}
4043
</label>
4144
<input id="phone" name="phone" type="tel" placeholder="722-xxx-xxx"
4245
class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline">
4346
</div>
4447

4548
<div class="mb-4">
4649
<label class="block text-gray-700 text-sm font-bold mb-2" for="email">
47-
Email
50+
{{ __('isp-access-register-email') }}
4851
</label>
4952
<input
5053
class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline"
51-
id="email" name="email" type="email" placeholder="Email">
54+
id="email" name="email" type="email"
55+
placeholder="{{ __('isp-access-register-email') }}">
5256
</div>
5357

5458
<div class="flex items-center justify-between">
5559
<button
5660
class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline"
5761
type="submit" name="view" value="submit-register">
58-
Register
62+
{{ __('isp-access-register-button') }}
5963
</button>
6064
<button
6165
class="bg-red-500 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline"
6266
type="submit"name="view" value="login">
63-
Back to Login
67+
{{ __('isp-access-register-back-button') }}
6468
</button>
6569
</div>
6670

@@ -71,7 +75,7 @@ class="bg-red-500 text-white font-bold py-2 px-4 rounded focus:outline-none focu
7175
</div>
7276
</div>
7377
<p class="text-center text-gray-500 text-xs">
74-
&copy;2022. All rights reserved.
78+
&copy;2022 - {{ date('Y') }}. {{ __('isp-copy-right') }}
7579
</p>
7680
</div>
7781
</div>

Resources/views/access-thankyou.blade.php

+9-7
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,22 @@
77
<div class="sm:flex">
88
<div class="sm:flex-auto sm:w-1/2 my-3">
99
<div class="text-center shadow-xl rounded-md bg-white sm:mr-2 m-1 pt-5 p-2 ">
10-
10+
1111
<i class="far fa-check-circle text-5xl text-green-700"></i>
12-
13-
<h3 class="pt-3 text-2xl font-semibold leading-6 text-green-700 dark:text-white text-center"> - Thank You
14-
for your Payment - </h3>
12+
13+
<h3 class="pt-3 text-2xl font-semibold leading-6 text-green-700 dark:text-white text-center">
14+
- {{ __('isp-access-thankyou-title') }} - </h3>
1515

1616
<div class="bg-white mb-4 text-center">
1717

1818
<p style="text-align:center; padding:20px;">
19-
Click the button <b>Access Internet</b> to proceed to Internet.
19+
{{ __('isp-access-thankyou-instruction') }}
2020
</p>
2121

2222
<a id='package' href="{{ url(route('isp_access_mikrotik_login')) }}"
23-
class="inline-block px-6 py-2.5 bg-green-700 text-white font-medium text-xs leading-tight uppercase rounded shadow-md hover:bg-blue-700 hover:shadow-lg focus:bg-blue-700 focus:shadow-lg focus:outline-none focus:ring-0 active:bg-blue-800 active:shadow-lg transition duration-150 ease-in-out">Access Internet</a>
23+
class="inline-block px-6 py-2.5 bg-green-700 text-white font-medium text-xs leading-tight uppercase rounded shadow-md hover:bg-blue-700 hover:shadow-lg focus:bg-blue-700 focus:shadow-lg focus:outline-none focus:ring-0 active:bg-blue-800 active:shadow-lg transition duration-150 ease-in-out">
24+
{{ __('isp-access-thankyou-button') }}
25+
</a>
2426

2527
</div>
2628
</div>
@@ -36,7 +38,7 @@ class="inline-block px-6 py-2.5 bg-green-700 text-white font-medium text-xs lead
3638
<div class="w-full max-w-xs login-card">
3739

3840
<p class="text-center text-gray-500 text-xs">
39-
&copy;2022-2023. All rights reserved.
41+
&copy;2022 - {{ date('Y') }}. {{ __('isp-copy-right') }}
4042
</p>
4143
</div>
4244
</div>

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "mybizna/isp",
33
"description": "",
44
"type": "asgard-module",
5-
"version": "1.3.43",
5+
"version": "1.3.44",
66
"license": "GPL-3.0-or-later",
77
"authors": [
88
{

0 commit comments

Comments
 (0)