Livewire component for smoother check for location companies

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe
2025-05-05 13:55:28 +01:00
parent 5e2dba5483
commit 4469db0bd3
6 changed files with 61 additions and 16 deletions
+28
View File
@@ -0,0 +1,28 @@
<?php
namespace App\Livewire;
use App\Helpers\Helper;
use App\Models\Setting;
use Livewire\Component;
class LocationScopeCheck extends Component
{
public $mismatched = [];
public $setting;
public function check_locations()
{
$this->mismatched = Helper::test_locations_fmcs(false);
}
public function mount() {
$this->setting = Setting::getSettings();
$this->mismatched = Helper::test_locations_fmcs(false);
}
public function render()
{
return view('livewire.location-scope-check');
}
}