From b6ffae72a580c2291ebc9fabc8e94b77e95569b1 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Tue, 12 Sep 2023 19:51:49 +1000 Subject: [PATCH] Updates for search --- app/Http/Controllers/SearchController.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/SearchController.php b/app/Http/Controllers/SearchController.php index ca694e6103ab..fba7c9529439 100644 --- a/app/Http/Controllers/SearchController.php +++ b/app/Http/Controllers/SearchController.php @@ -46,7 +46,8 @@ class SearchController extends Controller 'name' => $client->present()->name(), 'type' => '/client', 'id' => $client->hashed_id, - 'path' => "/clients/{$client->hashed_id}/edit" + 'path' => "/clients/{$client->hashed_id}/edit", + 'heading' => ctrans('texts.clients') ]; }); } @@ -65,7 +66,8 @@ class SearchController extends Controller 'name' => $contact->present()->search_display(), 'type' => '/client_contact', 'id' => $contact->client->hashed_id, - 'path' => "/clients/{$contact->client->hashed_id}" + 'path' => "/clients/{$contact->client->hashed_id}", + 'heading' => ctrans('texts.contacts') ]; }); } @@ -84,7 +86,8 @@ class SearchController extends Controller 'name' => $invoice->client->present()->name() . ' - ' . $invoice->number, 'type' => '/invoice', 'id' => $invoice->hashed_id, - 'path' => "/clients/{$invoice->hashed_id}/edit" + 'path' => "/clients/{$invoice->hashed_id}/edit", + 'heading' => ctrans('texts.invoices') ]; }); } @@ -179,6 +182,7 @@ class SearchController extends Controller 'path' => $value, 'type' => $transkey, 'name' => $translation, + 'heading' => ctrans('texts.settings') ]; }