@extends('layouts.public') @section('title', $product->name.' | Shop') @section('meta_description', \Illuminate\Support\Str::limit($product->description ?: 'Device repair part available online.', 155)) @section('content') @php $images = json_decode($product->images ?? '[]', true); $image = is_array($images) ? ($images[0] ?? null) : null; @endphp
← Back to shop @include('shop.partials.flash')
@if($image){{ $product->name }}@else Parts @endif
@if($product->brand){{ $product->brand }}@endif @if($product->category)• {{ $product->category }}@endif

{{ $product->name }}

@if($product->sku)

SKU: {{ $product->sku }}

@endif

${{ number_format((float) $product->sell_price, 2) }}

@if($product->compare_at_price && (float) $product->compare_at_price > (float) $product->sell_price)

${{ number_format((float) $product->compare_at_price, 2) }}

@endif

{{ (int) $product->quantity > 0 ? $product->quantity.' available' : 'Out of stock' }}

@if($product->description)

{{ $product->description }}

@endif @php $models = json_decode($product->compatible_models ?? '[]', true); @endphp @if(is_array($models) && count($models))

Compatible with

@foreach($models as $model){{ $model }}@endforeach
@endif @if((int) $product->quantity > 0)
@csrf @if($product->variants->isNotEmpty()) @endif
@endif
@endsection