<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use Auth;

class IndexController extends Controller
{
  public function index()
  {
      return view('index');
  }

  /**
   * Get initial data for Vue.js application
   */
  public function vue()
  {
      $menuItems = [
          [
              'name' => 'strings.dashboard',
              'icon' => 'grid-outline',
              'link' => '/dashboard',
          ],
          [
              'name' => 'strings.customers',
              'icon' => 'people-outline',
              'link' => '/customers',
          ],
          [
              'name' => 'strings.users',
              'icon' => 'people-outline',
              'link' => '/users',
          ],
          [
              'name' => 'strings.purchase_orders',
              'icon' => 'file-text-outline',
              'link' => '/purchase-orders',
          ],
      ];
      $data = [
          'menuItems' => $menuItems,
      ];
      return $data;
  }
}
