{{-- Вьюха: детальная страница услуги Маршрут: GET /services/{slug} Контроллер: ServiceController::show() Переменные: $service — модель Service Теги — ID из dict_values (countries + service_tags). --}} @extends('layouts.app') @section('title', $service->title . ' — Ishiyama') @section('content') {{-- Заголовок --}}
Наши услуги

@if($service->icon) {{ $service->icon }} @endif {{ mb_strtoupper($service->title) }}

{{-- Основной контент --}}
@if($service->excerpt)

{{ $service->excerpt }}

@endif @php $tagIds = array_map('intval', $service->tags ?? []); $tags = !empty($tagIds) ? \App\Models\DictValue::whereIn('id', $tagIds)->get(['id','value','flag'])->keyBy('id') : collect(); @endphp @if($tags->isNotEmpty())
@foreach($tagIds as $tid) @if($tags->has($tid)) {{ $tags[$tid]->flag }} {{ $tags[$tid]->value }} @endif @endforeach
@endif @if($service->description)
{!! $service->description !!}
@endif
@endsection