Files
Roardom d128cd5236 refactor: prefer ::query() over laravel eloquent magic
Significantly improves DX with LSP compatibility. Now it's possible to navigate to the definition of these functions in laravel and get ide autocomplete.
2026-01-10 10:10:03 +00:00

39 lines
1.1 KiB
PHP

@extends('layout.with-main')
@section('title')
<title>{{ __('stat.stats') }} - {{ config('other.title') }}</title>
@endsection
@section('breadcrumbs')
<li class="breadcrumbV2">
<a href="{{ route('stats') }}" class="breadcrumb__link">
{{ __('stat.stats') }}
</a>
</li>
<li class="breadcrumb--active">
{{ __('stat.languages') }}
</li>
@endsection
@section('page', 'page__stats--languages')
@section('main')
<section class="panelV2">
<h2 class="panel__heading">{{ __('stat.languages') }}</h2>
<div class="data-table-wrapper">
<table class="data-table">
@foreach ($languages as $code => $name)
<tr>
<td>{{ $name }}</td>
<td>
Used by
{{ App\Models\UserSetting::query()->where('locale', '=', $code)->count() }}
Users
</td>
</tr>
@endforeach
</table>
</div>
</section>
@endsection