text: window._ = require('lodash');
  window.Popper = require('popper.js').default;
  
  try {
      require('bootstrap');
  } catch (e) {
  }
  
  window.axios = require('axios');
  window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
  
  let token = document.head.querySelector('meta[name="csrf-token"]');
  
  if (token) {
      window.axios.defaults.headers.common['X-CSRF-TOKEN'] = token.content;
  } else {
      console.error('CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token');
  }
  
  let api_token = document.head.querySelector('meta[name="api-token"]');
  
  if (api_token) {
      window.axios.defaults.headers.common['Authorization'] = 'Bearer ' + api_token.content;
  }
  
  // import Echo from 'laravel-echo'
  
  // window.Pusher = require('pusher-js');
  
  // window.Echo = new Echo({
  //     broadcaster: 'pusher',
  //     key: process.env.MIX_PUSHER_APP_KEY,
  //     cluster: process.env.MIX_PUSHER_APP_CLUSTER,
  //     encrypted: true
  // });
  