@extends('frontend::layouts.master')
@section('content')
{{ $data['service']['list'][0]['desc'] ?? '' }}
@php
$heroSlides = [];
foreach ($data['banners'] ?? [] as $banner) {
$type = $banner['type'] ?? 'image';
if ($type === 'youtube') {
$ytId = $banner['src'] ?? '';
if ($ytId === '') {
continue;
}
$heroSlides[] = [
'type' => 'youtube',
'src' => 'https://www.youtube-nocookie.com/embed/' . $ytId . '?rel=0&modestbranding=1',
'title' => $banner['name'] ?? 'YouTube video',
];
} elseif ($type === 'video') {
$cover = $banner['cover'] ?? '';
if ($cover !== '') {
$heroSlides[] = [
'type' => 'image',
'src' => check_file($cover),
'alt' => $banner['name'] ?? '',
];
}
} else {
$src = $banner['src'] ?? '';
if ($src === '') {
continue;
}
$heroSlides[] = [
'type' => 'image',
'src' => check_file($src),
'alt' => $banner['name'] ?? '',
];
}
}
@endphp
@if (!empty($heroSlides))
@endif
@include('frontend::pages.our-services.partials.follow-us')
{!! $data['social']['page']['detail'] !!}
@include('frontend::components.ourwork-carousel', [
'title' => $data['ourwork']['page']['name'] ?? 'Our Work',
'relatedWorks' => $data['ourwork'] ?? null,
'viewAllUrl' => $data['ourwork']['page']['url'] ?? '#',
'viewAllText' => __('field.view_all'),
])
@include('frontend::components.logos-slide')
@endsection