@extends('layouts.app') @section('heading', $product->name) @section('subheading', trim(($product->brand?->name ? $product->brand->name.' · ' : '').($product->category?->name ?? ''))) @section('actions') Edit
@csrf @method('DELETE')
@endsection @section('content')
@if($product->image)@endif

{{ $product->description }}

Selling{{ money($product->selling_price) }}
Cost{{ money($product->cost_price) }}
Promo{{ $product->promo_price ? money($product->promo_price) : '—' }}
Clearance{{ $product->clearance_price ? money($product->clearance_price) : '—' }}
VAT{{ $product->vat_rate }}%
@csrf

Print 40 × 30 mm labels

XP-420B

Before price is struck through when promo/clearance is lower than the normal selling price.

@foreach($product->variants as $variant) @php $was = $variant->listPrice(); $now = $variant->unitPrice(); @endphp @endforeach
VariantWasNowOn hand
{{ $variant->label() }}
{{ $variant->sku }} · {{ $variant->barcode }}
@if($was > $now){{ money($was) }}@else—@endif {{ money($now) }} {{ $levels[$variant->id]->on_hand ?? 0 }}

Add variant

@csrf
@foreach($product->variants as $variant)
@csrf @method('PUT')
@endforeach
@endsection