@extends('layouts.app') @section('title', 'Registration Settings') @section('content')

Registration Settings

Configure agent registration requirements and pricing

@if(session('success'))

{{ session('success') }}

@endif @if($errors->any())

Please fix the following errors:

@endif
@csrf @method('PUT')

Registration Type

Product Commitment Settings

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

Example Calculation

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) }}

Referral Commission

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)

Example Calculation

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) }}

@endsection