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

Metrics {{--
Datatable initialized from HTML table
--}}

@foreach($platform->metrics as $metric) @endforeach
ID Title Type Type Values Description Actions
{{ $metric->id }} {{ $metric->title }} {{ $metric->type }} @if($metric->type == 'Dropdown') @foreach($metric->type_values as $typeValue) {{ $typeValue }}
@endforeach @elseif($metric->type == 'Hidden') @php $values = explode(':', $metric->type_values); echo $platform->metrics->where('id', $values[0])->first()->title . "
" . $values[1] . "
" . $platform->metrics->where('id', $values[2])->first()->title; @endphp @else {{ $metric->type_values }} @endif
{{ $metric->description }}
@endsection @section('scripts') @endsection