@extends('site.layouts.master') @section('seoTags') @seoTags() @endsection @php $seo = SEO\Models\Page::where('path', URL::full())->first(); $lastSegment = request()->query('address'); if ( strpos($lastSegment, 'ا') > 0 || strpos($lastSegment, 'ب') > 0 || strpos($lastSegment, 'س') > 0 || strpos($lastSegment, 'ج') > 0 || strpos($lastSegment, 'ي') > 0 || strpos($lastSegment, 'alayjar') > 0 || strpos($lastSegment, 'llbyaa') > 0 ) { app()->setLocale('ar'); } if (LaravelLocalization::getCurrentLocale() == 'ar') { $Ttype = 'طلبك'; $Ttypea = 'طلبات'; } else { $Ttype = 'your request'; $Ttypea = 'requests'; } LaravelLocalization::getCurrentLocale() == 'ar' ? ($Tsubtype = 'العقارات') : ($Tsubtype = 'requests'); $Tcompound = null; $Tlocation = null; if (LaravelLocalization::getCurrentLocale() == 'ar') { $Tend = ", شاهد $Ttype الان"; } else { $Tend = ", view $Ttype now"; } if (LaravelLocalization::getCurrentLocale() == 'ar') { $Tmid = ", يمكنك عرض $Tsubtype و التواصل مع احد خبراء ريماكس المهاجر"; } else { $Tsubtype != 'properties' ? ($newTsubtype = 'the ' . $Tsubtype) : ($newTsubtype = $Tsubtype); $Tmid = ", you can view $newTsubtype and contact with one of remax elmohager agents"; } if (LaravelLocalization::getCurrentLocale() == 'ar') { $Tstart = "نقدم لك مجموعة من افضل $Tsubtype"; } else { $Tsubtype != 'requests' ? ($nTsubtype = $Tsubtype . 's') : ($nTsubtype = $Tsubtype); $Tstart = "we present to you a collection of best $nTsubtype"; } if ($Tcompound != null || $Tlocation != null) { $in = __('site.In'); } else { $in = null; } $desArr = [$Tstart, $in, $Tcompound, $Tlocation, $Tmid, $Tend]; $description = ''; foreach ($desArr as $des) { if ($des != null) { if (end($desArr) == $des) { $description .= $des; } else { $description .= $des . ' '; } } } if (LaravelLocalization::getCurrentLocale() == 'en') { $compoundTitle = 'Compounds'; } if (LaravelLocalization::getCurrentLocale() == 'ar') { $compoundTitle = 'كمبوندات'; } $seoRow = App\SeoPages::where('path', url()->current())->first(); if ($seoRow == null) { $seoRow = ''; } @endphp @section('metatags') @if (!empty($seoRow)) @endif @endsection @if (empty($seoRow->title)) @section('title')