Skip to content

Commit

Permalink
Merge pull request #97 from dbarzin/dev
Browse files Browse the repository at this point in the history
improve domain index page
  • Loading branch information
dbarzin authored Jul 16, 2024
2 parents a6def12 + b6ae8aa commit 02a9ae6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions app/Http/Controllers/DomainController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
8 changes: 4 additions & 4 deletions resources/views/domains/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@
data-check-style="1">
<thead>
<tr>
<th width="50">{{ trans('cruds.domain.fields.framework') }}</th>
<th width="50">{{ trans('cruds.domain.fields.name') }}</th>
<th width="200">{{ trans('cruds.domain.fields.description') }}</th>
<th width="200">{{ trans('cruds.domain.fields.measures') }}</th>
<th class="sortable-column" width="50">{{ trans('cruds.domain.fields.framework') }}</th>
<th class="sortable-column" width="50">{{ trans('cruds.domain.fields.name') }}</th>
<th class="sortable-column" width="200">{{ trans('cruds.domain.fields.description') }}</th>
<th class="sortable-column" width="200">{{ trans('cruds.domain.fields.measures') }}</th>
</tr>
</thead>
<tbody>
Expand Down

0 comments on commit 02a9ae6

Please sign in to comment.