@php use App\Models\User\UserAuth; use App\Libraries\ShipRocket; use App\Models\Admin\Settings; $whatsapp = Settings::get('whats_app_number'); @endphp @extends('layouts.frontlayout') @section('content')
@include('frontend.products.single.slider',[ 'multi_image' => isset($multi_image) && $multi_image ? $multi_image : [] ])
@if(isset($product->subCategories) && count($product->subCategories) > 0 ) @php $categories = isset($product->categories) && $product->categories ? current($product->categories) : []; $categories = isset($categories) && $categories ? current($categories) : []; $subCategories = isset($product->subCategories) && $product->subCategories ? $product->subCategories->toArray() : []; @endphp
    @if(isset($categories['title']) && $categories['title'])
  • {{isset($categories['title']) && $categories['title'] ? $categories['title'] : ''}}
  • @endif @foreach($subCategories as $c)
  • {{ isset($c) && isset($c['title']) && $c['title'] ? ucwords($c['title']) : ''}}
  • @endforeach
@endif

{{ isset($product->title) && $product->title ? $product->title : '' }} {{ isset($product->product_size) && $product->product_size ? ' - '.$product->product_size : '' }}

@if(isset($product->tax_note) && $product->tax_note)
Image
{{isset($product->tax_note) && $product->tax_note ? $product->tax_note : ''}}
@endif
  • Image
    {{ isset($averageRating) && $averageRating ? round($averageRating,1,0) : 0 }}
    {{ isset($totalReview) && $totalReview ? $totalReview : 0 }} Reviews
  • Cash-on Delivery
  • Image
    @if(isset($product->stock) && $product->stock == 'in_stock') Only {{isset($product->product_qty) && $product->product_qty ? $product->product_qty : 0}} in stock @else Only 0 in stock @endif
@if(isset($product->product_tags) && $product->product_tags) @php $product->product_tags = explode(',',$product->product_tags); @endphp @if(!empty($product->product_tags) && count($product->product_tags)>0)
Tags
    @foreach($product->product_tags as $vTag)
  • {{ $vTag }}
  • @endforeach
@endif @endif
@if(isset($productPrices['price_after_discount']) && $productPrices['price_after_discount'] > 0.00)
{{ isset($productPrices['price_after_discount']) && $productPrices['price_after_discount'] ? $settingsData['currency_symbol'].''.round($productPrices['price_after_discount'], 2) : '' }}
@else
{{ isset($productPrices['discount']) && $productPrices['discount'] ? $settingsData['currency_symbol'].''.priceFormatBake($productPrices['discount']) : '' }}
@endif @if(isset($productPrices['price_after_discount']) && $productPrices['price_after_discount'] > 0.00)
@if(isset($productPrices['discount_type']) && $productPrices['discount_type'] === 'price') {{ isset($productPrices['discount']) && $productPrices['discount'] ? $settingsData['currency_symbol'].''.round($productPrices['discount'], 2).' OFF' : '' }} @elseif(isset($productPrices['discount_type']) && $productPrices['discount_type'] === 'percent') {{ isset($productPrices['discount']) && $productPrices['discount'] ? round($productPrices['discount'], 2).(isset($productPrices['discount_type']) && $productPrices['discount_type'] === 'percent' ? ' % ' : '').' OFF' : '' }} @endif
@endif
@if(isset($productPrices['price_after_discount']) && $productPrices['price_after_discount'] > 0.00)
{{ isset($productPrices['price']) && $productPrices['price'] ? $settingsData['currency_symbol'].''.round($productPrices['price'], 2) : '' }}
@endif
@if(isset($product) && isset($product['product_variant']) && !empty($product['product_variant']) && count($product['product_variant'])) @php $product_variant = $product['product_variant']; @endphp @endif @if(isset($parentProducts) && !empty($parentProducts) && count($parentProducts)>0)
Color :
{{ isset($product->product_color) && $product->product_color ? $product->product_color : '' }}
@foreach($parentProducts as $k => $v)
id ? 'checked' : '' }}>
@endforeach
@endif @php $product['thread_option'] = isset($product['thread_option']) && $product['thread_option'] ? json_decode($product['thread_option'], true) : []; $categoryThread = isset($product->categories) && $product->categories ? current(current($product->categories)) : ''; @endphp @if(isset($categoryThread) && isset($categoryThread['is_thread_option']) && $categoryThread['is_thread_option'] == 'yes') @if(isset($product['thread_option']) && $product['thread_option'] && count($product['thread_option']) > 0 ) @php $currentThread = current($product['thread_option']); @endphp @if(isset($currentThread) && isset($currentThread['thread_title']) && $currentThread['thread_title'])
Thread Options
@foreach($product['thread_option'] as $k => $data) @if(isset($data['thread_title']) && $data['thread_title'])
@endif @endforeach
@endif @endif @endif @if(isset($product['variant']) && $product['variant'] && count($product['variant']) > 0)
@foreach($product['variant'] as $sK => $sV)
product_size) && $product->product_size ? ($product->product_size == $sV->product_size ? "checked" : "") : ($sK == 0 ? 'checked' : '') }} >
@endforeach
@endif
Check Availability
Need More Help?
@if(isset($product->product_qty) && $product->product_qty == 0 || $product->stock == 'out_stock') @else @endif
@if(isset($product->product_qty) && $product->product_qty > 0 && $product->stock == 'in_stock')
{{ csrf_field() }} @if(isset($product['stock']) && $product['stock'] == 'out_stock' ) Add to Cart @else @endif
{{ csrf_field() }}
@else @if(UserAuth::isLogin())
{{ csrf_field() }}
@else @endif @endif
@if(isset($userData) && !empty($userData)) @else @endif
@include('frontend.products.single.details')
@include('frontend.products.single.review',[ 'product' => $product, 'userData' => $userData, 'ratings' => $ratings, 'averageRating' => $averageRating, 'totalReview' => $totalReview, 'userReview' => $userReview, 'ratingsPerCentage' => $ratingsPerCentage, ]) @if(isset($relatedProducts) && $relatedProducts && count($relatedProducts) > 0) @include('frontend.products.relatedProducts.index',[ 'settingsData' => $settingsData, 'userData' => $userData, 'relatedProducts' => $relatedProducts ]) @endif @if(isset($boughtProducts) && $boughtProducts && count($boughtProducts) > 0) @include('frontend.products.newArrivals.index',[ 'settingsData' => $settingsData, 'userData' => $userData, 'boughtProducts' => $boughtProducts ]) @endif @include('frontend.products.single.sizeChatModal',[ 'product' => $product ]) @include('frontend.products.single.writeReview') @include('frontend.products.single.notifyForm') @endsection