From a23fd11159e72a6ff495605b1d61acf4eece42b5 Mon Sep 17 00:00:00 2001 From: "kreaweb.be" Date: Mon, 17 Jun 2024 14:05:06 +0200 Subject: [PATCH] Improved Search --- lang/de/app.php | 4 ++-- lang/en/app.php | 2 +- lang/nl/app.php | 2 +- resources/views/livewire/people/search.blade.php | 6 ++++-- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/lang/de/app.php b/lang/de/app.php index fab62bc0..0d401f10 100644 --- a/lang/de/app.php +++ b/lang/de/app.php @@ -98,8 +98,8 @@ 'people_search' => 'Finde personen in :scope', 'people_search_placeholder' => 'Namen oder Spitznamen eingeben ...', - 'people_found' => ':total wurden in :scope mit dem Schlagwort :keyword gefunden', - 'people_available' => ':total Personen in :scope verfügbar', + 'people_found' => ':found Personen wurden gefunden mit dem Schlagwort :keyword in :total Personen verfügbar in :scope', + 'people_available' => ':total Personen verfügbar in :scope', 'whoops' => 'Upps! Etwas ist schief gelaufen.', ]; diff --git a/lang/en/app.php b/lang/en/app.php index f7a19062..27786c27 100644 --- a/lang/en/app.php +++ b/lang/en/app.php @@ -98,7 +98,7 @@ 'people_search' => 'Find people in :scope', 'people_search_placeholder' => 'Enter name or nickname ...', - 'people_found' => ':total found with keyword :keyword in :scope', + 'people_found' => ':found people found with keyword :keyword in :total people available in :scope', 'people_available' => ':total people available in :scope', 'whoops' => 'Whoops! Something went wrong.', diff --git a/lang/nl/app.php b/lang/nl/app.php index e2bf6ce9..d504fce4 100644 --- a/lang/nl/app.php +++ b/lang/nl/app.php @@ -98,7 +98,7 @@ 'people_search' => 'Zoek personen in :scope', 'people_search_placeholder' => 'Geef een naam of bijnaam ...', - 'people_found' => ':total gevonden met term :keyword in :scope', + 'people_found' => ':found personen gevonden met term :keyword in :total personen beschikbaar in :scope', 'people_available' => ':total personen beschikbaar in :scope', 'whoops' => 'Oeps! Er liep iets mis.', diff --git a/resources/views/livewire/people/search.blade.php b/resources/views/livewire/people/search.blade.php index 517ca24a..967d9bde 100644 --- a/resources/views/livewire/people/search.blade.php +++ b/resources/views/livewire/people/search.blade.php @@ -28,13 +28,15 @@ @if ($this->search) @if (config('app.god_mode') && auth()->user()->is_developer) {!! __('app.people_found', [ - 'total' => $people->total(), + 'found' => $people->total(), + 'total' => $people_db, 'scope' => strtoupper(__('team.all_teams')), 'keyword' => $this->search, ]) !!} @else {!! __('app.people_found', [ - 'total' => $people->total(), + 'found' => $people->total(), + 'total' => $people_db, 'scope' => auth()->user()->currentTeam->name, 'keyword' => $this->search, ]) !!}