Fix on invoices, add delivery reference, wip on dashboard concurrency requests designed on template

This commit is contained in:
Ludovic CANDELLIER
2023-02-17 00:05:03 +01:00
parent 820a200e88
commit 900aa413a2
26 changed files with 555 additions and 130 deletions

View File

@@ -5,33 +5,20 @@ namespace App\Http\Controllers\Admin\Shop;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Repositories\Core\Auth\Users;
use App\Repositories\Shop\Dashboards;
class DashboardController extends Controller
{
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
$this->middleware('auth');
}
/**
* Show the application dashboard.
*
* @return
*/
public function index()
public function index(Request $request)
{
$data = [];
if (Users::hasRole('admin')) {
$dashboard = 'dashboard';
$data = [];
}
$data = $request->all();
$data = Dashboards::getStats($data);
dump($data);
return view('Admin.Shop.Dashboard.index', $data);
}