Menu

## TemplateItem extends Model
in package
uses SoftDeletes, HasFactory

TemplateItem.php : 30

Class TemplateItem

Model for managing items within payroll templates.

##### Tags

mixin

### Table of Contents

#### Properties

$category_value : decimal
$created_at : DateTime
$deleted_at : DateTime
$id : int
$item_id : int
$paycategory : PayCategory
$paycategory_id : int
$payrollitem : PayrollItem
$payrolltemplate : PayrollTemplate
$template_id : int
$updated_at : DateTime
$fillable : mixed
$with : mixed

#### Methods

paycategory() : BelongsTo
  Get the pay category for this template item.
payrollitem() : BelongsTo
  Get the payroll item for this template item.
payrolltemplate() : BelongsTo
  Get the payroll template for this item.

### Properties

#### $category_value

TemplateItem.php : 0
`public decimal $category_value`

#### $created_at

TemplateItem.php : 0
`public DateTime $created_at`

#### $deleted_at

TemplateItem.php : 0
`public DateTime $deleted_at`

#### $id

TemplateItem.php : 0
`public int $id`

#### $item_id

TemplateItem.php : 0
`public int $item_id`

#### $paycategory read-only

TemplateItem.php : 0
`public PayCategory $paycategory`

#### $paycategory_id

TemplateItem.php : 0
`public int $paycategory_id`

#### $payrollitem read-only

TemplateItem.php : 0
`public PayrollItem $payrollitem`

#### $payrolltemplate read-only

TemplateItem.php : 0
`public PayrollTemplate $payrolltemplate`

#### $template_id

TemplateItem.php : 0
`public int $template_id`

#### $updated_at

TemplateItem.php : 0
`public DateTime $updated_at`

#### $fillable

TemplateItem.php : 37
`protected mixed $fillable = ['template_id', 'item_id', 'paycategory_id', 'category_value']`

#### $with

TemplateItem.php : 35
`protected mixed $with = ['payrollitem', 'paycategory']`

### Methods

#### paycategory()

TemplateItem.php : 64

Get the pay category for this template item.

`public paycategory() : BelongsTo`

##### Return values

BelongsTo

#### payrollitem()

TemplateItem.php : 54

Get the payroll item for this template item.

`public payrollitem() : BelongsTo`

##### Return values

BelongsTo

#### payrolltemplate()

TemplateItem.php : 44

Get the payroll template for this item.

`public payrolltemplate() : BelongsTo`

##### Return values

BelongsTo

## Search results