{% extends 'wfbo/_layout.html.twig' %} {% block wfbo_title %}Settings{% endblock %} {% macro scheduleTable(scheduleForm, testid) %}
{% for day in scheduleForm %} {% endfor %}
Open Day From To
{{ form_widget(day.enabled) }} {{ day.vars.label }}
{{ form_widget(day.startHour) }}:{{ form_widget(day.startMinute) }}
{{ form_widget(day.endHour) }}:{{ form_widget(day.endMinute) }}
{{ form_errors(scheduleForm) }} {% endmacro %} {% 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 Request Hours

Tick the days player withdrawal requests are open and set each day's hours (evaluated in Manila time). Outside those hours the form is hidden and the weekly schedule is shown instead. Leave every day unticked to accept requests any time.

{{ _self.scheduleTable(settingForm.withdrawalWindowSchedule, 'input-withdrawal-window-schedule') }}
{# ── 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 hours section ── #}

Agent Withdrawal Hours

Tick the days agents may submit withdrawal requests and set each day's hours (Manila time). Leave every day unticked to turn agent withdrawals off entirely.

{{ _self.scheduleTable(settingForm.agentWithdrawalWindowSchedule, 'input-agent-withdrawal-window-schedule') }}
{{ form_end(settingForm) }} {% endblock %}