@extends('front.layout.app') @section('title') @if(Mcamara\LaravelLocalization\Facades\LaravelLocalization::getCurrentLocale() == 'ar') الصفحة الرئيسية @else Main Page @endif @stop @section('slider')
@stop @section('content')
@foreach (App\Models\Partner::get() as $partner)
@if(Mcamara\LaravelLocalization\Facades\LaravelLocalization::getCurrentLocale() == 'ar'){{ $partner->name_ar }}@else{{ $partner->name }}@endif
@endforeach

{{ __('Best 3D Printing Serevices') }}

{{ __('what we offer') }}

@foreach (App\Models\Service::get() as $service)

@if(Mcamara\LaravelLocalization\Facades\LaravelLocalization::getCurrentLocale() == 'ar') {{ $service->name_ar }} @else {{ $service->name }} @endif

@if(Mcamara\LaravelLocalization\Facades\LaravelLocalization::getCurrentLocale() == 'ar') {{ $service->description_ar }} @else {{ $service->description }} @endif

{{ __('Discover Details') }}
@endforeach

{{ __('Best 3dprinting product') }}

{{ __('Our Last Products') }}

@foreach (App\Models\SubCategory::latest()->take(10)->get() as $sub)
@foreach ($sub->products()->latest()->take(8)->get() as $product)
@if(Mcamara\LaravelLocalization\Facades\LaravelLocalization::getCurrentLocale() == 'ar') {{ $product->name_ar }} @else {{ $product->name_en }} @endif
@endforeach
@endforeach

{{ __('We are proud of you') }}

{{ __('Testimonials') }}

@foreach(App\Models\ClientOpinion::get() as $opinion)

@if(Mcamara\LaravelLocalization\Facades\LaravelLocalization::getCurrentLocale() == 'ar') {{ Str::limit($opinion->message_ar,250) }} @else {{ Str::limit($opinion->message,250) }} @endif

@if(Mcamara\LaravelLocalization\Facades\LaravelLocalization::getCurrentLocale() == 'ar') {{ $opinion->name_ar }} @else {{ $opinion->name }} @endif

@if(Mcamara\LaravelLocalization\Facades\LaravelLocalization::getCurrentLocale() == 'ar') {{ $opinion->client_position_ar }} @else {{ $opinion->client_position }} @endif

@endforeach

{{ __('We are proud of you') }}

@if(Mcamara\LaravelLocalization\Facades\LaravelLocalization::getCurrentLocale() == 'ar') {{ App\Models\ServiceText::first()->title2_ar ?? __('Our custumer') }} @else {{ App\Models\ServiceText::first()->title2 ?? __('Our custumer') }} @endif

@if(Mcamara\LaravelLocalization\Facades\LaravelLocalization::getCurrentLocale() == 'ar') {{ App\Models\ServiceText::first()->description2_ar ?? __('Our custumer') }} @else {{ App\Models\ServiceText::first()->description2 ?? __('Our custumer') }} @endif

@foreach (App\Models\Client::get() as $client)
@if(Mcamara\LaravelLocalization\Facades\LaravelLocalization::getCurrentLocale() == 'ar') {{ $client->name_ar }} @else {{ $client->name }} @endif
@endforeach
@stop