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

Размер файла: 998B
@section('header')
    <h1>{{ __('settings.news') }}</h1>
@stop

<form method="post">
    @csrf
    <div class="mb-3{{ hasError('sets[sendprivatmailday]') }}">
        <label for="lastnews" class="form-label">{{ __('settings.news_main') }}:</label>
        <input type="number" class="form-control" id="lastnews" name="sets[lastnews]" maxlength="2" value="{{ getInput('sets.lastnews', $settings['lastnews']) }}" required>
        <div class="invalid-feedback">{{ textError('sets[lastnews]') }}</div>
    </div>

    <div class="mb-3{{ hasError('sets[postnews]') }}">
        <label for="postnews" class="form-label">{{ __('settings.news_per_page') }}:</label>
        <input type="number" class="form-control" id="postnews" name="sets[postnews]" maxlength="2" value="{{ getInput('sets.postnews', $settings['postnews']) }}" required>
        <div class="invalid-feedback">{{ textError('sets[postnews]') }}</div>
    </div>

    <button class="btn btn-primary">{{ __('main.save') }}</button>
</form>