This new module of our online generator allows you to add the new entries to your dashboard.

By default, if you create your administration panel, download it and log in, you will see an empty dashboard with text “You are connected”, like this:

The idea behind it is that you become almost empty HomeController.Php and empty Home.blade.php File and you can then add whatever you want, manually in the Laravel code.


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


@extends('layouts.app')

@section('content')

    <div class="row">
        <div class="col-md-10">
            <div class="panel panel-default">
                <div class="panel-heading">@lang('quickadmin.qa_dashboard')</div>

                <div class="panel-body">
                    @lang('quickadmin.qa_dashboard_text')

                </div>
            </div>
        </div>
    </div>

@endsection

Because we cannot “guess” what you want to see on your dashboard.

But recently, our customers have asked for the ability to see new entries somewhere in one view, such as the dashboard. So here is – a new module “Dashboard widgets”.

After installing the module, you will see a new menu item in your online generator – called “Dashboard widgets”.

There, you can add widgets, which will not appear online but will be displayed after downloading the panel, install and connect.

Each “widget” is, basically, a CRUD with the most recent entries – you can choose, how much you want to be displayed (by default is 5).

Let’s say that you have created 3 widgets, with 5 inputs indicated.

This is what it will look like in your downloaded panel.

And here is the code generated in HomeController.Php::


public function index()
{
    $incomes = \App\Income::latest()->limit(5)->get(); 
    $expenses = \App\Expense::latest()->limit(5)->get(); 
    $users = \App\User::latest()->limit(5)->get(); 

    return view('home', compact( 'incomes', 'expenses', 'users' ));
}

Thus, this new module will help you see the new most important cruels that you choose – like the latest users or transactions recorded.

Here is also a video version – a quick demo:

https://www.youtube.com/watch?v=IGF0VHC24FK

Connect to your QuickadminPanel and check it.



Technology

Another Tech Information

Similar Posts