@extends('frontend.layout') @section('pageHeading') @if (!empty($listing)) {{ $listing->listing_content->first()->title }} @endif @endsection @section('metaKeywords') @if (!empty($listing)) {{ $listing->listing_content->first()->meta_keyword }} @endif @endsection @section('metaDescription') @if (!empty($listing)) {{ $listing->listing_content->first()->meta_description }} @endif @endsection @section('sharetitle') @if (!empty($listing)) {{ $listing->listing_content->first()->title }} @endif @endsection @section('shareimage') @if (!empty($listing)) {{ asset('assets/img/listing/' . $listing->feature_image) }} @endif @endsection @section('content') @php if ($listing->vendor_id == 0) { $permissions = [ 'Listing Enquiry Form', 'Video', 'Amenities', 'Feature', 'Social Links', 'FAQ', 'Business Hours', 'Products', 'Product Enquiry Form', 'Messenger', 'WhatsApp', 'Telegram', 'Tawk.To', ]; } else { $vendorId = $listing->vendor_id; $current_package = App\Http\Helpers\VendorPermissionHelper::packagePermission($vendorId); $permissions = $current_package->features; if (!empty($current_package->features)) { $permissions = json_decode($permissions, true); } $additionalFeatureLimit = packageTotalAdditionalSpecification($vendorId); $SocialLinkLimit = packageTotalSocialLink($vendorId); } @endphp

{{ $listing->listing_content->first()->title }}

  • @php $categorySlug = App\Models\ListingCategory::findorfail( $listing->listing_content->first()->category_id, ); @endphp {{ $listing->listing_content->first()->category->name }}
  • @php if ($listing->listing_content->first()->city_id) { $city = App\Models\Location\City::Where( 'id', $listing->listing_content->first()->city_id, )->first()->name; } if ($listing->listing_content->first()->state_id) { $State = App\Models\Location\State::Where( 'id', $listing->listing_content->first()->state_id, )->first()->name; } if ($listing->listing_content->first()->country_id) { $country = App\Models\Location\Country::Where( 'id', $listing->listing_content->first()->country_id, )->first()->name; } @endphp {{ @$city }} @if (@$State) ,{{ $State }} @endif @if (@$country) ,{{ @$country }} @endif
  • ({{ number_format($listing->average_rating, 2) }}) {{ $numOfReview }} {{ __('Reviews') }}
  • {{ __('From') }} :{{ symbolPrice($listing->min_price) }} - {{ symbolPrice($listing->max_price) }}
  • {{ __('Share') }}
  • @if (Auth::guard('web')->check()) @php $user_id = Auth::guard('web')->user()->id; $checkWishList = checkWishList($listing->id, $user_id); @endphp @else @php $checkWishList = false; @endphp @endif {{ $checkWishList == false ? __('Save') : __('Saved') }}

{{ __('Description') }}

{!! optional($listing->listing_content->first())->description !!}
@if (is_array($permissions) && in_array('Amenities', $permissions))

{{ __('Amenities') }}

    @php $aminities = App\Models\Aminite::where('language_id', $language->id)->get(); $hasaminitie = json_decode($listing->listing_content->first()->aminities); @endphp @foreach ($aminities as $aminitie) @if (in_array($aminitie->id, $hasaminitie))
  • {{ $aminitie->title }}
  • @endif @endforeach
@endif @if (is_array($permissions) && in_array('Video', $permissions)) @if ($listing->video_url) @endif @endif @if (!empty(showAd(3)))
{!! showAd(3) !!}
@endif
@if (is_array($permissions) && in_array('Feature', $permissions))
@if (count($listing_features) == 0)

{{ __('NO FEATURE FOUND') . '!' }}

@else @foreach ($listing_features as $listing_feature) @endforeach @endif @if (!empty(showAd(3)))
{!! showAd(3) !!}
@endif
@endif
@if (count($product_contents) == 0)

{{ __('NO PRODUCT FOUND') . '!' }}

@else
@foreach ($product_contents as $product)
Product
{{ $product->title }}
{{ __('Price') }}
${{ $product->current_price }} @if ($product->previous_price) ${{ $product->previous_price }} @endif
@endforeach
@endif
@if (!empty(showAd(3)))
{!! showAd(3) !!}
@endif
@if ($numOfReview > 0)

{{ __('Customer Review') }}

    @foreach ($reviews as $review)
  • @if (empty($review->user->image)) Person Image @else Person Image @endif
    {{ $review->user->username }}
    {{ date('dS F Y, h.i A', strtotime($review->updated_at)) }}

    {{ $review->review }}

  • @endforeach
@else

{{ __('NO REVIEW FOUND') . '!' }}

@endif @auth('web')

{{ __('Write a Review') }}

@csrf
@endauth @guest('web') @endguest @if (!empty(showAd(3)))
{!! showAd(3) !!}
@endif
@if (count($faqs) != 0)

{{ __('Frequently Asked Questions') }}

@endif
@if (count($faqs) == 0)

{{ __('NO FAQ FOUND') . '!' }}

@else @foreach ($faqs as $faq)

{{ $faq->answer }}

@endforeach @endif
@if (!empty(showAd(3)))
{!! showAd(3) !!}
@endif
@include('frontend.listing.share') @include('frontend.listing.product-details', $product_contents); @endsection @section('script')
@if (is_array($permissions) && in_array('WhatsApp', $permissions)) @if ($listing->whatsapp_status == 1) @endif @endif {{-- Telegram --}} @if (is_array($permissions) && in_array('Telegram', $permissions)) @if ($listing->telegram_status == 1) Image @endif @endif {{-- Messenger --}} @if (is_array($permissions) && in_array('Messenger', $permissions)) @if ($listing->messenger_status == 1) Image @endif @endif @if (is_array($permissions) && in_array('Tawk.To', $permissions)) @if ($listing->tawkto_status == 1) @endif @endif
@endsection