athenahr/app/View/Components/AccountStatus.php

32 lines
570 B
PHP
Raw Normal View History

2021-10-25 02:28:42 +01:00
<?php
namespace App\View\Components;
use App\User;
use Illuminate\View\Component;
class AccountStatus extends Component
{
public $user;
2021-10-25 02:28:42 +01:00
/**
* Create a new component instance.
*
* @return void
*/
public function __construct($userId)
2021-10-25 02:28:42 +01:00
{
$this->user = User::findOrFail($userId);
2021-10-25 02:28:42 +01:00
}
/**
* Get the view / contents that represent the component.
*
* @return \Illuminate\Contracts\View\View|\Closure|string
*/
public function render()
{
return view('components.account-status');
}
}