text: require('./bootstrap');
  
  window.Vue = require('vue').default;
  
  import VueRouter from 'vue-router'
  Vue.use(VueRouter)
  
  import { Form, HasError, AlertError } from 'vform'
  window.Form = Form
  Vue.component(HasError.name, HasError)
  Vue.component(AlertError.name, AlertError)
  
  import Profile from './components/Profile'
  import Dashboard from './components/Dashboard'
  import Users from './components/Users'
  import Developer from './components/Developer'
  
  import moment from 'moment'
  
  import VueProgressBar from 'vue-progressbar'
  const options = {
      color: '#bffaf3',
      failedColor: '#874b4b',
      thickness: '5px',
      transition: {
        speed: '0.2s',
        opacity: '0.6s',
        termination: 300
      },
      autoRevert: true,
      location: 'top',
      inverse: false
  }
  Vue.use(VueProgressBar, options)
  
  import Swal from 'sweetalert2'
  window.Swal = Swal
  const Toast = Swal.mixin({
      toast: true,
      position: 'top-end',
      showConfirmButton: false,
      timer: 2000,
      timerProgressBar: true,
      didOpen: (toast) => {
        toast.addEventListener('mouseenter', Swal.stopTimer)
        toast.addEventListener('mouseleave', Swal.resumeTimer)
      }
  })
  
  window.Toast = Toast
  
  window.Fire = new Vue()
  
  let routes = [
      { path: '/profile', component: Profile },
      { path: '/dashboard', component: Dashboard },
      { path: '/users', component: Users },
      { path: '/developer', component: Developer },
  ]
  
  const router = new VueRouter({
      mode: 'history',
      routes
  })
  
  Vue.filter('upText', function (text) {
      if (!text) return ''
      text = text.toString()
      return text.charAt(0).toUpperCase() + text.slice(1)
  })
  
  Vue.filter('myDate', function(created){
      return moment(created).format('MMMM Do YYYY, h:mm:ss a')
  })
  
  Vue.component('pagination', require('laravel-vue-pagination'));
  
  Vue.component('example-component', require('./components/ExampleComponent.vue').default);
  
  const app = new Vue({
      el: '#app',
      router,
      data:{
          search: '',
      },
      methods:{
          searchit: _.debounce(() => {
              Fire.$emit('searching')
          }, 1000)
      }
  });
  