@include('components.frontend.head') @include('components.frontend.header')
@foreach($galleryImages as $image)
@endforeach

{{ $product->product_name }}

INR {{ $product->product_price }}
@if(!empty($productColor) && count($productColor) > 0)
Colors: {{ $productColor[0] ?? 'Select Color' }}
@foreach($productColor as $id => $color) first ? 'checked' : '' }} onchange="updateSelectedColor(this)"> @endforeach
@endif
@if(!empty($printData) && count($printData) > 0)
Print Options: {{ $printData[0]['name'] ?? 'Select Print' }}
@foreach ($printData as $index => $print) first ? 'checked' : '' }} onchange="updateSelectedPrint(this)"> @endforeach
@endif
@if(!empty($productSizes) && count($productSizes) > 0)
Size: {{ $productSizes[0] ?? 'Select Size' }}
Size Guide
@foreach($productSizes as $id => $size) @endforeach

Crafted for you, contact us for custom sizing

@endif
Quantity:
- +

Wishlist

  • Available:

    @if($product->available_quantity > 0)

    In Stock

    @else

    Out of Stock

    @endif
  • Categories:

    @if(!empty($category)) {{ $category->category_name }} @else No Category @endif

  • Fabric:

    @if(!empty($fabric)) {{ $fabric }} @else Not Available @endif

  • Fabric Composition:

    @if(!empty($fabricComposition)) {{ $fabricComposition }} @else Not Available @endif


Guranteed safe checkout:
  • Description & Care
  • Shipping Fees & Timeline
  • Returns & Exchange

{!! $product->description ?? 'No description available.' !!}

@php $shippingLines = array_filter(explode('.', $product->shipping)); // Split into sentences and remove empty values $firstLine = strtoupper(trim(array_shift($shippingLines))); // Get and remove the first sentence @endphp

{{ $firstLine }}.

@foreach($shippingLines as $line)

{{ trim($line) }}.

@endforeach

{{ strtoupper(strtok($product->return, '.')) }}.

{{ substr($product->return, strlen(strtok($product->return, '.')) + 1) ?? 'No policies available.' }}

@if($relatedProducts->isNotEmpty())

Related Products

@foreach($relatedProducts as $related)
@php $images = json_decode($related->thumbnail_image, true) ?? []; $thumbnail = count($images) > 0 ? asset('/murupp/product/thumbnails/' . $images[0]) : asset('images/default-product.jpg'); @endphp {{ $related->name }} {{ $related->name }}
@php // Fetch sizes based on stored size IDs $sizeIds = json_decode($related->sizes, true) ?? []; $productSizes = \App\Models\ProductSizes::whereIn('id', $sizeIds) ->whereNull('deleted_at') ->pluck('size') ->toArray(); @endphp
{{ $related->product_name }} {{ $related->product_price }} INR
@endforeach
@endif @include('components.frontend.footer') @include('components.frontend.main-js')