@push('styles') @endpush
{{ __('Mobile Settings') }}
{{ __('Manage branding and feature flags with secure, real-time mobile sync.') }}
@csrf @method('PUT') @php $groupIcons = [ 'branding' => 'bi-palette', 'control_center' => 'bi-command', 'app_updates' => 'bi-cloud-download', 'features' => 'bi-stars', 'security_auth' => 'bi-shield-lock', 'connectivity' => 'bi-wifi', 'notifications' => 'bi-bell', 'support_social' => 'bi-headset', 'analytics_system' => 'bi-cpu', 'localization' => 'bi-translate', ]; @endphp
@foreach($settings as $group => $groupSettings) @cantab('mobile settings', $group)
{{ str_replace('_', ' ', $group) }} {{ __('Configuration') }}
{{ __('Manage mobile specific ' . str_replace('_', ' ', $group) . ' settings and synchronization.') }}
@foreach($groupSettings as $setting) @if($setting->type !== 'image_path')
@if($setting->type === 'boolean')
value === 'true' || $setting->value === '1' || $setting->value === true)>
@elseif(str_ends_with($setting->key, '_at')) @elseif(str_contains($setting->key, 'color') || str_contains($setting->key, 'background'))
@elseif(str_contains($setting->key, 'message') || str_contains($setting->key, 'description') || str_contains($setting->key, 'content') || str_contains($setting->key, 'schedule')) @elseif($setting->key === 'announcement_type') @elseif($setting->key === 'environment_selector') @elseif($setting->key === 'biometric_auth_type') @elseif($setting->key === 'log_level') @elseif($setting->key === 'priority_level') @elseif($setting->key === 'default_locale') @elseif($setting->type === 'integer' || $setting->type === 'int') @elseif(str_contains($setting->key, 'message') || str_contains($setting->key, 'text') || str_contains($setting->key, 'subtitle')) @else @endif
@endif @endforeach @foreach($groupSettings as $setting) @if($setting->type === 'image_path')
@php $previewUrl = $setting->value; if ($previewUrl && !Str::startsWith($previewUrl, ['http', 'https', 'data:'])) { $previewUrl = asset($previewUrl); } @endphp @if($previewUrl) Preview @else @endif
@endif @endforeach
@endcantab @endforeach @cantab('mobile settings', 'developer')
{{ __('Sync Payload Preview') }}
{{ __('Raw JSON data being synchronized to mobile clients.') }}
SYNC_PAYLOAD.JSON
@json(app(\App\Services\MobileConfig\MobileConfigService::class)->all(), JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES)
{{ __('Developer Tip') }}

Use this JSON to mock responses during mobile development or to verify that all system fallbacks (like branding) are working correctly before release.

@endcantab
@can('manage mobile settings')
Changes will be synchronized to all mobile clients.
@endcan
{{ __('Live App Preview') }}
9:41
@php $logo = $settings['branding']->firstWhere('key', 'logo_url')->value ?? ''; if ($logo && !Str::startsWith($logo, ['http', 'https', 'data:'])) $logo = asset($logo); @endphp

{{ $settings['branding']->firstWhere('key', 'app_name')->value ?? 'biiproject' }}

{{ $settings['branding']->firstWhere('key', 'app_tagline')->value ?? 'Smart Solution' }}

{{ __('Sign In') }}
{{ __('Create Account') }}
v{{ $settings['app_updates']->firstWhere('key', 'app_version')->value ?? '2.0.0' }} {{ __('Secure Connection') }}
@include('pages.mobile-settings.scripts')