@extends('layouts.master') @section('title', isset($service->contetn) ? $service->contetn : __('messages.SERVICES')) @push('css') @endpush @section('content')

{{ $service->contetn }}

{!! $service->descmain !!}
@if ($service->service_image_main) {{ $service->service_name }} @endif
@foreach (json_decode($service->sections) as $index => $section) @php $hasContent = app()->getLocale() == 'ar' ? !empty($section->service_content_ar) : !empty($section->service_content_en); @endphp @if ($index % 2 == 0)
@if ($hasContent)
{!! app()->getLocale() == 'ar' ? $section->service_content_ar : $section->service_content_en !!}
Section Image
@else
Section Image
@endif
@else
@if ($hasContent)
Section Image
{!! app()->getLocale() == 'ar' ? $section->service_content_ar : $section->service_content_en !!}
@else
Section Image
@endif
@endif @endforeach
@include('layouts.cta') @endsection