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