@extends('layouts.admin') @section('title', 'Profit Margin & Markup Rules | Omni Trade') @section('page_title', 'Dynamic Profit Margin & Markup Engine') @section('content')

Automated Profit Markup Engine

Set tiered profit margins based on supplier base cost, product category, or supplier channel. Prices automatically round to psychological .99.

@csrf

Configured Markup Rules

@foreach($rules as $rule) @endforeach
Rule Name Supplier Match Cost Bracket Rule Calculation Compare-At MSRP Psychological .99 Priority Actions
{{ $rule->name }} {{ $rule->supplier?->name ?? 'All Suppliers' }} ${{ number_format($rule->min_cost, 2) }} - {{ $rule->max_cost ? '$' . number_format($rule->max_cost, 2) : '∞' }} @if($rule->markup_type === 'multiplier') {{ $rule->markup_value }}x Multiplier @elseif($rule->markup_type === 'percentage') +{{ $rule->markup_value }}% Margin @else +${{ number_format($rule->markup_value, 2) }} Fixed @endif {{ $rule->compare_at_multiplier }}x @if($rule->round_to_99) Yes (.99) @else Exact cents @endif Priority {{ $rule->priority }}
@csrf @method('DELETE')
@push('scripts') @endpush @endsection