@php $vars = [ ['label' => 'Top', 'name' => 'pt', 'key' => 'pt'], ['label' => 'Right', 'name' => 'pr', 'key' => 'pr'], ['label' => 'Bottom', 'name' => 'pb', 'key' => 'pb'], ['label' => 'Left', 'name' => 'pl', 'key' => 'pl'] ]; $arr = [ 'min' => '0', 'max' => '5', 'value' => $value ]; @endphp
@foreach($vars as $var)
@include('template::partials.inputs.select', array_merge($var, $arr))
@endforeach