You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
509 B
29 lines
509 B
2 months ago
|
<?php
|
||
|
|
||
|
namespace App\Livewire;
|
||
|
|
||
|
use App\Models\airflow;
|
||
|
use Livewire\Component;
|
||
|
|
||
|
class AirflowDataView extends Component
|
||
|
{
|
||
|
public $airflowId;
|
||
|
public $airflow;
|
||
|
|
||
|
public function mount($airflowId)
|
||
|
{
|
||
|
$this->airflowId = $airflowId;
|
||
|
$this->loadAirflowData();
|
||
|
}
|
||
|
|
||
|
public function loadAirflowData()
|
||
|
{
|
||
|
$this->airflow = Airflow::with('user')->find($this->airflowId);
|
||
|
}
|
||
|
|
||
|
public function render()
|
||
|
{
|
||
|
return view('livewire.airflow-data-view');
|
||
|
}
|
||
|
}
|