@if ($errors->any())
@endif
Metrics
@foreach($rule->metrics as $key=>$metric)
{{ $key+1 }}. {{ $metric->title }}
{{ $metric->description }}
@if($metric->type == 'Dropdown')
@elseif($metric->type == 'Numeric')
@else
@endif
@endforeach
@if($rule->platform->metrics->pluck('id') != $rule->metrics->pluck('id'))
@php
$array = [];
foreach($rule->platform->metrics->pluck('id')->diff($rule->metrics->pluck('id')) as $a) {
array_push($array, $a);
}
@endphp
@foreach($platform->metrics->whereIn('id', $array) as $key=>$metric)
{{ $key + $rule->metrics->count() }}. {{ $metric->title }}
{{ $metric->description }}
@if($metric->type == 'Dropdown')
@elseif($metric->type == 'Numeric')
@else
@endif
@endforeach
@endif