mirror of
https://github.com/snipe/snipe-it.git
synced 2026-02-04 18:15:43 +00:00
30 lines
563 B
PHP
30 lines
563 B
PHP
<?php
|
|
|
|
namespace App\Livewire;
|
|
|
|
use App\Helpers\Helper;
|
|
use App\Models\Setting;
|
|
use Livewire\Component;
|
|
|
|
class LocationScopeCheck extends Component
|
|
{
|
|
public $mismatched = [];
|
|
public $setting;
|
|
public $is_tested = false;
|
|
|
|
public function check_locations()
|
|
{
|
|
$this->mismatched = Helper::test_locations_fmcs(false);
|
|
$this->is_tested = true;
|
|
}
|
|
|
|
public function mount() {
|
|
$this->setting = Setting::getSettings();
|
|
}
|
|
|
|
public function render()
|
|
{
|
|
return view('livewire.location-scope-check');
|
|
}
|
|
}
|