@extends('frontend.layouts.app') @section('meta') @endsection @section('content') @if($customer_product->photos != null) @php $photos = explode(',',$customer_product->photos); @endphp @foreach ($photos as $key => $photo) @endforeach @foreach ($photos as $key => $photo) @endforeach @endif {{ $customer_product->getTranslation('name') }} {{ translate('Price')}}: {{ single_price($customer_product->unit_price) }} @if($customer_product->unit != null || $customer_product->unit != '') /{{ $customer_product->getTranslation('unit') }} @endif {{ $customer_product->user->name }} {{ $customer_product->location }} {{ str_replace(substr($customer_product->user->phone,3),'XXXXXXXX', $customer_product->user->phone) }} {{ $customer_product->user->phone }} {{ translate('Click to show phone number') }} {{ translate('Share')}}: {{ translate('Description')}} @if($customer_product->video_link != null) {{ translate('Video')}} @endif @if($customer_product->pdf != null) {{ translate('Downloads')}} @endif getTranslation('description'); ?> @if ($customer_product->video_provider == 'youtube' && isset(explode('=', $customer_product->video_link)[1])) @elseif ($customer_product->video_provider == 'dailymotion' && isset(explode('video/', $customer_product->video_link)[1])) @elseif ($customer_product->video_provider == 'vimeo' && isset(explode('vimeo.com/', $customer_product->video_link)[1])) @endif {{ translate('Download') }} {{ translate('Other Ads of') }} {{$customer_product->category->getTranslation('name') }} {{ translate('View More') }} @php $products = \App\Models\CustomerProduct::where('category_id', $customer_product->category_id)->where('id', '!=', $customer_product->id)->where('status', '1')->where('published', '1')->limit(10)->get(); @endphp @foreach ($products as $key => $product) @if($product->conditon == 'new') {{translate('new')}} @elseif($product->conditon == 'used') {{translate('Used')}} @endif {{ single_price($product->unit_price) }} {{ $product->getTranslation('name') }} @endforeach @endsection @section('script') @endsection
{{ translate('Click to show phone number') }}