Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

rahulrgodhani's avatar

Laravel blade stops rendering

Hi all,

I am trying to add some HTML code to my laravel blade file, but the file stops rendering if I add HTML code.

Here is the link to my git repository.

gitlab.com/rahulrgodhani/estimate-system.git

Database file is included in the repository(database/estimate-system.sql) Use the above sql file instead of migration.

(login credentials: 0000000000, psswd: test123test)

There is only 1 commented portion from line 370 to line 395 in print-estimate-slip.blade.php

If the commented code is deleted, then it works fine. (I tried HTML comment as well as laravel blade comment) If it is uncommented or if comment is present, then it stops rendering.

Please help me as this is causing a lot of trouble.

I have removed most of the routes for security purpose.

skype: rahul_godhani

Tried commenting code, result: stops rendering Tried uncommenting code, result: stops rendering Tried deleting code, result: renders fine

error video: youtube.com/watch?v=x9zSFSZ-m34&ab_channel=RahulGodhani

0 likes
14 replies
rahulrgodhani's avatar

@tisuchi Yes I double checked and found no error in blade syntax. Also, no errors in Console, Network tabs(as seen in video). In elements tab only opening and closing tags of html, head and body are present. Nothing else

Tray2's avatar

I suggest taking a look at the rendered html, it will give you the clues to what is wrong. You probably have a tag that hasn't been properly closed or something like that.

rahulrgodhani's avatar

@Tray2 I checked it multiple times and I am not finding anything wrong with it. Please look into the video for further understanding. youtube.com/watch?v=x9zSFSZ-m34&ab_channel=RahulGodha

rahulrgodhani's avatar

@Tray2 The video starts with blade file which has HTML content. I have also attached link to my git in the above post. Hope you could take some time off and see what is causing this issue.

Tray2's avatar

@rahulrgodhani How hard is it to understand that you need to look at the html sent from the web server to the browser? The source code and any videos of the blade file doesn't tell shit, it's the html sent to the browser we need to see.

davidvandertuijn's avatar

Blank screens often occur when error_reporting and or display_errors are not enabled. Another way to find out the error message is to look in /storage/logs/laravel.log. Since I don't see any errors in your view, I think it has to do with the permissions for writing the compiled view. check if you have write permissions in storage/framework/views. you may also try php artisan view:clear.

rahulrgodhani's avatar

@davidvandertuijn Regarding error_reporting and or display_errors I have APP_DEBUG=true in my .env as well as in my config>app.php

Write permissions is given in storage/framework/views, each view opened has shows logs in this, except for print-estimate-slip.blade.php, this just shows commented path to the blade.

There is no log in /storage/logs/laravel.log

Bogey's avatar

You have a ton of javascript there. Does that commented code gets effected by javascript?

rahulrgodhani's avatar

@Bogey No, the commented code is not affected by javascript. The commented is pure HTML and is not dependent on javascript or php.

Bogey's avatar

@rahulrgodhani what about php code or blade directives, are there any of those in that commented block of code? Maybe some directives are misspelled or parenthesis missmatch

rahulrgodhani's avatar

@Bogey No, there’s nothing as such. I double checked in case if my IDE has missed something out. I checked the controller too, but couldn’t find anything.

Snapey's avatar

Load the page and using the dev tools in the browser inspect the request and response for that first page

Please or to participate in this conversation.