From a4da7ab6301d1f053f494fa7bdfc7ce286de4e55 Mon Sep 17 00:00:00 2001 From: Didier Date: Thu, 28 Sep 2023 15:03:53 +0200 Subject: [PATCH] fix labels --- app/Models/Control.php | 2 +- resources/views/search.blade.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Models/Control.php b/app/Models/Control.php index 26f6579d..a6286a49 100644 --- a/app/Models/Control.php +++ b/app/Models/Control.php @@ -10,11 +10,11 @@ class Control extends Model 'name', 'clause', 'objective', + 'observations', 'input', 'attributes', 'model', 'action_plan', - 'realisation_date', ]; protected $dates = [ diff --git a/resources/views/search.blade.php b/resources/views/search.blade.php index e51465f8..d4359dd0 100644 --- a/resources/views/search.blade.php +++ b/resources/views/search.blade.php @@ -5,13 +5,13 @@
@foreach($results as $result) @if ($result['model']==='App\\Models\\Domain') - Domaine + {{ trans("cruds.domain.title")}} {{ $result['title'] }} : {{ $result['description'] }} @elseif ($result['model']==='App\\Models\\Measure') - Mesure + {{ trans("cruds.measure.title")}} {{ $result['clause'] }} : {{ $result["name"] }} @elseif ($result['model']==='App\\Models\\Control') - Contrôle + {{ trans("cruds.control.title_singular")}} {{ $result["clause"] }} : {{ $result["name"] }} @if (array_key_exists("realisation_date",$result)) - {{ $result["realisation_date"] }}