@extends('layouts.app') @section('title', 'Fees & profit – Setting') @section('body_class', 'setting-fees-admin') @section('content') @php $gatewayPct = old('fee_gateway_pct', $feeSettings->fee_gateway_pct ?? 3.5); $commissionType = old('fee_commission_type', $feeSettings->fee_commission_type ?? 'fixed'); $commissionAmt = old('fee_commission_amt', $feeSettings->fee_commission_amt ?? 50); $shippingAmt = old('fee_shipping_amt', $feeSettings->fee_shipping_amt ?? 50); $extraAmt = old('fee_extra_amt', $feeSettings->fee_extra_amt ?? 0); $defaultGateway = (bool) old('fee_default_gateway', $feeSettings->fee_default_gateway ?? true); $defaultCommission = (bool) old('fee_default_commission', $feeSettings->fee_default_commission ?? false); $defaultShipping = (bool) old('fee_default_shipping', $feeSettings->fee_default_shipping ?? true); $defaultExtra = (bool) old('fee_default_extra', $feeSettings->fee_default_extra ?? false); $commissionLabel = $commissionType === 'percentage' ? rtrim(rtrim(number_format((float) $commissionAmt, 2), '0'), '.') . '%' : '$' . number_format((float) $commissionAmt, 2); @endphp

← Setting

Fees & profit

Global defaults for profit calculations. Marketing, Deals, and Offers read these values automatically.

Sales commissions →
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
Gateway {{ rtrim(rtrim(number_format((float) $gatewayPct, 2), '0'), '.') }}% Payment fee
Commission {{ $commissionLabel }} {{ $commissionType === 'percentage' ? 'of sale' : 'fixed / sale' }}
Shipping ${{ number_format((float) $shippingAmt, 2) }} Default shipping fee
Extra ${{ number_format((float) $extraAmt, 2) }} Additional fee

Fee defaults

Used when estimating net profit across Marketing, Deals, and Offers.

@csrf

Global values

Amounts and rates applied when fee calculators run.

Default for new salespeople and Deals fee calculator.

Include by default

Checked fees are pre-enabled in Marketing and included in Offers profit estimates. Deals starts with fees off, but uses the values above when you turn them on.

@push('styles') @endpush @endsection