Translated dashboard page

This commit is contained in:
Julian Prieber 2023-06-04 23:18:31 +02:00
parent 7fd2d922a2
commit a6a273ba24
2 changed files with 35 additions and 20 deletions

View File

@ -72,7 +72,22 @@ return [
'Resend Verification Email' => 'Resend Verification Email+',
'' => '+',
'Dashboard' => 'Dashboard+',
'Total Links:' => 'Total Links:+',
'Link Clicks:' => 'Link Clicks:+',
'View/Edit Links' => 'View/Edit Links+',
'Top Links:' => 'Top Links:+',
'You havent added any links yet' => 'You havent added any links yet.+',
'clicks' => 'clicks+',
'Site statistics:' => 'Site statistics:+',
'Total links' => 'Total links+',
'Total clicks' => 'Total clicks+',
'Total users' => 'Total users+',
'Registrations:' => 'Registrations:+',
'Last 30 days' => 'Last 30 days+',
'Last 7 days' => 'Last 7 days+',
'Last 24 hours' => 'Last 24 hours+',
'Active users:' => 'Active users:+',
'' => '+',

View File

@ -11,21 +11,21 @@
<div class="row">
<div class="col-sm-12">
<h3 class="mb-4"><i class="bi bi-menu-up"></i> Dashboard</h3>
<h3 class="mb-4"><i class="bi bi-menu-up"></i> {{__('messages.Dashboard')}}</h3>
<section class="mb-3 text-center p-4 w-full">
<div class=" d-flex">
<div class='p-2 h6'><i class="bi bi-link"></i> Total Links: <span class='text-primary'>{{ $links }} </span></div>
<div class='p-2 h6'><i class="bi bi-link"></i> {{__('messages.Total Links:')}} <span class='text-primary'>{{ $links }} </span></div>
<div class='p-2 h6'><i class="bi bi-eye"></i> Link Clicks: <span class='text-primary'>{{ $clicks }}</span></div>
<div class='p-2 h6'><i class="bi bi-eye"></i> {{__('messages.Link Clicks:')}} <span class='text-primary'>{{ $clicks }}</span></div>
</div>
<div class='text-center w-100'>
<a href="{{ url('/studio/links') }}">View/Edit Links</a>
<a href="{{ url('/studio/links') }}">{{__('messages.View/Edit Links')}}</a>
</div>
<div class='w-100 text-left'>
<h6><i class="bi bi-sort-up"></i> Top Links:</h6>
<h6><i class="bi bi-sort-up"></i> {{__('messages.Top Links:')}}</h6>
@php $i = 0; @endphp
@ -36,7 +36,7 @@
<div class="container">
<div class="row justify-content-center mt-3">
<div class="col-6 text-center">
<p class="p-2">You haven't added any links yet.</p>
<p class="p-2">{{__('messages.You havent added any links yet')}}</p>
</div>
</div>
</div>
@ -51,7 +51,7 @@
<div class="fw-bold text-truncate">{{ $link->title }}</div>
{{ $link->link }}
</div>
<span class="badge bg-primary rounded-pill p-2">{{ $link->click_number }} - clicks</span>
<span class="badge bg-primary rounded-pill p-2">{{ $link->click_number }} - {{__('messages.clicks')}}</span>
</li>
@endif
@endforeach
@ -76,22 +76,22 @@
@if(auth()->user()->role == 'admin' && !config('linkstack.single_user_mode'))
<!-- Section: Design Block -->
<section class="mb-3 text-gray-800 text-center p-4 w-full">
<div class='font-weight-bold text-left h3'>Site statistics:</div><br>
<div class='font-weight-bold text-left h3'>{{__('messages.Site statistics:')}}</div><br>
<div class="d-flex flex-wrap justify-content-around">
<div class="p-2">
<h3 class="text-primary"><strong><i class="bi bi-share-fill"> {{ $siteLinks }} </i></strong></h3>
<span class="text-muted">Total links</span>
<span class="text-muted">{{__('messages.Total links')}}</span>
</div>
<div class="p-2">
<h3 class="text-primary"><strong><i class="bi bi-eye-fill"> {{ $siteClicks }} </i></strong></h3>
<span class="text-muted">Total clicks</span>
<span class="text-muted">{{__('messages.Total clicks')}}</span>
</div>
<div class="p-2">
<h3 class="text-primary"><strong><i class="bi bi bi-person-fill"> {{ $userNumber }}</i></strong></h3>
<span class="text-muted">Total users</span>
<span class="text-muted">{{__('messages.Total users')}}</span>
</div>
</div>
@ -111,22 +111,22 @@
<!-- Section: Design Block -->
<section class="mb-3 text-gray-800 text-center p-4 w-full">
<div class='font-weight-bold text-left h3'>Registrations:</div><br>
<div class='font-weight-bold text-left h3'>{{__('messages.Registrations:')}}</div><br>
<div class="d-flex flex-wrap justify-content-around">
<div class="p-2">
<h3 class="text-primary"><strong> {{ $lastMonthCount }} </i></strong></h3>
<span class="text-muted">Last 30 days</span>
<span class="text-muted">{{__('messages.Last 30 days')}}</span>
</div>
<div class="p-2">
<h3 class="text-primary"><strong> {{ $lastWeekCount }} </i></strong></h3>
<span class="text-muted">Last 7 days</span>
<span class="text-muted">{{__('messages.Last 7 days')}}</span>
</div>
<div class="p-2">
<h3 class="text-primary"><strong> {{ $last24HrsCount }}</i></strong></h3>
<span class="text-muted">Last 24 hours</span>
<span class="text-muted">{{__('messages.Last 24 hours')}}</span>
</div>
</div>
@ -147,22 +147,22 @@
<!-- Section: Design Block -->
<section class="mb-3 text-gray-800 text-center p-4 w-full">
<div class='font-weight-bold text-left h3'>Active users:</div><br>
<div class='font-weight-bold text-left h3'>{{__('messages.Active users:')}}</div><br>
<div class="d-flex flex-wrap justify-content-around">
<div class="p-2">
<h3 class="text-primary"><strong> {{ $updatedLast30DaysCount }} </i></strong></h3>
<span class="text-muted">Last 30 days</span>
<span class="text-muted">{{__('messages.Last 30 days')}}</span>
</div>
<div class="p-2">
<h3 class="text-primary"><strong> {{ $updatedLast7DaysCount }} </i></strong></h3>
<span class="text-muted">Last 7 days</span>
<span class="text-muted">{{__('messages.Last 7 days')}}</span>
</div>
<div class="p-2">
<h3 class="text-primary"><strong> {{ $updatedLast24HrsCount }}</i></strong></h3>
<span class="text-muted">Last 24 hours</span>
<span class="text-muted">{{__('messages.Last 24 hours')}}</span>
</div>
</div>