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

  function getVar($type)
  {    
    $data['varDetail'] = [
        [ 'id' => 'var_Reference', 'name' => 'Reference', 'column' => 'Reference' ],
        [ 'id' => 'var_Year', 'name' => 'Year', 'column' => 'Year' ],
        [ 'id' => 'var_Brand', 'name' => 'Brand', 'column' => 'Brand' ],
        [ 'id' => 'var_Model', 'name' => 'Model', 'column' => 'Model' ],
        [ 'id' => 'var_Condition', 'name' => 'Condition', 'column' => 'Condition' ],
        [ 'id' => 'var_Box', 'name' => 'Box', 'column' => 'Box' ],
        [ 'id' => 'var_Paper', 'name' => 'Paper', 'column' => 'Paper' ],
        [ 'id' => 'var_Metal', 'name' => 'Metal', 'column' => 'Metal' ],
    ];
    $data['varDetail_2'] = [    
        [ 'id' => 'var_Item', 'name' => 'Stock #', 'column' => 'Stock' ],
        [ 'id' => 'var_MM', 'name' => 'MM', 'column' => 'MM' ],
        [ 'id' => 'var_Bracelet', 'name' => 'Bracelet', 'column' => 'Bracelet' ],
        [ 'id' => 'var_Dial', 'name' => 'Dial', 'column' => 'Dial' ],
        [ 'id' => 'var_Bezel', 'name' => 'Bezel', 'column' => 'Bezel' ],
        [ 'id' => 'var_Links', 'name' => 'Links', 'column' => 'Links' ],
        [ 'id' => 'var_Movement', 'name' => 'Movement', 'column' => 'Movement' ],
        [ 'id' => 'var_Case', 'name' => 'Case', 'column' => 'Case' ],
    ]; 

         

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