@extends('layouts.app') @section('title', 'Registration Settings') @section('content')
Configure agent registration requirements and pricing
{{ session('success') }}
Please fix the following errors:
These settings apply when registration type is "Product Commitment"
Minimum total value of products an agent must purchase to complete registration
Discount percentage from retail price for agents during registration
If a product has retail price of RM 100.00:
Agent Price = RM 100.00 - ({{ $settings['agent_discount_percent'] }}% discount) = RM {{ number_format(100 - (100 * $settings['agent_discount_percent'] / 100), 2) }}
Configure commission for referrers when new agents register using their referral code
When enabled, the referring agent earns commission when a new agent completes registration
Fixed commission per registration
Percentage of registration amount (after discount)
If new agent registers with RM 500.00 product commitment:
Referral Commission = RM {{ number_format($referralSettings['type'] === 'fixed' ? $referralSettings['fixed_amount'] : ($referralSettings['type'] === 'percentage' ? 500 * $referralSettings['percentage'] / 100 : $referralSettings['fixed_amount'] + (500 * $referralSettings['percentage'] / 100)), 2) }}