visavi/rotor

View on GitHub
resources/views/admin/settings/_offers.blade.php

Summary

Maintainability
A
0 mins
Test Coverage
@section('header')
    <h1>{{ __('settings.offers') }}</h1>
@stop

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

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

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