@extends('layouts.admin.app', ['page' => $menuAdmin['design_appearance']['active'] ?? 'design_appearance', 'sub_page' => $menuAdmin['design_appearance']['route']['splash_screens']['sub_active'] ?? 'splash-screens']) @section('title', __('labels.splash_screens')) @section('header_data') @php $page_title = __('labels.splash_screens'); $page_pretitle = __('labels.admin') . ' ' . __('labels.management'); @endphp @endsection @push('styles') @endpush @section('admin-content')

{{ __('labels.splash_screens') }}

Manage saved launch screens for customer, seller, and rider apps.

@foreach ($appTypes as $appType) @php $appIcon = match ($appType->value) { \App\Enums\SplashAppTypeEnum::SELLER() => 'ti-building-store', \App\Enums\SplashAppTypeEnum::RIDER() => 'ti-bike', default => 'ti-user', }; @endphp {{ $appType->label() }} @endforeach
Managing {{ collect($appTypes)->firstWhere('value', $selectedApp)?->label() }}
@if ($editPermission)

Configure Splash

Choose the slot you want to update, then preview the draft before saving.
@foreach ([\App\Enums\SplashSlotEnum::CURRENT() => __('labels.replace_current_splash'), \App\Enums\SplashSlotEnum::STAGED_NEXT() => __('labels.replace_staged_splash')] as $slot => $title) @php $isStagedSlot = $slot === \App\Enums\SplashSlotEnum::STAGED_NEXT(); $configuredSplash = $isStagedSlot ? $stagedSplash : $currentSplash; @endphp
@csrf

{{ $title }}

{{ $isStagedSlot ? 'Configure the next splash and optionally schedule activation.' : 'Use this when you need to replace the live splash immediately.' }}
{{ $isStagedSlot ? 'Staged' : 'Current' }}

Splash Screen Configuration

Customize the selected slot. Changes reflect in the preview instantly.

{{-- Layout presets are admin-only shortcuts that update the existing splash fields and live preview. --}}
Custom
Use portrait 1080x1920+ backgrounds. Keep logos/animations transparent for the overlay layer.
Portrait JPG/PNG/WebP, minimum 1080x1920, up to 1.5 MB.
MP4 only, up to 6 MB.
Transparent PNG/WebP, up to 512 KB.
Valid Lottie JSON with v and layers keys, up to 512 KB.
@if ($slot === \App\Enums\SplashSlotEnum::STAGED_NEXT())
@endif

Preview

Live preview for the selected splash slot.

@include('admin.splash-screens.partials.media-preview', [ 'screen' => $configuredSplash, 'emptyLabel' => __('labels.no_current_splash'), ])
@endforeach
@endif
@endsection @push('scripts') @endpush