Files
new_raffles/resources/views/livewire/toggle-switch.blade.php
2025-07-27 17:40:56 +05:45

12 lines
583 B
PHP

<div class="ms-1 header-item d-none d-sm-flex dashboard-switch">
<label class="switch">
<input type="checkbox" id="dashboard-toggle-btn" aria-label="Toggle Dashboard"
@checked(auth()->user()->active_sidebar !== config('app.sidebar.default')) wire:change="toggle($event.target.checked)">
<div class="slider round">
<span class="on">{{ config('app.sidebar.other') == 'sidebar' ? 'CMS' : 'CPM' }}</span>
<span class="off">{{ config('app.sidebar.default') == 'sidebar' ? 'CMS' : 'CPM' }}</span>
</div>
</label>
</div>