@extends('layout.default') @section('styles') @endsection @section('content')

Rules | create

@method('PUT') @csrf
@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')
id}}[third_num]" value="{{ isset(explode(',', $metric->pivot->if_condition)[4]) ? explode(',', $metric->pivot->if_condition)[4] : '' }}" class="form-control"/>
@else
id}}[third_num]" value="{{ isset(explode(',', $metric->pivot->if_condition)[4]) ? explode(',', $metric->pivot->if_condition)[4] : '' }}" class="form-control"/>
@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')
id}}[third_num]" class="form-control"/>
@else
id}}[third_num]" class="form-control"/>
@endif @endforeach @endif
@endsection @section('scripts') @endsection