source: app/Http/Controllers/Dashboard/IndexController.php@ c6b84df

develop
Last change on this file since c6b84df was c6b84df, checked in by beratkjufliju <kufliju@…>, 3 years ago

added fileTypes controller, notifications, excel export, edited views

  • Property mode set to 100644
File size: 584 bytes
RevLine 
[194a359]1<?php
2
3namespace App\Http\Controllers\Dashboard;
4
5use App\Helpers\Alert;
[c6b84df]6use App\Models\Department;
7use App\Models\Folder;
8use App\Models\File;
[194a359]9use App\Models\User;
10use App\Http\Controllers\Controller;
11
12class IndexController extends Controller
13{
14 public function index()
15 {
16 $counters = array(
17 "users" => User::count(),
18 );
19
20 return view("dashboard.index")->with([
21 "counters" => $counters,
[c6b84df]22 "departments" => Department::all(),
23 "folders" => Folder::all(),
24 "files" => File::all()
[194a359]25 ]);
26 }
27}
Note: See TracBrowser for help on using the repository browser.