Created
February 7, 2022 10:54
-
-
Save puikinsh/de3cc1f191b38ef12ef93a756e5aeb5a to your computer and use it in GitHub Desktop.
AdminLTE Laravel Integration - controller
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php namespace App\Http\Controllers; | |
use App\Http\Requests; | |
use App\Http\Controllers\Controller; | |
use Illuminate\Http\Request; | |
class TestController extends Controller { | |
public function index() { | |
$data['tasks'] = [ | |
[ | |
'name' => 'Design New Dashboard', | |
'progress' => '87', | |
'color' => 'danger' | |
], | |
[ | |
'name' => 'Create Home Page', | |
'progress' => '76', | |
'color' => 'warning' | |
], | |
[ | |
'name' => 'Some Other Task', | |
'progress' => '32', | |
'color' => 'success' | |
], | |
[ | |
'name' => 'Start Building Website', | |
'progress' => '56', | |
'color' => 'info' | |
], | |
[ | |
'name' => 'Develop an Awesome Algorithm', | |
'progress' => '10', | |
'color' => 'success' | |
] | |
]; | |
return view('test')->with($data); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment