@extends('client.layout.master') @php use App\Models\Translation; $locale = app()->getLocale(); @endphp @section('title', Translation::getValue('services_title', $locale)) @section('content') {{ Translation::getValue('page_services_title', $locale) }} {{ Translation::getValue('breadcrumb_home', $locale) }} {{ Translation::getValue('breadcrumb_services', $locale) }} @if(!$services) {{-- Heç nə göstərmə, səhifə boş açılsın --}} @php $icons = []; @endphp @else @php $locale = app()->getLocale(); $icons = $services->icons ?? []; // artıq array-dir $list = $services->section2_list ?? []; $bg = $services->section2_background ? asset($services->section2_background) : 'images/background/34.jpg'; $skills = $services->section3_skills ?? []; $bg3 = $services->section3_background ? asset($services->section3_background) : 'images/background/34.jpg'; @endphp @endif @if($services) {{ $services->{"title_$locale"} }} {{ $services->{"description_$locale"} }} @endif @foreach($icons as $icon) @if(!empty($icon["icon_title_$locale"])) {{ $icon["icon_title_$locale"] }} @endif @endforeach {{ $services->{"section2_title_$locale"} }} {{ $services->{"section2_description_$locale"} }} @foreach($list as $item) {{ $item["text_$locale"] ?? '' }} @endforeach @if($services->{"section2_button_text_$locale"}) {{ $services->{"section2_button_text_$locale"} }} @endif {{ $services->{"section3_title_$locale"} }} {{ $services->{"section3_description_$locale"} }} @foreach($skills as $skill) % {{ $skill["title_$locale"] ?? '' }} @endforeach {{ Translation::getValue('contact_title', $locale) }} {{ Translation::getValue('contact_description', $locale) }} @csrf @if(session('success')) {{ session('success') }} @endif @if(session('error')) {{ session('error') }} @endif {{-- Full Name --}} {{ Translation::getValue('contact_name', $locale) }} @error('username') {{ $message }} @enderror {{-- Entity Type --}} {{ Translation::getValue('contact_entity_type', $locale) }} {{ Translation::getValue('contact_select', $locale) }} {{ __('entity.company') }} {{ __('entity.individual') }} {{ __('entity.legal_entity') }} @error('entity_type') {{ $message }} @enderror {{-- Email --}} {{ Translation::getValue('contact_email', $locale) }} @error('email') {{ $message }} @enderror {{-- Phone --}} {{ Translation::getValue('contact_phone', $locale) }} @error('phone') {{ $message }} @enderror {{-- Message --}} {{ Translation::getValue('contact_message', $locale) }} @error('message') {{ $message }} @enderror {{-- Submit --}} {{ Translation::getValue('contact_button_text', $locale) }} @if(session('success')) {{ session('success') }} @endif @if(session('error')) {{ session('error') }} @endif @endsection