@extends('layouts.ecommerce_store') @section('title', ($product->ecommerce_meta_title ?: $product->name).' - '.($settings['store_name'] ?? $business->name)) @section('meta_description', $product->ecommerce_meta_description ?: \Illuminate\Support\Str::limit(strip_tags($product->ecommerce_description ?: $product->product_description), 155)) @section('head') @php $productStock = (float) collect($availability)->sum(); $productPrice = (float) $product->variations->min('sell_price_inc_tax'); $productDescription = $product->ecommerce_meta_description ?: \Illuminate\Support\Str::limit(strip_tags($product->ecommerce_description ?: $product->product_description), 155); @endphp @endsection @section('content')
@php $galleryImages = collect([$product->image_url]) ->merge($product->media->pluck('display_url')) ->filter() ->unique() ->values(); @endphp
@if($product->ecommerce_featured)Featured@endif {{ optional($product->category)->name }} · SKU {{ $product->sku }}

{{ $product->name }}

₱{{ number_format($productPrice, 2) }}
@if(!empty($settings['enable_delivery']))✓ Delivery available@endif @if(!empty($settings['enable_pickup']))✓ Branch pickup available@endif ✓ {{ $productStock > 0 ? number_format($productStock).' in stock' : 'Out of stock' }}
{!! nl2br(e($product->ecommerce_description ?: $product->product_description)) !!}
@csrf

Stock may be supplied by another branch for delivery. Final branch allocation is confirmed at checkout.

@endsection @section('scripts') @endsection