From b6ae8aa9a2eef3f89ba52081c778ab08943d2051 Mon Sep 17 00:00:00 2001 From: Didier Date: Tue, 16 Jul 2024 07:41:46 +0200 Subject: [PATCH] improve domain index page --- app/Http/Controllers/DomainController.php | 1 + resources/views/domains/index.blade.php | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/Http/Controllers/DomainController.php b/app/Http/Controllers/DomainController.php index b348fe8d..6c60f89d 100644 --- a/app/Http/Controllers/DomainController.php +++ b/app/Http/Controllers/DomainController.php @@ -25,6 +25,7 @@ public function index() ->select('domains.id', 'domains.framework', 'domains.title', 'domains.description', DB::raw('COUNT(measures.id) AS measures')) ->leftJoin('measures', 'measures.domain_id', '=', 'domains.id') ->groupBy('domains.id') + ->orderBy('domains.title') ->get(); return view('domains.index') diff --git a/resources/views/domains/index.blade.php b/resources/views/domains/index.blade.php index 339251c6..e42597bc 100644 --- a/resources/views/domains/index.blade.php +++ b/resources/views/domains/index.blade.php @@ -31,10 +31,10 @@ data-check-style="1"> - {{ trans('cruds.domain.fields.framework') }} - {{ trans('cruds.domain.fields.name') }} - {{ trans('cruds.domain.fields.description') }} - {{ trans('cruds.domain.fields.measures') }} + {{ trans('cruds.domain.fields.framework') }} + {{ trans('cruds.domain.fields.name') }} + {{ trans('cruds.domain.fields.description') }} + {{ trans('cruds.domain.fields.measures') }}