@extends('layouts.site') @section('content') @php /**/ [ $name, $email, $phone, $whatsapp, $google_map_url, $addresss, $facebook, $instagram, $twitter, $youtube, $tiktok, ] = getGeneralSettings(); @endphp @php $lang = app()->getLocale(); $name = 'name_' . $lang; $details = 'details_' . $lang; $description = 'description_' . $lang; $question = 'question_' . $lang; $answer = 'answer_' . $lang; $img_alt = 'img_alt_' . $lang; $slug = 'slug_' . app()->getLocale(); // $slug = 'slug_en'; @endphp @php $originalUrl = $service->vedio_url; if (strpos($originalUrl, 'youtube.com/shorts/') !== false) { preg_match('/shorts\/([^?]+)/', $originalUrl, $matches); $videoId = $matches[1] ?? ''; $videoUrl = "https://www.youtube.com/watch?v=" . $videoId; } else { $videoUrl = $originalUrl; } @endphp

{{ $service->$name }}

{!! html_entity_decode($service->$details) !!}

@if (isset($service->upload_file) && !empty($service->upload_file)) @endif
@stop @section('scripts') @stop