Published on : May 22, 2020

URL : https://loantap.in/dummy-app/sample-ps.job_type

Service Description : Fetch available job types in the system.

Input :

No input required.

Usage :

[product_services.get-taxonomy.job_types o.set=template.job_types /]

Logic :

  • Declare the array of job types with each will contain the following params:
    • description : Job Type Description
    • sub_description : Job Type sub description
    • title : Job Type label
    • slug : value of job type
  • Add the job sub type for each job type in the job type array.
  • Return the same.

Sample Output :

 array(3) 
[
    "salaried"       =>  array(5) 
        [
            "description"     => string(37) "(Ex. Working at MNC, Govt or similar)"
            "sub_description" => string(83) "<span class="font-bold">Type of Establishment</span> you are currently working with"
            "title"           => string(8) "Salaried"
            "slug"            => string(8) "salaried"
            "options"         =>  array(4) 
        ]
    "self-employed"  =>  array(5) 
    "business-owner" =>  array(5) 
]