@include('Website.Includes.header', ['meta_Details' => $meta_details]) @php use Illuminate\Support\Facades\Auth; use App\General\ProductClass; use App\General\DiscountClass; $logged_in_user = Auth::user(); @endphp

{{ $product->title }}

@if (isset($brandlogo->logo_image) && !empty($brandlogo->logo_image)) @endif

Home - @php $categoryTitles = ProductClass::getCategoryTitlesinfo($categories, $product->category_id); $chilcateogories = ProductClass::getChildCategoryTitles($childcats, $product->child_category); $grandchildcategories = ProductClass::getgrandCategoryTitles($grandcats, $product->grand_child_category); @endphp @foreach ($categoryTitles as $category) {{ $category['title'] }} @endforeach @foreach ($chilcateogories as $chilcateogorie) - {{ $chilcateogorie['child_title'] }} @endforeach @foreach ($grandchildcategories as $grandchildcategorie) - {{ $grandchildcategorie['grand_title'] }} @endforeach - {{ $product->title }}

@php $imagePaths = explode(',', $product->gallery_media); @endphp @foreach ($imagePaths as $imagePath)
@endforeach
@php $discountedPrice = 0; if (isset($disocuntonproduct)) { $currentDate = time(); $fromDate = strtotime($disocuntonproduct->from_date); $toDate = strtotime($disocuntonproduct->end_date); if ($disocuntonproduct->active == 1) { if ($disocuntonproduct->limited == 1) { if ($currentDate >= $fromDate && $currentDate <= $toDate) { $discountValue = $disocuntonproduct->discount_value; $actualPrice = ProductClass::getOptionValue('_price', $product->productMeta); if ($disocuntonproduct->discount_type == 1) { $discountedPrice = $actualPrice - $discountValue; } else { $discountAmount = ($discountValue / 100) * $actualPrice; $discountedPrice = $actualPrice - $discountAmount; } } else { $discountedPrice = ProductClass::getOptionValue('_price', $product->productMeta); } } else { $discountValue = $disocuntonproduct->discount_value; $actualPrice = ProductClass::getOptionValue('_price', $product->productMeta); if ($disocuntonproduct->discount_type == 1) { $discountedPrice = $actualPrice - $discountValue; } else { $discountAmount = ($discountValue / 100) * $actualPrice; $discountedPrice = $actualPrice - $discountAmount; } } } else { $discountedPrice = ProductClass::getOptionValue('_price', $product->productMeta); } } elseif ($collectionDiscount) { $currentDate = time(); $fromDate = strtotime($collectionDiscount->from_date); $toDate = strtotime($collectionDiscount->end_date); if ($collectionDiscount->active == 1) { if ($collectionDiscount->limited == 1) { if ($currentDate >= $fromDate && $currentDate <= $toDate) { $discountValue = $collectionDiscount->discount_value; $actualPrice = ProductClass::getOptionValue('_price', $product->productMeta); if ($collectionDiscount->discount_type == 1) { $discountedPrice = $actualPrice - $discountValue; } else { $discountAmount = ($discountValue / 100) * $actualPrice; $discountedPrice = $actualPrice - $discountAmount; } } else { $discountedPrice = ProductClass::getOptionValue('_price', $product->productMeta); } } else { $discountValue = $collectionDiscount->discount_value; $actualPrice = ProductClass::getOptionValue('_price', $product->productMeta); if ($collectionDiscount->discount_type == 1) { $discountedPrice = $actualPrice - $discountValue; } else { $discountAmount = ($discountValue / 100) * $actualPrice; $discountedPrice = $actualPrice - $discountAmount; } } } else { $discountedPrice = ProductClass::getOptionValue('_price', $product->productMeta); } } else { $discountedPrice = ProductClass::getOptionValue('_price', $product->productMeta); } @endphp @if (isset($disocuntonproduct) || (isset($collectionDiscount) && $discountedPrice !== ProductClass::getOptionValue('_price', $product->productMeta))) @if ( ($disocuntonproduct && $disocuntonproduct->limited == 1) || ($collectionDiscount && $collectionDiscount->limited == 1)) @if ($currentDate >= $fromDate && $currentDate <= $toDate) @if ($disocuntonproduct && $disocuntonproduct->active == 1)

{{ $disocuntonproduct->title ?? $collectionDiscount->title }}

${{ ProductClass::getOptionValue('_price', $product->productMeta) }}

@elseif ($collectionDiscount && $collectionDiscount->active == 1)

{{ $disocuntonproduct->title ?? $collectionDiscount->title }}

${{ ProductClass::getOptionValue('_price', $product->productMeta) }}

@else
@if ($product->productMeta->where('option', '_gst')->first()->value ?? 0)

GST Included

@endif

@if (isset($discountedPrice)) ${{ $discountedPrice }} @else ${{ ProductClass::getOptionValue('_price', $product->productMeta) }} @endif

@endif @endif @else @if ($disocuntonproduct && $disocuntonproduct->active == 1)

{{ $disocuntonproduct->title ?? $collectionDiscount->title }}

${{ ProductClass::getOptionValue('_price', $product->productMeta) }}

@elseif ($collectionDiscount && $collectionDiscount->active == 1)

{{ $disocuntonproduct->title ?? $collectionDiscount->title }}

${{ ProductClass::getOptionValue('_price', $product->productMeta) }}

@else
@if ($product->productMeta->where('option', '_gst')->first()->value ?? 0)

GST Included

@endif

@if (isset($discountedPrice)) ${{ $discountedPrice }} @else ${{ ProductClass::getOptionValue('_price', $product->productMeta) }} @endif

@endif @endif @endif
@if ($product->productMeta->where('option', '_gst')->first()->value ?? 0)

GST Included

@endif

@if (isset($discountedPrice)) ${{ $discountedPrice }} @else ${{ ProductClass::getOptionValue('_price', $product->productMeta) }} @endif

@php $disable = false; $stock = $product->productMeta->where('option', '_stock')->first()->value; if ($stock == 0) { $disable = true; $buttonText = 'Out of Stock'; } else { $disable = false; $buttonText = 'Add to Cart'; } @endphp

Key Features

{!! $product->short_description !!}
@if (isset($disocuntonproduct))
@php $textPaths = explode(',', $disocuntonproduct->badge_text); $imagePaths = explode(',', $disocuntonproduct->badge_image); @endphp @foreach ($textPaths as $textPath)
{{ $textPath }}
@endforeach @foreach ($imagePaths as $imagePath)
@endforeach
@endif

Description

{{ $product->title }}

{!! $product->long_description !!}

Technical Specifications

@if (isset($brandlogo))

Brand

{{ $brandlogo->title }}

@endif @if (isset($categoryTitles))

Category

@foreach ($categoryTitles as $category) {{ $category['title'] }}, @endforeach @foreach ($chilcateogories as $chilcateogorie) {{ $chilcateogorie['child_title'] }}, @endforeach @foreach ($grandchildcategories as $grandchildcategorie) {{ $grandchildcategorie['grand_title'] }} @endforeach

@endif @if (isset($product))

SKU

{{ $product->sku }}

@endif @if (isset($product->type))

Type

{{ $product->type->title }}

@endif @if (ProductClass::getOptionValue('_weight', $product->productMeta) != null)

Weight

{{ ProductClass::getOptionValue('_weight', $product->productMeta) }}

@endif

Ask an Expert Ask

@if ($featuredproducts)

Featured Products