All project works good one day ago, I cannot change any system file or something like that. But now blade if statements not working.
My blade code is
<html>
<body>
@if($success == "True")
<script>
window.parent.successPayment();
</script>
@else
<script>
window.parent.failedPayment("{{$message}}");
</script>
@endif
After rendering
<html>
<body>
@if ($success == "True")
<script>
window.parent.successPayment();
</script>
<?php else: ?>
<script>
window.parent.failedPayment("<?php echo e($message); ?>");
</script>
<?php endif; ?>
</body>
</html>
If statement not rendering. I cannot solve this problem. Anyone know how can I fix this?
Parse error: syntax error, unexpected 'endif' (T_ENDIF), expecting end of file (View: /var/www/vhosts/mysite.site/mysite.site/resources/views/dashboard/test.blade.php)
php artisan view:clear.