Appearance
Wovosoft\BkbOffices\Models\RegionalAuditOffice
| Title | Description | 
|---|---|
| uses table | offices | 
| Purpose | Distinguishes the Regional Audit Offices from other Offices by office type rao | 
This model has relationship with DivisionalAuditOffice which is defined by divisionalAuditOffice (belongsTo) methods.
Get Divisional Audit Office
$rao = \Wovosoft\BkbOffices\Models\RegionalAuditOffice::first();
$rao->divisionalAuditOffice; // returns divisional audit office of the RAO 
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