mirror of
https://github.com/usetrmnl/byos_laravel.git
synced 2026-01-13 15:07:49 +00:00
* feat: autojoin toggle * feat: auto add devices * feat: proxy feature * feat: support puppeteer in docker * feat: toggle to activate cloud proxy * feat: relay device information * feat: relay logs to cloud * feat: migrate on start * feat: calculate battery state, wifi signal * feat: eye candy for configure view * feat: update via api
10 lines
369 B
PHP
10 lines
369 B
PHP
@props(['percent'])
|
|
<flux:tooltip content="Battery Percent: {{ $percent }}%" position="bottom">
|
|
@if ($percent > 60)
|
|
<flux:icon.battery-full class="dark:text-zinc-200"/>
|
|
@elseif ($percent < 20)
|
|
<flux:icon.battery-low class="dark:text-zinc-200"/>
|
|
@else
|
|
<flux:icon.battery-medium class="dark:text-zinc-200"/>
|
|
@endif
|
|
</flux:tooltip>
|