mirror of
https://github.com/alexjustesen/speedtest-tracker.git
synced 2026-06-23 06:20:09 +00:00
a06b231eb6
Co-authored-by: Alex Justesen <1144087+alexjustesen@users.noreply.github.com>
23 lines
438 B
PHP
23 lines
438 B
PHP
<?php
|
|
|
|
namespace App\Livewire;
|
|
|
|
use App\Services\ScheduledSpeedtestService;
|
|
use Carbon\Carbon;
|
|
use Livewire\Attributes\Computed;
|
|
use Livewire\Component;
|
|
|
|
class NextSpeedtestBanner extends Component
|
|
{
|
|
#[Computed]
|
|
public function nextSpeedtest(): ?Carbon
|
|
{
|
|
return ScheduledSpeedtestService::getNextScheduledTest();
|
|
}
|
|
|
|
public function render()
|
|
{
|
|
return view('livewire.next-speedtest-banner');
|
|
}
|
|
}
|