well, you are passing id of client in a route i.e
Route::get('/dash/{id}', 'DashController@index');
Now in controller , get that id:
public function index($id) {
$client_id = $id;
// now u can fetch details of client having passed id and u can pass that in view using compact
$client_details = [
'data' => 'goes here',
];
return view('dash.maindash',compact('client_details'));
}
In maindash.blade.php:
you can dynamically render details of client therefore there will be different dashboard for client. E.g:
<p>Client name: {{ $client_details['name'] }}</p>
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…