@extends('layouts.shop') @section('title', $product->name . ' | BasePro Shop') @section('meta_description', Str::limit($product->description, 160)) @section('content')
{{ $product->name }}
@if(!empty($product->gallery))
@foreach($product->gallery ?? [] as $img) @endforeach
@endif
@if($product->brand) {{ $product->brand->name }} @endif SKU: {{ $product->sku }}

{{ $product->name }}

${{ number_format($product->price, 2) }} @if($product->compare_price) ${{ number_format($product->compare_price, 2) }}
Oferta
@endif

{{ $product->description }}

@php $colors = $product->attributes->where('type', 'color'); @endphp @if($colors->isNotEmpty())
Colores Disponibles:
@foreach($colors as $color)
@endforeach
@endif
@if($product->stock > 0)
Disponibilidad en Stock ({{ $product->stock }}) @else
Agotado @endif
@if(!empty($product->specs))

Especificaciones Técnicas

@foreach($product->specs as $key => $value) @endforeach
{{ $key }} {{ $value }}
@endif
@endsection