<?php

defined( 'BASEPATH' ) OR exit( 'No direct script access allowed' );

class Statistics extends MY_Controller {

  /**
   * Class constructor
   * 
   * @return void
   */
  public function __construct()
  {
    parent::__construct();

    if ( ! $this->zuser->is_logged_in ) r_s_jump('login');

    $this->load->model( 'Statistics_model' );
  }

  public function bussiness_type()
  {
    $data = $this->Statistics_model->bussiness_type();

    exit( get_json_response( 'success', $data ) );
  }

  /**
   * Statistik user berdasarkan jenis kelamin
   * 
   * @return void
   */
  public function gender()
  {
    $data = $this->Statistics_model->gender();

    exit( get_json_response('success', $data) );
  }
}