* ``` */ class Checkbox extends Component { use HasAuthorizationProps; public string $id; public ?string $label; public ?string $description; public ?string $error; public string $labelPosition; public bool $disabled; public bool $hidden; public function __construct( string $id, ?string $label = null, ?string $description = null, ?string $error = null, string $labelPosition = 'right', bool $disabled = false, // Authorization props ?string $canGate = null, mixed $canResource = null, bool $canHide = false, ) { $this->id = $id; $this->label = $label; $this->description = $description; $this->error = $error; $this->labelPosition = $labelPosition; // Authorization setup $this->canGate = $canGate; $this->canResource = $canResource; $this->canHide = $canHide; // Resolve states based on authorization $this->disabled = $this->resolveDisabledState($disabled); $this->hidden = $this->resolveHiddenState(); } public function render() { return view('core-forms::components.forms.checkbox'); } }