@php //define left and right exam-center arrays $leftCenters = [3, 5, 9, 10, 11, 12, 14, 15, 20]; $rightCenters = [1, 2, 4, 6, 7, 13, 16, 17, 18, 19]; @endphp @if(in_array($examcenter_id, $leftCenters)) @elseif(in_array($examcenter_id, $rightCenters)) @endif