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
|
Rev | Line | |
---|
[194a359] | 1 | <?php
|
---|
| 2 |
|
---|
| 3 | namespace App\Http\Controllers\Dashboard;
|
---|
| 4 |
|
---|
| 5 | use App\Helpers\Alert;
|
---|
[c6b84df] | 6 | use App\Models\Department;
|
---|
| 7 | use App\Models\Folder;
|
---|
| 8 | use App\Models\File;
|
---|
[194a359] | 9 | use App\Models\User;
|
---|
| 10 | use App\Http\Controllers\Controller;
|
---|
| 11 |
|
---|
| 12 | class 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.