@extends('admin.layouts.main.admin_theme') @section('admin_content') @php // Initial render only. Tab state is client-side (see the tab script below), // so no query parameters are read or written. $activeTab = 'app-settings'; $activeSubTab = 'branding'; @endphp

Settings

{{-- Top-Level Main Navigation Tabs --}}
App Settings API Credentials {{ $providers->count() }} Odds Formats {{ $oddsFormats->count() }}
{{-- ══════════════════════════════════════════════════════════ --}} {{-- ⚙️ MAIN TAB 1: APP SETTINGS (WITH INNER SUB-TABS) --}} {{-- ══════════════════════════════════════════════════════════ --}}
{{-- Inner Sub-Tabs Navigation --}} {{-- 🎨 Inner Sub-Tab 1: Branding & Logos --}}
@csrf
{{-- Website Main Logo --}}

Displayed in the frontend header and navigation bar (.svg, .png, .webp, max 4MB).

Click to Change Logo
{{-- Admin Sidebar Logo --}}

Displayed at the top of the admin sidebar (.svg, .png, max 4MB).

Click to Change Logo
{{-- Mini / Mobile Logo --}}

Displayed when sidebar is collapsed or on mobile screens (.png, .svg, .ico, max 2MB).

Mini Logo
Change
{{-- Browser Favicon --}}

Displayed in the browser tab icon (.png, .ico, .svg, max 2MB).

Favicon
Change
Platform Identity

Brand name and platform version used across the site, admin and emails.

{{-- 🌈 Inner Sub-Tab 2: Theme Colors --}}
@csrf
{{-- Brand Teal --}}

Main brand color: buttons, active tabs, links and highlights across the site and admin. Hover and darker shades follow it automatically.

