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

  function getVar($type)
  {    
    $data['varDetail'] = [
        [ 'id' => 'var_Item', 'name' => 'Item', 'column' => 'Item' ],
        [ 'id' => 'var_Section', 'name' => 'Type', 'column' => 'Section' ],
        [ 'id' => 'var_Metal_Type', 'name' => 'Metal Type', 'column' => 'MetalType' ],
        [ 'id' => 'var_Metal_Wt', 'name' => 'Metal Weight', 'column' => 'MetalWt' ],
        [ 'id' => 'var_DiamondPcs', 'name' => 'Diamond Pcs.', 'column' => 'DiamondPcs' ],
        [ 'id' => 'var_DiamondWeight', 'name' => 'Diamond Weight', 'column' => 'DiamondWeight' ],
    ];

    $data['varDetail_2'] = [
        [ 'id' => 'var_Center_Shape', 'name' => 'Center Stone Shape', 'column' => 'CenterStoneShape' ],
        [ 'id' => 'var_Center_Color', 'name' => 'Center Stone Weight', 'column' => 'CenterStoneSizes' ],
        [ 'id' => 'var_CenterStoneClarity', 'name' => 'Center Stone Clarity', 'column' => 'CenterStoneClarity' ],
        [ 'id' => 'var_CenterStoneCertificate', 'name' => 'Center Stone Cert.', 'column' => 'CenterStoneCertificate' ],
        [ 'id' => 'var_SideStonesDiaQuality', 'name' => 'Side Stones Quality', 'column' => 'SideStonesDiaQuality' ],
        [ 'id' => 'var_Gender', 'name' => 'Gender', 'column' => 'Gender' ],
        [ 'id' => 'var_Ring_Size', 'name' => 'Ring Size', 'column' => 'RingSize' ],
        // [ 'id' => 'var_MountingDiamondWeight', 'name' => 'Mounting Diamond Weight', 'column' => 'MountingDiamondWeight' ],
        // [ 'id' => 'var_ShankType', 'name' => 'Shank Type', 'column' => 'ShankType' ],
        // [ 'id' => 'var_TypeofDiamond', 'name' => 'Diamond Type', 'column' => 'TypeofDiamond' ],
        // [ 'id' => 'var_backtype', 'name' => 'Backtype', 'column' => 'backtype' ],
    ]; 


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