<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

  function getVar($type)
  {    
    $data['varDetail'] = [
        [ 'id' => 'var_Item', 'name' => 'Product #', 'column' => 'Item' ],
        [ 'id' => 'var_Jewelry_Type', 'name' => 'Jewelry Type', 'column' => 'Jewelry_Type' ],
        [ 'id' => 'var_Jewelry_Style', 'name' => 'Jewelry Style', 'column' => 'Jewelry_Style' ],
        [ 'id' => 'var_Brand', 'name' => 'Brand', 'column' => 'Brand' ],
        [ 'id' => 'var_Metal_Type', 'name' => 'Metal Type', 'column' => 'Metal_Type' ],
        [ 'id' => 'var_Metal_Color', 'name' => 'Metal Color', 'column' => 'Metal_Color' ],
        [ 'id' => 'var_Metal_Wt', 'name' => 'Metal Weight', 'column' => 'Metal_Wt' ],
        [ 'id' => 'var_Gender', 'name' => 'Gender', 'column' => 'Gender' ],
        [ 'id' => 'var_Ring_Size', 'name' => 'Ring Size', 'column' => 'Ring_Size' ],
        [ 'id' => 'var_Earring_Back', 'name' => 'Earring_Back', 'column' => 'Earring_Back' ],
        [ 'id' => 'var_Length', 'name' => 'Length', 'column' => 'Length' ]
    ]; 

    $data['varCenterStone'] = [
        [ 'id' => 'var_Center_Stone_Type', 'name' => 'Center Stone Name', 'column' => 'Center_Stone_Type' ],
        [ 'id' => 'var_Center_Shape', 'name' => 'Center Stone Shape', 'column' => 'Center_Shape' ],
        [ 'id' => 'var_Center_Color', 'name' => 'Center Stone Color', 'column' => 'Center_Color' ],
        [ 'id' => 'var_Center_Clarity', 'name' => 'Center Stone Clarity', 'column' => 'Center_Clarity' ],
        [ 'id' => 'var_Center_Wt', 'name' => 'Center Stone Weight', 'column' => 'Center_Wt' ],
        [ 'id' => 'var_GIA_Certificate', 'name' => 'Certificate', 'column' => 'GIA_Certificate' ]
    ]; 

    $data['varSideStone'] = [
        [ 'id' => 'var_Side_Stone_Type', 'name' => 'Name', 'column' => 'Side_Stone_Type' ],
        [ 'id' => 'var_Side_Shape', 'name' => 'Shape', 'column' => 'Side_Shape' ],
        [ 'id' => 'var_Side_Color', 'name' => 'Color', 'column' => 'Side_Color' ],
        [ 'id' => 'var_Side_Clarity', 'name' => 'Clarity', 'column' => 'Side_Clarity' ],
        [ 'id' => 'var_Side_Wt', 'name' => 'Weight', 'column' => 'Side_Wt' ]
    ];      

    $var = (!empty($data[$type])) ? $data[$type] : [];
    return  $var;
  }
