From 834822e182d0bd2bd59ed8028114c362377d7dd8 Mon Sep 17 00:00:00 2001 From: Nurmuhammet Allanov Date: Tue, 29 Jul 2025 16:39:27 +0500 Subject: [PATCH] Remove welcome.blade.php and update various views to use translation functions for improved localization support. Changes include updating labels, titles, and alerts across multiple pages to utilize the __('') function, enhancing the application's internationalization capabilities. --- .../components/application_modal.blade.php | 28 +- resources/views/web/layouts/app.blade.php | 2 +- resources/views/web/layouts/footer.blade.php | 8 +- .../web/layouts/settings-button.blade.php | 4 +- .../views/web/pages/about/index.blade.php | 16 +- .../views/web/pages/careers/index.blade.php | 24 +- .../views/web/pages/contact/index.blade.php | 24 +- .../views/web/pages/home/index.blade.php | 12 +- .../web/pages/internships/index.blade.php | 24 +- .../views/web/pages/news/index.blade.php | 12 +- .../views/web/pages/success/index.blade.php | 14 +- .../views/web/pages/success/show.blade.php | 6 +- resources/views/welcome.blade.php | 277 ------------------ 13 files changed, 87 insertions(+), 364 deletions(-) delete mode 100644 resources/views/welcome.blade.php diff --git a/resources/views/web/components/application_modal.blade.php b/resources/views/web/components/application_modal.blade.php index a87f873..580fa9b 100644 --- a/resources/views/web/components/application_modal.blade.php +++ b/resources/views/web/components/application_modal.blade.php @@ -2,8 +2,8 @@ @@ -43,7 +43,7 @@ diff --git a/resources/views/web/layouts/settings-button.blade.php b/resources/views/web/layouts/settings-button.blade.php index c68e9f4..664e558 100644 --- a/resources/views/web/layouts/settings-button.blade.php +++ b/resources/views/web/layouts/settings-button.blade.php @@ -8,8 +8,8 @@
{{ __('Mode') }}
- - + +
diff --git a/resources/views/web/pages/about/index.blade.php b/resources/views/web/pages/about/index.blade.php index 8bef5a7..3c7cc54 100644 --- a/resources/views/web/pages/about/index.blade.php +++ b/resources/views/web/pages/about/index.blade.php @@ -295,10 +295,10 @@ body {
@@ -345,7 +345,7 @@ body {
@@ -396,14 +396,14 @@ body {
-

Director

+

{{ __('Director') }}

{{ $aboutSettings->company_structure_director_name }}

-

Technical Advisor

+

{{ __('Technical Advisor') }}

{{ $aboutSettings->company_structure_advisor_name }}

@@ -426,8 +426,8 @@ body {
-

Our Management

-

Meet the leadership team driving our vision forward

+

{{ __('Our Management') }}

+

{{ __('Meet the leadership team driving our vision forward') }}

@foreach (App\Models\TeamMember::all() as $member) diff --git a/resources/views/web/pages/careers/index.blade.php b/resources/views/web/pages/careers/index.blade.php index f6b87f1..cd5e4e5 100644 --- a/resources/views/web/pages/careers/index.blade.php +++ b/resources/views/web/pages/careers/index.blade.php @@ -15,10 +15,10 @@
@@ -31,7 +31,7 @@
-

For general application, send your resume at career@gujurly.com

+

{{ __('For general application, send your resume at') }} career@gujurly.com

@forelse ($careers as $career)
@@ -40,7 +40,7 @@ {{ $career->title }}

{{ $career->location }}

{{ $career->salary_per_month }} {{ $career->salary_currency }}

- Per monthly + {{ __('Per monthly') }}
    @@ -50,12 +50,12 @@
- +
@empty - No careers found... + {{ __('No careers found...') }} @endforelse
@@ -86,8 +86,8 @@ // Set dynamic values modalTitle.textContent = button.getAttribute('data-' + jobType + '-title'); - modalLocation.textContent = 'Location: ' + button.getAttribute('data-' + jobType + '-location'); - modalSalary.textContent = 'Salary: ' + button.getAttribute('data-' + jobType + '-salary') + ' / Per monthly'; + modalLocation.textContent = '{{ __('Location') }}: ' + button.getAttribute('data-' + jobType + '-location'); + modalSalary.textContent = '{{ __('Salary') }}: ' + button.getAttribute('data-' + jobType + '-salary') + ' / {{ __('Per monthly') }}'; modalDescription.textContent = button.getAttribute('data-' + jobType + '-description'); jobIdInput.value = jobId; @@ -124,12 +124,12 @@ modal.hide(); form.reset(); } else { - alert('Error: ' + data.message); + alert('{{ __('Error') }}: ' + data.message); } }) .catch(error => { - console.error('Error:', error); - alert('An error occurred. Please try again.'); + console.error('{{ __('Error') }}:', error); + alert('{{ __('An error occurred. Please try again.') }}'); }); }); } diff --git a/resources/views/web/pages/contact/index.blade.php b/resources/views/web/pages/contact/index.blade.php index ef34894..33cbccc 100644 --- a/resources/views/web/pages/contact/index.blade.php +++ b/resources/views/web/pages/contact/index.blade.php @@ -10,10 +10,10 @@
@@ -38,7 +38,7 @@
- Phone: + {{ __('Phone') }}:
{{ $contactSettings->phone_number }}
@@ -47,7 +47,7 @@
- Email Address: + {{ __('Email Address') }}:
{{ $contactSettings->email_address }}
@@ -56,7 +56,7 @@
- Location: + {{ __('Location') }}:
{{ $contactSettings->location_address }}
@@ -65,32 +65,32 @@
-

Send Message

+

{{ __('Send Message') }}

- +
- +
- +
- +
- +
diff --git a/resources/views/web/pages/home/index.blade.php b/resources/views/web/pages/home/index.blade.php index e1d9caf..e0798b5 100644 --- a/resources/views/web/pages/home/index.blade.php +++ b/resources/views/web/pages/home/index.blade.php @@ -146,14 +146,14 @@
-
+
@foreach($solutionSettings->solution_items as $item) @endforeach @@ -315,8 +315,8 @@
- News & Blog -

News

+ {{ __('News & Blog') }} +

{{ __('News') }}

@@ -334,8 +334,8 @@

{{ $news->title }}

diff --git a/resources/views/web/pages/internships/index.blade.php b/resources/views/web/pages/internships/index.blade.php index 3088738..d64ef32 100644 --- a/resources/views/web/pages/internships/index.blade.php +++ b/resources/views/web/pages/internships/index.blade.php @@ -15,10 +15,10 @@
@@ -31,7 +31,7 @@
-

For general application, send your resume at career@gujurly.com

+

{{ __('For general application, send your resume at') }} career@gujurly.com

@forelse ($internships as $internship)
@@ -40,7 +40,7 @@ {{ $internship->title }}

{{ $internship->location }}

{{ $internship->salary_per_month }} {{ $internship->salary_currency }}

- Per monthly + {{ __('Per monthly') }}
    @@ -50,12 +50,12 @@
- +
@empty - No internships found... + {{ __('No internships found...') }} @endforelse
@@ -86,8 +86,8 @@ // Set dynamic values modalTitle.textContent = button.getAttribute('data-' + jobType + '-title'); - modalLocation.textContent = 'Location: ' + button.getAttribute('data-' + jobType + '-location'); - modalSalary.textContent = 'Salary: ' + button.getAttribute('data-' + jobType + '-salary') + ' / Per monthly'; + modalLocation.textContent = '{{ __('Location') }}: ' + button.getAttribute('data-' + jobType + '-location'); + modalSalary.textContent = '{{ __('Salary') }}: ' + button.getAttribute('data-' + jobType + '-salary') + ' / {{ __('Per monthly') }}'; modalDescription.textContent = button.getAttribute('data-' + jobType + '-description'); jobIdInput.value = jobId; @@ -124,12 +124,12 @@ modal.hide(); form.reset(); } else { - alert('Error: ' + data.message); + alert('{{ __('Error') }}: ' + data.message); } }) .catch(error => { - console.error('Error:', error); - alert('An error occurred. Please try again.'); + console.error('{{ __('Error') }}:', error); + alert('{{ __('An error occurred. Please try again.') }}'); }); }); } diff --git a/resources/views/web/pages/news/index.blade.php b/resources/views/web/pages/news/index.blade.php index dfe5ca8..d34c0ae 100644 --- a/resources/views/web/pages/news/index.blade.php +++ b/resources/views/web/pages/news/index.blade.php @@ -7,10 +7,10 @@
@@ -24,7 +24,7 @@
-

Read Our News

+

{{ __('Read Our News') }}

@@ -40,13 +40,13 @@
@empty
-
No news found...
+
{{ __('No news found...') }}
@endforelse
diff --git a/resources/views/web/pages/success/index.blade.php b/resources/views/web/pages/success/index.blade.php index d174d05..43a8e7c 100644 --- a/resources/views/web/pages/success/index.blade.php +++ b/resources/views/web/pages/success/index.blade.php @@ -7,10 +7,10 @@
@@ -24,8 +24,8 @@
-

Our Success Stories

-

Discover inspiring narratives of triumph, growth, and achievement through our curated collection of success stories. Each story is a testament to dedication and hard work.

+

{{ __('Our Success Stories') }}

+

{{ __('Discover inspiring narratives of triumph, growth, and achievement through our curated collection of success stories. Each story is a testament to dedication and hard work.') }}

@forelse ($allSuccesses as $success) @@ -39,13 +39,13 @@
@empty
-
No success stories found...
+
{{ __('No success stories found...') }}
@endforelse
diff --git a/resources/views/web/pages/success/show.blade.php b/resources/views/web/pages/success/show.blade.php index baf5d0c..dab37ce 100644 --- a/resources/views/web/pages/success/show.blade.php +++ b/resources/views/web/pages/success/show.blade.php @@ -9,8 +9,8 @@ @@ -34,7 +34,7 @@
-

Recent Success Stories

+

{{ __('Recent Success Stories') }}

@foreach($recentSuccesses as $success)
diff --git a/resources/views/welcome.blade.php b/resources/views/welcome.blade.php deleted file mode 100644 index c893b80..0000000 --- a/resources/views/welcome.blade.php +++ /dev/null @@ -1,277 +0,0 @@ - - - - - - - Laravel - - - - - - - @if (file_exists(public_path('build/manifest.json')) || file_exists(public_path('hot'))) - @vite(['resources/css/app.css', 'resources/js/app.js']) - @else - - @endif - - -
- @if (Route::has('login')) - - @endif -
-
-
-
-

Let's get started

-

Laravel has an incredibly rich ecosystem.
We suggest starting with the following.

- - -
-
- {{-- Laravel Logo --}} - - - - - - - - - - - {{-- Light Mode 12 SVG --}} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {{-- Dark Mode 12 SVG --}} - -
-
-
-
- - @if (Route::has('login')) - - @endif - -