{% extends 'wfbo/_layout.html.twig' %} {% block wfbo_title %}Settings{% endblock %} {% block wfbo_content %} {% for flash in app.flashes('success') %} {% endfor %} {{ form_start(settingForm, {attr: {'data-testid': 'settings-form', 'novalidate': 'novalidate', 'data-turbo': 'false'}}) }} {# ── Site Name section ── #}

Site Name

The name of this site, shown in the browser tab title across all pages.

{{ form_label(settingForm.siteName, null, {label_attr: {class: 'form-label--sm'}}) }} {{ form_widget(settingForm.siteName) }} {{ form_errors(settingForm.siteName) }}
{# ── House Win Rate section ── #}

House Win Rate

Default house win rate used when no per-game or per-user override is set. Can be overridden per game in the Video Karera and Pataasan settings pages, and per user in the user management page.

{{ form_label(settingForm.houseWinRate, null, {label_attr: {class: 'form-label--sm'}}) }}
{{ form_widget(settingForm.houseWinRate, {attr: {class: 'border-end-0'}}) }} %
{{ form_errors(settingForm.houseWinRate) }}

Referral Code

When enabled, users must enter a valid referral code to complete registration.

{{ form_widget(settingForm.referralCodeRequired) }} {{ form_label(settingForm.referralCodeRequired, null, {label_attr: {class: 'form-check-label'}}) }} {{ form_errors(settingForm.referralCodeRequired) }}

Withdrawal Requests

When disabled, players can't submit new withdrawal requests - the form is hidden site-wide until this is turned back on.

{{ form_widget(settingForm.withdrawalRequestsEnabled) }} {{ form_label(settingForm.withdrawalRequestsEnabled, null, {label_attr: {class: 'form-check-label'}}) }} {{ form_errors(settingForm.withdrawalRequestsEnabled) }}
{# ── Player Restrictions section ── #}

Player Restrictions

When enabled, the selected staff roles will not be able to place bets. Restrict Master Agent Playing covers Master Agents only. Restrict Agent Playing covers regular Agents only. Restrict Admin Playing covers Admin, Finance, and Operations.

{{ form_widget(settingForm.preventMasterAgentPlaying) }} {{ form_label(settingForm.preventMasterAgentPlaying, null, {label_attr: {class: 'form-check-label'}}) }} {{ form_errors(settingForm.preventMasterAgentPlaying) }}
{{ form_widget(settingForm.preventAgentPlaying) }} {{ form_label(settingForm.preventAgentPlaying, null, {label_attr: {class: 'form-check-label'}}) }} {{ form_errors(settingForm.preventAgentPlaying) }}
{{ form_widget(settingForm.preventAdminPlaying) }} {{ form_label(settingForm.preventAdminPlaying, null, {label_attr: {class: 'form-check-label'}}) }} {{ form_errors(settingForm.preventAdminPlaying) }}
{# ── Commission section ── #}

Master Agent Commissions

Percentage of the commission amount to be credited to the referring agent.

{{ form_label(settingForm.agentCommissionRate, null, {label_attr: {class: 'form-label--sm'}}) }}
{{ form_widget(settingForm.agentCommissionRate, {attr: {class: 'border-end-0'}}) }} %
{{ form_errors(settingForm.agentCommissionRate) }}

Enter a value between 0.00 and 100.00

{# ── Minimum withdrawal amount section ── #}

Minimum Withdrawal Amount

The minimum amount a user or agent can withdraw per request. Set to 0 to disable the minimum.

{{ form_label(settingForm.minimumWithdrawalAmount, null, {label_attr: {class: 'form-label--sm'}}) }}
₱ {{ form_widget(settingForm.minimumWithdrawalAmount, {attr: {class: 'border-start-0'}}) }}
{{ form_errors(settingForm.minimumWithdrawalAmount) }}
{# ── Minimum deposit amount section ── #}

Minimum Deposit Amount

The minimum amount a user can deposit per request. Set to 0 to disable the minimum.

{{ form_label(settingForm.minimumDepositAmount, null, {label_attr: {class: 'form-label--sm'}}) }}
₱ {{ form_widget(settingForm.minimumDepositAmount, {attr: {class: 'border-start-0'}}) }}
{{ form_errors(settingForm.minimumDepositAmount) }}
{# ── Max Daily Withdrawal Amount section ── #}

Max Daily Withdrawal Amount (Players)

Maximum total withdrawal amount a player can request in a single day. Pending and approved requests both count toward the limit. Leave blank for no limit. Does not apply to agents or admin roles.

{{ form_label(settingForm.maxDailyWithdrawalAmount, null, {label_attr: {class: 'form-label--sm'}}) }}
₱ {{ form_widget(settingForm.maxDailyWithdrawalAmount, {attr: {class: 'border-start-0'}}) }}
{{ form_errors(settingForm.maxDailyWithdrawalAmount) }}
{# ── Agent withdrawal day section ── #}

Agent Withdrawal Day

The day of the week on which agents are allowed to submit withdrawal requests. Select "Disabled" to turn off agent withdrawals entirely.

{{ form_label(settingForm.agentWithdrawalDay, null, {label_attr: {class: 'form-label--sm'}}) }} {{ form_widget(settingForm.agentWithdrawalDay) }} {{ form_errors(settingForm.agentWithdrawalDay) }}
{{ form_end(settingForm) }} {% endblock %}