Please enter a valid 6-digit hex color (e.g. #00bfbc).
{{-- Brand Red --}}

Second brand color: red buttons, badges, live markers and the logo dot. Hover and darker shades follow it automatically.

Please enter a valid 6-digit hex color (e.g. #ff0026).
{{-- Brand Black --}}

Brand black: header bars, dark cards and headings.

Please enter a valid 6-digit hex color (e.g. #000000).
{{-- Brand Green --}}

Tips and prizes green: Add Tip, tip slip, prize calendar and competitions. Darker and lighter shades follow it automatically.

Please enter a valid 6-digit hex color (e.g. #8cde00).
{{-- Live Preview Card --}}
Live Component Preview

See how your colors look together in real time:

Brand Black Panel

Dark header bars and cards, with the teal accent edge.

{{-- ✉️ Inner Sub-Tab 3: SMTP & Mail --}}
@csrf {{-- All application emails go out over SMTP; Klaviyo is only used for the marketing email list (below). --}} {{-- SECTION A: SMTP Configuration --}}
SMTP Server Configuration

Direct credentials for your outbound mail server.

{{-- SECTION B: Klaviyo Configuration --}}
Klaviyo — Email Marketing List

Klaviyo holds the marketing email list and sends marketing emails: members who agree join the list, and a user deleted in admin is unsubscribed and removed from it. Account emails always go over SMTP. Keys come from your Klaviyo Dashboard (Settings > Account > API Keys).

Dynamic API endpoint. Defaults to https://a.klaviyo.com/api
Used for client-side tracking and identifying users.
Stored securely with AES-256 encryption. Used for server-side list updates.
The marketing email list that members join. Klaviyo > Audience > Lists > List settings.
{{-- COMMON SENDER SETTINGS --}}
Sender Identity (Applies to All Emails)

The default sender name and email address displayed in recipients' inboxes.

Shown in every email footer after the App Name, e.g. "{{ setting('app_name', 'Likely Sports') }} — your text".
Gets an email when a scheduled job or queued sync fails (at most one per job every 30 minutes). Leave empty to turn alerts off.
{{-- Inner Sub-Tab: Payments (Stripe) --}}
@csrf
{{ setting('stripe_mode') === 'live' ? 'LIVE MODE' : 'TEST MODE' }} {{ setting('stripe_mode') === 'live' ? 'Real cards will be charged.' : 'No real charges will be made.' }}
Test Keys

From the Stripe dashboard with View test data switched on.

From your webhook endpoint's settings in the Stripe dashboard, not the API keys page.
Live Keys

Real account credentials. Real charges happen once Active Mode is set to Live.

{{-- Dynamic Membership & Competition Configuration --}} {{-- Dynamic Membership & Subscription Configuration --}}
Subscriptions, Offers & Competition Prizes

Dynamically control subscription rules, launch offers, cancellation behaviors, and competition prize expiries.

Length of introductory trial period (e.g. 7 days for the $1 intro offer).
Days before prize claim expiry to send automated email reminder (Default: 5 days).
Maximum lifetime price-locked slots available to annual subscribers.
Number of free Pro membership months awarded to competition winners.
Number of days before an unclaimed competition prize expires (Default: 30 days).
Display value of a membership prize; keep it equal to the yearly Pro price.
{{-- Inner Sub-Tab 5: Social Links & Contact Details --}}
{{-- Social Profiles --}}
@csrf
Social Profiles

Full URLs including https://. Leave a field blank to hide that icon on the site.

@foreach ([ ['key' => 'social_facebook', 'network' => 'facebook', 'label' => 'Facebook', 'ph' => 'https://facebook.com/yourpage'], ['key' => 'social_twitter', 'network' => 'twitter', 'label' => 'X (Twitter)', 'ph' => 'https://x.com/yourhandle'], ['key' => 'social_instagram', 'network' => 'instagram', 'label' => 'Instagram', 'ph' => 'https://instagram.com/yourhandle'], ['key' => 'social_youtube', 'network' => 'youtube', 'label' => 'YouTube', 'ph' => 'https://youtube.com/@yourchannel'], ['key' => 'social_linkedin', 'network' => 'linkedin', 'label' => 'LinkedIn', 'ph' => 'https://linkedin.com/company/yourcompany'], ['key' => 'social_tiktok', 'network' => 'tiktok', 'label' => 'TikTok', 'ph' => 'https://tiktok.com/@yourhandle'], ['key' => 'social_telegram', 'network' => 'telegram', 'label' => 'Telegram', 'ph' => 'https://t.me/yourchannel'], ['key' => 'social_whatsapp', 'network' => 'whatsapp', 'label' => 'WhatsApp', 'ph' => 'https://wa.me/61280001234'], ] as $field)
@endforeach
{{-- Support Details --}}
@csrf
Support Details

Support contacts and the regulatory links shown in the site footer.

{{-- Contact Details --}}
@csrf
Contact Details

General enquiry details for the site and contact page.

{{-- ⚡ Inner Sub-Tab 6: Dynamic Odds Horizon Throttling --}}
@csrf
Dynamic Odds Horizon Throttling

Configure dynamic polling frequency intervals based on match kickoff distance to optimize API quotas, queue workers, and server resources.

Polling interval (in minutes) for matches scheduled more than 2 days in advance.

mins ({{ round((int)setting('odds_throttle_48h_plus', 180) / 60, 1) }}h)

Polling interval (in minutes) for tomorrow's upcoming fixtures.

mins ({{ round((int)setting('odds_throttle_24h_48h', 60) / 60, 1) }}h)

Polling interval (in minutes) for today's matchday games.

mins

High-frequency polling interval (in minutes) as matches approach kickoff.

mins

Minutes prior to kickoff when odds polling is locked to freeze pre-match lines.

mins before start
{{-- 🔒 Inner Sub-Tab 7: Dynamic Access Control Matrix --}}
Dynamic Access Control Matrix

Control tier permissions across Unregistered, Free, and Pro members. For boolean features, use the toggle switch. For limit features, select All, Blocked, or specify an exact row limit (e.g., 10 or custom number).

@foreach($accessCategories as $catKey => $catLabel) @php $catFeatures = collect($accessCatalog)->filter(fn($item) => ($item['category'] ?? '') === $catKey); @endphp @if($catFeatures->isNotEmpty()) @foreach($catFeatures as $fKey => $fData) @foreach(['unregistered', 'free', 'pro'] as $tKey) @php $currVal = $fData['current'][$tKey] ?? false; @endphp @endforeach @endforeach @endif @endforeach
Feature & Description Type Unregistered Public / Guest Free Member Registered Free Pro Member Subscribed / Lifetime
{{ $catLabel }}
{{ $fData['label'] }}
{{ $fData['description'] }} {{ $fKey }}
@if($fData['type'] === 'boolean') Boolean @else Record Limit @endif @if($fData['type'] === 'boolean')
@else @php $isAll = ($currVal === 'all' || $currVal === true); $isNone = ($currVal === false || $currVal === 0 || $currVal === '0'); $numVal = 10; if (!$isAll && !$isNone) { if (is_numeric($currVal)) { $numVal = (int) $currVal; } elseif (is_string($currVal) && preg_match('/^last(\d+)$/', $currVal, $m)) { $numVal = (int) $m[1]; } } $mode = $isAll ? 'all' : 'limit'; @endphp
@endif
Changes saved here are cached in-memory and will update all pages and APIs instantly.
{{-- 🛡️ Dynamic Restriction Modals & Banners Copy Editor --}}
Dynamic Restriction Modals & Banners Copy

Customize every line, label, description, benefit card, and button for Unregistered Guests and Free Members across all restricted platform modules.

{{-- 🛡️ Tab-Wise Feature & Tier Navigation --}}
Select Module / Feature:
🏆 Competitions Entry 💰 Prize Claiming 📈 Odds Screen & EV 👥 Tipster Profiles 🎖️ Championship Windows 📋 Team Form Limits 🔒 Pro Screen Lockout
Target Audience Tier:
Active View: Competitions Entry • Unregistered (Guest)
{{-- Editor Forms Container --}}
@php $featuresList = ['enter_competitions', 'claim_rewards', 'ev_tracker', 'other_users_tips', 'championship_windows', 'team_forms', 'restrict_screen']; $tiersList = ['unregistered', 'free']; @endphp @foreach($featuresList as $fIdx => $fKey) @foreach($tiersList as $tIdx => $tKey) @php $fConfig = $restrictionsMatrix[$fKey][$tKey] ?? []; $isFirst = ($fIdx === 0 && $tIdx === 0); @endphp
@if(in_array($fKey, ['enter_competitions', 'claim_rewards', 'ev_tracker', 'other_users_tips', 'championship_windows'], true)) {{-- Banner Section --}}
Inline Access Banner Copy ({{ strtoupper($tKey) }})
{{-- Modal Section --}}
Restriction Modal Header & Copy
{{-- 3 Rounded Benefit Tiles --}} 3 Benefit Cards (Tiles)
@for($b = 0; $b < 3; $b++) @php $benefit = $fConfig['modal']['benefits'][$b] ?? []; @endphp
Icon
@endfor
{{-- Modal Buttons --}}
@elseif($fKey === 'team_forms') {{-- Team Forms Form --}}
Team & Player Form Overlay Copy ({{ strtoupper($tKey) }})
@elseif($fKey === 'restrict_screen') {{-- Global Restrict Screen Modal --}}
Global Pro Restricted Screen Modal ({{ strtoupper($tKey) }})
@endif
@endforeach @endforeach
Copy configurations are saved in app_settings and cached with sub-0.5ms resolution. Any updates here immediately refresh all user banners and modals.
@if (false) {{-- Footer SEO hidden for now --}} {{-- 📄 Inner Sub-Tab: Dynamic Footer SEO Engine --}} @endif
{{-- ══════════════════════════════════════════════════════════ --}} {{-- 🔌 MAIN TAB 2: API CREDENTIALS / PROVIDERS --}} {{-- ══════════════════════════════════════════════════════════ --}}
@forelse($providers as $provider) @empty @endforelse
Provider Code / Slug Base URL Auth Type Sports Assigned Status Actions
{{ $provider->name }} {{ $provider->slug }} {{ $provider->base_url }} {{ strtoupper((string) $provider->auth_type) }} {{ $provider->sport_providers_count }} sports
Edit
No API credentials configured.
{{-- ══════════════════════════════════════════════════════════ --}} {{-- 📊 MAIN TAB 3: ODDS FORMATS --}} {{-- ══════════════════════════════════════════════════════════ --}}
@forelse($oddsFormats as $format) @empty @endforelse
Format Name Code / Key Sample Value (2.50) Description Status
{{ $format->name }} {{ $format->slug }} {{ $format->short_name }} {{ $format->description ?? 'Standard format representation across the odds feeds.' }}
No odds formats found.
{{-- ✉️ Mail Connection Test Modal (SMTP & Klaviyo) --}} @endsection @section('scripts') @endsection