@extends('admin.settings.sidebar') @section('title', __('particles::messages.admin.title')) @php $enabledFrontendRaw = old('particles_enabled_frontend', $enabled_frontend ?? false); $enabledFrontendChecked = filter_var($enabledFrontendRaw, FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE); $enabledFrontendChecked = $enabledFrontendChecked === null ? (bool) $enabledFrontendRaw : $enabledFrontendChecked; $enabledCustomerRaw = old('particles_enabled_customer', $enabled_customer ?? false); $enabledCustomerChecked = filter_var($enabledCustomerRaw, FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE); $enabledCustomerChecked = $enabledCustomerChecked === null ? (bool) $enabledCustomerRaw : $enabledCustomerChecked; $startValue = $start_date ? \Illuminate\Support\Carbon::parse($start_date)->format('Y-m-d\TH:i') : null; $endValue = $end_date ? \Illuminate\Support\Carbon::parse($end_date)->format('Y-m-d\TH:i') : null; @endphp @section('setting')

{{ __('particles::messages.admin.title') }}

{{ __('particles::messages.admin.description') }}

@csrf @method('PUT')

{{ __('particles::messages.admin.enabled_frontend_label') }}

{{ __('particles::messages.admin.enabled_frontend_helper') }}

@include('admin/shared/switch', [ 'name' => 'particles_enabled_frontend', 'checked' => (bool) $enabledFrontendChecked, ])

{{ __('particles::messages.admin.enabled_customer_label') }}

{{ __('particles::messages.admin.enabled_customer_helper') }}

@include('admin/shared/switch', [ 'name' => 'particles_enabled_customer', 'checked' => (bool) $enabledCustomerChecked, ])
@include('admin/shared/input', [ 'name' => 'particles_z_index', 'label' => __('particles::messages.admin.z_index_label'), 'value' => old('particles_z_index', $z_index ?? '0'), 'type' => 'text', 'help' => __('particles::messages.admin.z_index_helper'), ])
@include('admin/shared/input', [ 'name' => 'particles_canvas_opacity', 'label' => __('particles::messages.admin.canvas_opacity_label'), 'value' => old('particles_canvas_opacity', $canvas_opacity ?? '1'), 'type' => 'number', 'step' => '0.1', 'min' => '0', 'max' => '1', 'help' => __('particles::messages.admin.canvas_opacity_helper'), ])
@include('admin/shared/input', [ 'name' => 'particles_start', 'label' => __('particles::messages.admin.start_label'), 'value' => old('particles_start', $startValue), 'type' => 'datetime-local', 'optional' => true, ])
@include('admin/shared/input', [ 'name' => 'particles_end', 'label' => __('particles::messages.admin.end_label'), 'value' => old('particles_end', $endValue), 'type' => 'datetime-local', 'optional' => true, ])

{{ __('particles::messages.admin.schedule_helper', ['timezone' => config('app.timezone')]) }}

{{ __('particles::messages.admin.config_helper') }}

@error('particles_config')

{{ $message }}

@enderror
{{ __('particles::messages.admin.config_generator') }} | |
@endsection @section('script') @endsection