Appearance
Wovosoft\BkbOffices\Models\DivisionalAuditOffice
| Title | Description | 
|---|---|
| uses table | offices | 
| Purpose | Distinguishes the Divisional Audit Offices from other Offices by office type dao | 
This model has relationship with RegionalAuditOffice which is defined by regionalAuditOffices (hasMany) methods.
Get Regional Audit Offices
$dao = \Wovosoft\BkbOffices\Models\DivisionalAuditOffice::first();
$dao->regionalAuditOffices; // returns regional audit offices of the DAO 
N.B.: type is automatically initiated when creating/updating new CrmRmOffice instance.
Checking type
There are custom attributes to check the type of Office Type
- is_branch
- is_corporate_branch
- is_div_office
- is_dao_office
- is_rao_office
- is_crm_rm_office
- is_head_office