@extends('frontend.layouts.master') @section('meta') @php use Illuminate\Support\Str; // Split photo field (comma-separated) $photos = array_filter(array_map('trim', explode(',', $product_detail->photo ?? ''))); $firstPhoto = $photos[0] ?? null; // Make sure it's an absolute URL $ogImage = $firstPhoto ? (Str::startsWith($firstPhoto, ['http://','https://']) ? $firstPhoto : url($firstPhoto)) : asset('frontend/images/share-fallback-1200x630.jpg'); // fallback if no product image $canonical = route('product-detail', $product_detail->slug); $plainDesc = Str::limit(strip_tags($product_detail->summary ?: $product_detail->description), 150); $title = $product_detail->title; @endphp {{-- Core/SEO --}} {{-- Open Graph (Facebook/WhatsApp/LinkedIn) --}} {{-- Twitter --}} {{-- JSON-LD Product --}} @endsection @section('title','JAYAKA || PRODUCT DETAIL') @section('main-content')
Rs{{number_format($after_discount,2)}}Rs{{number_format($product_detail->price,2)}}
{!!($product_detail->summary)!!}
Category :{{$product_detail->cat_info['title']}}
@if($product_detail->sub_cat_info)Sub Category :{{$product_detail->sub_cat_info['title']}}
@endifStock : @if($product_detail->quantity>0){{$product_detail->quantity}}@else {{$product_detail->quantity}} @endif
{!! ($product_detail->description) !!}
Add A Review
Your email address will not be published. Required fields are marked
Your Rating *
You need to Login OR Register
@endauth