19 lines
361 B
PHP
19 lines
361 B
PHP
<?php
|
|
|
|
namespace App\Livewire\Admin;
|
|
|
|
use App\Models\Host;
|
|
use Livewire\Attributes\Layout;
|
|
use Livewire\Component;
|
|
|
|
#[Layout('layouts.admin')]
|
|
class Hosts extends Component
|
|
{
|
|
public function render()
|
|
{
|
|
return view('livewire.admin.hosts', [
|
|
'hosts' => Host::query()->orderBy('datacenter')->orderBy('name')->get(),
|
|
]);
|
|
}
|
|
}
|