Lae/app/View/Components/BillingCycle.php

31 lines
557 B
PHP
Raw Normal View History

2023-02-12 18:22:12 +00:00
<?php
namespace App\View\Components;
use Illuminate\View\Component;
class BillingCycle extends Component
{
public string $cycle = 'dynamic';
/**
* Create a new component instance.
*
* @return void
*/
public function __construct(null|string $cycle = 'dynamic')
{
$this->cycle = $cycle ?? 'dynamic';
}
/**
* Get the view / contents that represent the component.
*
* @return string
*/
public function render(): string
{
return trans('hosts.' . $this->cycle);
}
}