snipe-it/app/Http/Livewire/CategoryEditForm.php
2023-08-02 12:58:07 -07:00

43 lines
815 B
PHP

<?php
namespace App\Http\Livewire;
use Livewire\Component;
class CategoryEditForm extends Component
{
public $checkinEmail;
public $defaultEulaText;
public $eulaText;
public $requireAcceptance;
public $useDefaultEula;
public function mount()
{
}
public function render()
{
return view('livewire.category-edit-form');
}
public function getShouldDisplayEmailMessageProperty(): bool
{
return $this->eulaText || $this->useDefaultEula;
}
public function getEmailMessageProperty(): string
{
if ($this->useDefaultEula) {
return trans('admin/categories/general.email_will_be_sent_due_to_global_eula');
}
return trans('admin/categories/general.email_will_be_sent_due_to_category_eula');
}
}