@extends('layouts.app')
@section('title','Product Prices')
@section('content')
ERP / PRODUCT PRICES
{{ $product->sku }}
{{ $product->name }}
Back to shared library
@if(session('success')){{ session('success') }}
@endif
@if($errors->any()){{ $errors->first() }}
@endif
Prices belong to the current company and include VAT 5%. Source unit prices are preserved up to four decimal places, without currency conversion or automatic rounding. This page does not change purchasing costs or other companies' prices.
@foreach(['retail'=>'Retail / RRP','wholesale'=>'Wholesale','van'=>'Van sales','clearance'=>'Clearance'] as $type=>$label)
@php($price=$prices->get($type))
{{ $label }}
Current price: {{ $price?\App\Support\ProductRegistry::formatUnitPrice((string)$price->gross_amount).' '.$price->currency:'Not recorded' }}
@if($price)Effective {{ $price->effective_date }}
@endif
@if($canEdit)@endif
@endforeach
@endsection