How can I pass data from laravel controller to blade and access this blade in controller as html code.
Use render method to access blade in laravel controller
In your controller
$action = view('your_blade_file_path',compact('data_variable'))->render();
<div class="class name">
Now you can get this view code into your controller which can be used throught your controller method