@foreach($timeslots as $timeslot)
@php
if($this->selectedTimeSession===$timeslot){
$colSpan = 6;
$padding = 'padding-right:2px;';
$showNext = 'display:block;padding-left:4px;';
}else{
$colSpan = 12;
$padding = 'padding-right:0px;';
$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 !!}
{{ $this->buttonType }}>
<{{ $this->buttonType }}
type="{{ $this->type }}"
class="btn btn-secondary {{ $this->class }}" style="{{ $showNext }}">
{!! $this->icon !!} Next
{{ $this->buttonType }}>
@endforeach