Thanks for the info :)
Do you have any idea how to make it work? Currently, code above is not working. Been trying some tweaks and changes but still no luck :(
Yes, it maybe not the best approach for this but we have come into a scenario like this and we're stuck :D Let's say I want to have a CRUD for an email template. PHP tags are present in the template. How am I gonna edit it?
You are talking about 'php tags' but what you are showing is blade tag @php
You render the content raw with blade {!! data!!} but then it contains blade tags. It would need to pass through the render process for a second time for any blade tags in data to be processed.
You may be able to render the data before passing it to the view but I doubt this is within your level of ability
Oh, my bad. hahaha It was supposed to be a native php tag in the db. But still I've been looking for some fix or alternative where php and html are both rendered in a blade template.