|
1 | | -@php |
2 | | - $locale = app()->getLocale(); |
3 | | -@endphp |
4 | | - |
5 | 1 | <x-app-layout :page="$page"> |
6 | 2 | <x-h1 :title="__('components.ai_llm.title')"/> |
7 | 3 | <p class="text-gray-800">{{ __('components.ai_llm.intro') }}</p> |
8 | 4 |
|
9 | | - @foreach ($groups as $category => $models) |
10 | | - @php |
11 | | - $categoryEnum = \App\Enums\AiModelCategoryEnum::from($category); |
12 | | - @endphp |
13 | | - <x-ai-llm.card> |
14 | | - <x-h2 :title="$categoryEnum->title($locale)"/> |
15 | | - <p class="text-gray-600 mb-4">{{ $categoryEnum->description($locale) }}</p> |
16 | | - |
17 | | - @foreach ($models as $model) |
18 | | - <x-ai-llm.model-row :model="$model"/> |
19 | | - @endforeach |
20 | | - </x-ai-llm.card> |
| 5 | + @foreach ($groups as $group) |
| 6 | + <x-section> |
| 7 | + <x-ai-llm.card> |
| 8 | + <x-h2 :title="$group['category']->title()"/> |
| 9 | + <p class="text-gray-600 mb-4">{{ $group['category']->description() }}</p> |
| 10 | + |
| 11 | + @foreach ($group['models'] as $model) |
| 12 | + <x-ai-llm.model-row :model="$model"/> |
| 13 | + @endforeach |
| 14 | + </x-ai-llm.card> |
| 15 | + </x-section> |
21 | 16 | @endforeach |
22 | 17 |
|
23 | | - <div class="mt-8"> |
| 18 | + <x-section> |
24 | 19 | <x-h2 :title="__('components.ai_llm.infrastructure.title')"/> |
25 | 20 | <p class="text-gray-600 mb-4">{{ __('components.ai_llm.infrastructure.intro') }}</p> |
26 | 21 |
|
|
46 | 41 | <x-ai-llm.infra-row |
47 | 42 | :label="__('components.ai_llm.infrastructure.items.power.label')" |
48 | 43 | :text="__('components.ai_llm.infrastructure.items.power.text')"/> |
49 | | - </div> |
50 | | - |
51 | | - <x-ai-llm.card id="archiv"> |
52 | | - <x-h2 :title="__('components.ai_llm.archive.title')"/> |
53 | | - <p class="text-gray-600 mb-4">{{ __('components.ai_llm.archive.intro') }}</p> |
54 | | - |
55 | | - @foreach ($archive as $category => $models) |
56 | | - @php |
57 | | - $categoryEnum = \App\Enums\AiModelCategoryEnum::from($category); |
58 | | - @endphp |
59 | | - <div class="{{ $loop->first ? '' : 'mt-8' }}"> |
60 | | - <x-h3 :title="$categoryEnum->title($locale)"/> |
61 | | - <x-ai-llm.archive-table :models="$models"/> |
62 | | - </div> |
63 | | - @endforeach |
64 | | - </x-ai-llm.card> |
| 44 | + </x-section> |
| 45 | + |
| 46 | + <x-section> |
| 47 | + <x-ai-llm.card id="archiv"> |
| 48 | + <x-h2 :title="__('components.ai_llm.archive.title')"/> |
| 49 | + <p class="text-gray-600 mb-4">{{ __('components.ai_llm.archive.intro') }}</p> |
| 50 | + |
| 51 | + @foreach ($archive as $group) |
| 52 | + <div class="{{ $loop->first ? '' : 'mt-8' }}"> |
| 53 | + <x-h3 :title="$group['category']->title()"/> |
| 54 | + <x-ai-llm.archive-table :models="$group['models']"/> |
| 55 | + </div> |
| 56 | + @endforeach |
| 57 | + </x-ai-llm.card> |
| 58 | + </x-section> |
65 | 59 | </x-app-layout> |
0 commit comments