{{-- x-classroom-poll-widget Rendered INSIDE #panel-poll in live.blade.php (FIX BUG-P1). No longer a floating overlay — it lives in the sidebar poll tab. FIX BUG-P1: Widget is now placed inside #panel-poll, not outside the panel. FIX BUG-P2: No fixed/absolute positioning needed — it flows naturally in the panel. FIX BUG-P3: sessionId prop is accepted but not needed in template (used by JS). --}} @props(['sessionId', 'poll' => null, 'isTeacher' => false])
{{-- Question --}}

📊 @if($isTeacher) Active Poll @else Quick Question! 🎯 @endif

{{ $poll?->question ?? '' }}

@if($isTeacher) Vote now! @else Quick question time! Answer now! 🎯 @endif

{{-- Options --}}
{{-- Populated dynamically by pollShowWidget() in live.blade.php --}} @if($poll) @php $options = is_array($poll->options) ? $poll->options : json_decode($poll->options, true) ?? []; @endphp @foreach($options as $i => $opt)
@endforeach @endif
{{-- Footer --}}
0 votes @if($isTeacher) @endif