Skip to content

Instantly share code, notes, and snippets.

@puikinsh
Created February 7, 2022 10:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save puikinsh/de3cc1f191b38ef12ef93a756e5aeb5a to your computer and use it in GitHub Desktop.
Save puikinsh/de3cc1f191b38ef12ef93a756e5aeb5a to your computer and use it in GitHub Desktop.
AdminLTE Laravel Integration - controller
<?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