@foreach($timeslots as $timeslot) @php if($this->selectedTimeSession===$timeslot){ $colSpan = 6; $showNext = 'display:block;'; }else{ $colSpan = 12; $showNext = 'display:none;'; } @endphp
<{{ $this->buttonType }} data-schedulerselectedtime="{{ $selectedTimeSession }}" x-data wire:click="setSessionToSelectValue('{{ $timeslot }}')" type="{{ $this->type }}" data-timeslot="{{ $timeslot }}" class="btn btn-primary {{ $this->class }}"> {!! $this->icon !!} {!! $timeslot !!} buttonType }}>
<{{ $this->buttonType }} type="{{ $this->type }}" class="btn btn-secondary {{ $this->class }}" style="{{ $showNext }}"> {!! $this->icon !!} Next buttonType }}>
@endforeach