Create new translations and update existing views.

This commit is contained in:
2024-11-27 12:22:06 +01:00
parent 31454b2980
commit 9d2eddbcf1
17 changed files with 159 additions and 52 deletions

View File

@@ -13,9 +13,15 @@
<!-- Navigation Links -->
<div class="hidden space-x-8 sm:-my-px sm:ms-10 sm:flex">
<x-nav-link :href="route('dashboard')" :active="request()->routeIs('dashboard')">
{{ __('Dashboard') }}
{{ __('common.Dashboard') }}
</x-nav-link>
</div>
<div class="hidden space-x-8 sm:-my-px sm:ms-10 sm:flex">
<x-nav-link :href="route('customer.index')" :active="\Illuminate\Support\Str::startsWith(request()->route()->getName(), 'customer.')">
{{ __('customer.Customers') }}
</x-nav-link>
</div>
</div>
<!-- Settings Dropdown -->
@@ -35,7 +41,7 @@
<x-slot name="content">
<x-dropdown-link :href="route('profile.edit')">
{{ __('Profile') }}
{{ __('user.Profile') }}
</x-dropdown-link>
<!-- Authentication -->
@@ -45,7 +51,7 @@
<x-dropdown-link :href="route('logout')"
onclick="event.preventDefault();
this.closest('form').submit();">
{{ __('Log Out') }}
{{ __('user.Log Out') }}
</x-dropdown-link>
</form>
</x-slot>
@@ -68,7 +74,7 @@
<div :class="{'block': open, 'hidden': ! open}" class="hidden sm:hidden">
<div class="pt-2 pb-3 space-y-1">
<x-responsive-nav-link :href="route('dashboard')" :active="request()->routeIs('dashboard')">
{{ __('Dashboard') }}
{{ __('common.Dashboard') }}
</x-responsive-nav-link>
</div>
@@ -81,7 +87,7 @@
<div class="mt-3 space-y-1">
<x-responsive-nav-link :href="route('profile.edit')">
{{ __('Profile') }}
{{ __('user.Profile') }}
</x-responsive-nav-link>
<!-- Authentication -->
@@ -91,7 +97,7 @@
<x-responsive-nav-link :href="route('logout')"
onclick="event.preventDefault();
this.closest('form').submit();">
{{ __('Log Out') }}
{{ __('user.Log Out') }}
</x-responsive-nav-link>
</form>
</div>