@foreach($timeslots as $timeslot)
@php
if($this->selectedTimeSession===$timeslot){
$timeslotColspan = 'timeslotBut';
$colSpan = 'half';
$padding = 'padding:0 4px 0 0;';
$showNext = 'display:block;padding-left:4px;position:absolute;right:0;top:0;width:50%;';
$timeslotNextButton = ' timeslotNextBut';
}else{
$colSpan = '';
$padding = 'padding:0 0 0 0;';
$showNext = 'display:none;';
$timeslotNextButton = '';
}
@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 }} {{ $timeslotNextButton }}" style="{{ $showNext }}">
{!! $this->icon !!} Next
{{ $this->buttonType }}>
@endforeach