{{ Form::model($all_rules, ['route' => ['vmsacars.admin.rules'], 'method' => 'post']) }}

Rules

These are rules that a PIREP is rated by. There are thresholds for some rules and the points that are deducted from the PIREP score for a violation

  • Parameter - the threshold at which this is triggered
  • Delay - Only trigger a violation after this amount of time (seconds)
  • Repeatable - If this violaton can be repeated
  • Cooldown - If repeatable, wait this time until triggering again (seconds)

@foreach($all_rules as $rule) @endforeach
Threshold Points Delay Repeatable Cooldown Enabled

{{ $rule->name }}

{{ $rule->description }}

@if($rule->has_parameter) {{ Form::input('text', $rule->id.'_parameter', $rule->parameter, [ 'class' => 'form-control', 'style' => 'width: 5em', ]) }} @endif {{ Form::number($rule->id.'_points', $rule->points, [ 'class' => 'form-control', 'style' => 'width: 5em', ]) }} {{ Form::number($rule->id.'_delay', $rule->delay, [ 'class' => 'form-control', 'style' => 'width: 5em', ]) }} {{ Form::hidden($rule->id.'_repeatable', 0) }} {{ Form::checkbox($rule->id.'_repeatable', null, $rule->repeatable) }} {{ Form::number($rule->id.'_cooldown', $rule->cooldown, [ 'class' => 'form-control', 'style' => 'width: 5em', ]) }} {{ Form::hidden($rule->id.'_enabled', 0) }} {{ Form::checkbox($rule->id.'_enabled', null, $rule->enabled) }}
{{ Form::button('Save', ['type' => 'submit', 'class' => 'btn btn-success']) }}
{{ Form::close() }}