Here is my condition in php, i am trying it to convert to laravel
<?php
if ($DriverDetail['IsActive']=='1')
{
?>
<span class='account-active'></span>
<?php
}
else
{
?>
<span class='account-blocked'></span>
<?php
}
?>
I tried with
{{ $DriverDetail['IsActive'] }}
and concatinated the <span class='account-blocked'></span> inside the {{}}
But which is the best way to have the condition in laravel which is equivalent to my php code
Aucun commentaire:
Enregistrer un commentaire