@extends('layouts.app') @section('heading', $product->exists ? 'Edit product' : 'New product') @section('content') @php $vatRate = (float) old('vat_rate', $product->vat_rate ?: setting('vat_rate', 15)); $costInc = (float) old('cost_inc_vat', old('cost_price', $product->cost_price ?: 0)); $costEx = (float) old('cost_ex_vat', $vatRate > 0 ? round($costInc / (1 + $vatRate / 100), 2) : $costInc); @endphp
@csrf @if($product->exists) @method('PUT') @endif

Product details

Markup —

Pricing (VAT)

Cost ex ↔ inc auto
Item markup
—

Change either cost field — the other recalculates from VAT %. Stored cost is VAT-inclusive. Clearance applies immediately; promo only inside its schedule.

Description & image

@unless($product->exists)

Variants

Size / colour stock units
@endunless
Cancel
@endsection @push('scripts') @endpush