@once @push('head') {{ $service->meta_title ?? $service->title }} @endpush {{-- ================= SCHEMA FROM DB ================= --}} @foreach ([$service->schema_markup, $service->service_schema, $service->faq_schema, $service->org_schema, $service->webpage_schema, $service->article_schema, $service->breadcrumb_schema, $service->localbusiness_schema] as $schema) @if (!empty($schema)) @push('schema') {!! $schema !!} @endpush @endif @endforeach @endonce

{{ $service->title }}

@if (!empty($service->hero_video)) @php $path = $service->hero_video; // local uploaded file ko full URL banao if (!\Illuminate\Support\Str::startsWith($path, ['http://', 'https://'])) { $src = url('/' . ltrim($path, '/')); } else { $src = $path; // external full URL } // extension nikaalo (query string ignore karke) $ext = strtolower(pathinfo(parse_url($src, PHP_URL_PATH), PATHINFO_EXTENSION)); @endphp
@if (in_array($ext, ['mp4', 'webm', 'ogg'])) @else Hero Image @endif
@endif
@if (!empty($service->h1))

{!! nl2br(e($service->h1)) !!}

@endif
@if (!empty($service->h2))

{{ $service->h2 }}

@endif

{!! nl2br(e($service->description)) !!}

@if ($service->works->count())
@php $words = explode(' ', $service->work_section_header); @endphp

{{ implode(' ', array_slice($words, 0, 3)) }}
{{ implode(' ', array_slice($words, 3)) }}

{{-- ================= 2x2 GRID ================= --}}
@foreach ($service->works as $work) @endforeach
@endif