@extends('admin.layouts.app') @section('title', $product->name) @section('header', $product->name) @section('content')
← Voltar para Produtos
@if($product->images->count() > 0)

Imagens

@foreach($product->images as $image)
{{ $product->name }} @if($image->is_main) Principal @endif
@endforeach
@endif

Descrição

@if($product->short_description)

{{ $product->short_description }}

@endif
{!! nl2br(e($product->description)) !!}

Detalhes do Produto

@if($product->brand)
Marca
{{ $product->brand }}
@endif @if($product->weight)
Peso
{{ $product->weight }}g
@endif @if($product->flavor)
Sabor
{{ $product->flavor }}
@endif @if($product->servings)
Porções
{{ $product->servings }}
@endif
@if($product->ingredients)
Ingredientes
{{ $product->ingredients }}
@endif @if($product->usage_instructions)
Modo de Uso
{{ $product->usage_instructions }}
@endif
@if($product->productVariants->count() > 0)

Variantes Disponíveis

@foreach($product->variants_by_type as $type => $variantData)

{{ $variantData['name'] }}

@foreach($variantData['values'] as $value)
{{ $value['value'] }} @if($value['price_adjustment'] != 0) {{ $value['price_adjustment'] > 0 ? '+' : '' }}R$ {{ number_format($value['price_adjustment'], 2, ',', '.') }} @endif ({{ $value['stock'] }} un.)
@endforeach
@endforeach
@endif @if($product->video_url)

Vídeo

@endif

Ações

Editar Produto
@csrf @method('DELETE')

Preço e Estoque

Preço R$ {{ number_format($product->price, 2, ',', '.') }}
@if($product->discount_price)
Preço com Desconto R$ {{ number_format($product->discount_price, 2, ',', '.') }}
Desconto {{ $product->discount_percentage }}%
@endif
Estoque {{ $product->stock ?? 0 }} unidades
Status @if($product->is_active) Ativo @else Inativo @endif
@if($product->is_featured)
Destaque Sim
@endif

Informações

SKU {{ $product->sku ?? '-' }}
Slug {{ $product->slug }}
Categoria {{ $product->category->name ?? '-' }}
ID #{{ $product->id }}
@endsection