Просмотр файла resources/views/admin/settings/_info.blade.php

Размер файла: 2.15Kb
  1. @section('header')
  2. <h1>{{ __('settings.info') }}</h1>
  3. @stop
  4.  
  5. <form method="post">
  6. @csrf
  7. <?php $inputCounter = (int) getInput('sets.incount', $settings['incount']); ?>
  8. <div class="mb-3{{ hasError('sets[incount]') }}">
  9. <label for="incount" class="form-label">{{ __('settings.counters_enable') }}:</label>
  10. <select class="form-select" id="incount" name="sets[incount]">
  11.  
  12. @foreach ($counters as $key => $counter)
  13. <?php $selected = ($key === $inputCounter) ? ' selected' : ''; ?>
  14. <option value="{{ $key }}"{{ $selected }}>{{ $counter }}</option>
  15. @endforeach
  16.  
  17. </select>
  18. <div class="invalid-feedback">{{ textError('sets[incount]') }}</div>
  19. </div>
  20.  
  21. <div class="form-check mb-3">
  22. <input type="hidden" value="0" name="sets[performance]">
  23. <input type="checkbox" class="form-check-input" value="1" name="sets[performance]" id="performance"{{ getInput('sets.performance', $settings['performance']) ? ' checked' : '' }}>
  24. <label class="form-check-label" for="performance">{{ __('settings.performance_enable') }}</label>
  25. </div>
  26.  
  27. <div class="form-check mb-3">
  28. <input type="hidden" value="0" name="sets[onlines]">
  29. <input type="checkbox" class="form-check-input" value="1" name="sets[onlines]" id="onlines"{{ getInput('sets.onlines', $settings['onlines']) ? ' checked' : '' }}>
  30. <label class="form-check-label" for="onlines">{{ __('settings.online_enable') }}</label>
  31. </div>
  32.  
  33. <div class="mb-3{{ hasError('sets[timeonline]') }}">
  34. <label for="timeonline" class="form-label">{{ __('settings.online_time') }}:</label>
  35. <input type="number" class="form-control" id="timeonline" name="sets[timeonline]" maxlength="3" value="{{ getInput('sets.timeonline', round($settings['timeonline'] / 60)) }}" required>
  36. <div class="invalid-feedback">{{ textError('sets[timeonline]') }}</div>
  37.  
  38. <input type="hidden" value="60" name="mods[timeonline]">
  39. </div>
  40.  
  41. <p class="text-muted fst-italic">
  42. {{ __('settings.online_time_hint') }}
  43. </p>
  44.  
  45. <button class="btn btn-primary">{{ __('main.save') }}</button>
  46. </form>