
    <div class="container">
     <br />
     <br />
     <br />
     <br />
      <h1 align="center">CSV Importer</h1>
      <br />
        <div id="message"></div>
      <div class="panel panel-default">
          <div class="panel-heading">
            <h3 class="panel-title">Select CSV File</h3>
          </div>
          <div class="panel-body">
            <div class="row" id="upload_area">
              <div class="col-md-5"></div>
                <div class="col-md-2">
                  Select File
                  <input type="file" file-model="uploadimage" id="uploadimage"  class="form-control fileinput">
                  <br />
                  <a href="/app/uploads/csv/sample.csv" target="_blank">Sample File</a>
                  <br>
                  <button  class="btn btn-primary" ng-click="uploadFile()">Upload</button>
                </div>
                <br /><br /><br /><br />
            </div>
            <div class="table-responsive" id="process_area" ng-if="data.length>0">

              <table class="table table-bordered">
                <tr>
                  <th ng-repeat="ct in cot track by $index">
                    <select ng-model="ct.col" class="form-control">
                        <option value="0">First Name</option>
                        <option value="1">Last Name</option>
                        <option value="2">Email</option>
                        <option value="3">Phone/Mobile</option>
                        <option value="4">Revenue Center</option>
                        <option value="5">Date of Joining</option>
                        <option value="6">Date of Birth</option>
                        <option value="7">Country</option>
                        <option value="8">Employee Code</option>
                        <option value="9">Department</option>
                        <option value="10">Designation</option>
                    </select>
                    </th>
                </tr>
                <tr ng-repeat="item in data">
                  <td ng-repeat="a in item">{{a}}</td>
                </tr>
              </table>
              <button ng-click="createData()" class="btn btn-success">Import</button>
            </div>
           
          </div>
        </div>
     </div>
