@csrf
@for ($i = 0; $i < $rows; $i++)
@for ($j = 0; $j < $inputsPerRow; $j++)
@php $input = $inputConfig[$i][$j] ?? ['type' => 'text', 'options' => []]; // Default to text input $placeholder = $placeholders[$i][$j] ?? 'Search'; // Default placeholder $name = $names[$i][$j] ?? 'name'; // Default placeholder $id = $ids[$i][$j] ?? 'id'; // Default placeholder @endphp @switch($input['type']) @case('text') @php // Check if 'customClass' is set in the input config, otherwise default to 'form-control' $class = isset($input['customClass']) ? 'form-control ' . $input['customClass'] : 'form-control'; @endphp @break @case('time') @php // Check if 'customClass' is set in the input config, otherwise default to 'form-control' $class = isset($input['customClass']) ? 'form-control ' . $input['customClass'] : 'form-control'; @endphp @break @case('select') @break @case('checkbox')
@break @default @endswitch
@endfor
@endfor
@if($reportType != '') @if($reportType == 'both')
@elseif($reportType =='pdf')
@elseif($reportType =='excel')
@else
@endif @else
@endif