@foreach($tests as $test) @endforeach
Test id Name Price
{{ $test['id'] }} {{ $test['name'] }} {{ (isset($test['test_price']))?$test['test_price']['price']:$test['price'] }}