Goal
My goal is to convert all the blade syntax to PHP.
In my decode.php
I converted almost all my blade syntax, but except one minor thing - the image.
I am not sure how to go around that.
What I have now :
<img src="/img/flags_3/flags/48/{{{ $distributor['hq_country']['name'] or '' }}}.png " width="20px" height="20px">
I am sure that
<?php echo isset( $distributor['hq_country']['name'] ) ? $distributor['hq_country']['name'] : '' ?>
will give me the same result as
{{{ $distributor['hq_country']['name'] or '' }}}
I normally use my blade syntax as part of my HTML attribute, but now I can't use the php code in the HTML attribute.
Any suggestion on this ?