@extends('layouts.site') @section('meta_title') {{ locale_field($service, 'name') }} — {{ __('site.nav_services') }} @endsection @section('title') {{ locale_field($service, 'name') }} @endsection @push('meta') @if (filled($service->meta_keywords)) @endif @endpush @section('content') @php $locale = app()->getLocale(); $card = \App\Support\Cards\ServiceCardPresenter::from($service); $hasOverview = filled(locale_field($service, 'description')); $deliverables = collect($service->deliverables ?? [])->filter(fn ($i) => $i !== null && $i !== ''); $hasDeliverables = $deliverables->isNotEmpty(); $brands = collect($supportedBrands ?? [])->filter()->values(); $hasBrands = $brands->isNotEmpty(); $detailTabs = collect([ $hasOverview ? ['key' => 'overview', 'label' => __('site.detail_tab_overview')] : null, $hasDeliverables ? ['key' => 'deliverables', 'label' => __('site.deliverables')] : null, $hasBrands ? ['key' => 'brands', 'label' => __('site.detail_tab_brands')] : null, ])->filter()->values()->all(); $initialTab = $detailTabs[0]['key'] ?? null; @endphp
@if ($service->featured) {{ __('site.featured') }} @endif @if ($service->category) {{ locale_category_name($service->category) }} @endif

{{ locale_field($service, 'name') }}

@if (locale_field($service, 'summary'))

{{ locale_field($service, 'summary') }}

@endif
@feature('repair_services') @endfeature {{ __('site.cta_whatsapp') }}
@if ($service->lead_time_days !== null)
{{ __('site.delivery_days') }}
{{ $service->lead_time_days }}
@endif @if ($service->warranty_days !== null)
{{ __('site.warranty_days') }}
{{ $service->warranty_days }}
@endif @if ($formatted = site_format_money($service->currency, $service->price_estimate_from))
{{ __('site.price_from') }}
{{ $formatted }}
@endif
@if ($detailTabs !== []) @if ($hasOverview)
{!! nl2br(e(locale_field($service, 'description'))) !!}
@endif @if ($hasDeliverables)
    @foreach ($deliverables as $item)
  • {{ is_array($item) ? ($item['text'] ?? $item['title'] ?? '') : $item }}
  • @endforeach
@endif @if ($hasBrands)
    @foreach ($brands as $brand)
  • {{ $brand }}
  • @endforeach
@endif
@endif
@include('partials.site.related-rail', ['rail' => $relatedRail ?? null])
@endsection