/home/techb158/ileadtechnology.com/SSM/app/Models/configuration/employee
NameSizeModeActions
AttendanceType.php20710644editdlrm
Department.php13020644editdlrm
Designation.php25510644editdlrm
EmployeeCategory.php15560644editdlrm
EmployeeDocumentType.php13340644editdlrm
EmployeeGroup.php13660644editdlrm
LeaveType.php20130644editdlrm
PayHead.php18720644editdlrm
Edit: /home/techb158/ileadtechnology.com/SSM/app/Models/configuration/employee/AttendanceType.php (2071B)
'array']; protected $primaryKey = 'id'; protected $table = 'employee_attendance_types'; protected static $logName = 'employee_attendance_type'; protected static $logFillable = true; protected static $logOnlyDirty = true; protected static $ignoreChangedAttributes = ['updated_at']; public function attendances() { return $this->hasMany('App\Models\Employee\Attendance', 'employee_attendance_type_id'); } public function payrollTemplateDetails() { return $this->hasMany('App\Models\Employee\PayrollTemplateDetails', 'employee_attendance_type_id'); } public function getNameWithAlias() { return $this->name.' ('.$this->alias.')'; } public function getOption(string $option) { return array_get($this->options, $option); } public function scopeFilterById($q, $id) { if (! $id) { return $q; } return $q->where('id', '=', $id); } public function scopeFilterByName($q, $name, $s = 0) { if (! $name) { return $q; } return $s ? $q->where('name', '=', $name) : $q->where('name', 'like', '%'.$name.'%'); } public function scopeFilterByAlias($q, $alias, $s = 0) { if (! $alias) { return $q; } return $s ? $q->where('alias', '=', $alias) : $q->where('alias', 'like', '%'.$alias.'%'); } public function scopeFilterbyStatus($q, $status) { return $q->where('is_active', $status); } }