Skip to content

Commit

Permalink
Improved Search
Browse files Browse the repository at this point in the history
  • Loading branch information
kreaweb.be committed Jun 17, 2024
1 parent b6dd9d5 commit a23fd11
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lang/de/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@

'people_search' => 'Finde personen in <span class="text-emerald-600"><strong>:scope</strong></span></span>',
'people_search_placeholder' => 'Namen oder Spitznamen eingeben ...',
'people_found' => '<span class="text-emerald-600"><strong>:total</strong></span> wurden in <span class="text-emerald-600"><strong>:scope</strong></span> mit dem Schlagwort <span class="text-emerald-600"><strong>:keyword</strong></span> gefunden',
'people_available' => '<span class="text-emerald-600"><strong>:total</strong></span> Personen in <span class="text-emerald-600"><strong>:scope</strong></span></span> verfügbar',
'people_found' => '<span class="text-emerald-600"><strong>:found</strong></span> Personen wurden gefunden mit dem Schlagwort <span class="text-emerald-600"><strong>:keyword</strong></span> in <span class="text-emerald-600"><strong>:total</strong></span> Personen verfügbar in <span class="text-emerald-600"><strong>:scope</strong></span>',
'people_available' => '<span class="text-emerald-600"><strong>:total</strong></span> Personen verfügbar in <span class="text-emerald-600"><strong>:scope</strong></span></span>',

'whoops' => 'Upps! Etwas ist schief gelaufen.',
];
2 changes: 1 addition & 1 deletion lang/en/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@

'people_search' => 'Find people in <span class="text-emerald-600"><strong>:scope</strong></span></span>',
'people_search_placeholder' => 'Enter name or nickname ...',
'people_found' => '<span class="text-emerald-600"><strong>:total</strong></span> found with keyword <span class="text-emerald-600"><strong>:keyword</strong></span> in <span class="text-emerald-600"><strong>:scope</strong></span>',
'people_found' => '<span class="text-emerald-600"><strong>:found</strong></span> people found with keyword <span class="text-emerald-600"><strong>:keyword</strong></span> in <span class="text-emerald-600"><strong>:total</strong></span> people available in <span class="text-emerald-600"><strong>:scope</strong></span>',
'people_available' => '<span class="text-emerald-600"><strong>:total</strong></span> people available in <span class="text-emerald-600"><strong>:scope</strong></span></span>',

'whoops' => 'Whoops! Something went wrong.',
Expand Down
2 changes: 1 addition & 1 deletion lang/nl/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@

'people_search' => 'Zoek personen in <span class="text-emerald-600"><strong>:scope</strong></span></span>',
'people_search_placeholder' => 'Geef een naam of bijnaam ...',
'people_found' => '<span class="text-emerald-600"><strong>:total</strong></span> gevonden met term <span class="text-emerald-600"><strong>:keyword</strong></span> in <span class="text-emerald-600"><strong>:scope</strong></span>',
'people_found' => '<span class="text-emerald-600"><strong>:found</strong></span> personen gevonden met term <span class="text-emerald-600"><strong>:keyword</strong></span> in <span class="text-emerald-600"><strong>:total</strong></span></span> personen beschikbaar in <span class="text-emerald-600"><strong>:scope</strong></span>',
'people_available' => '<span class="text-emerald-600"><strong>:total</strong></span> personen beschikbaar in <span class="text-emerald-600"><strong>:scope</strong></span></span>',

'whoops' => 'Oeps! Er liep iets mis.',
Expand Down
6 changes: 4 additions & 2 deletions resources/views/livewire/people/search.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
]) !!}
Expand Down

0 comments on commit a23fd11

Please sign in to comment.