<?php $email_attach=false; ?> @if(condition) @foreach(condition) @if(!$email_attach)//I don't wy It's not working here do stuff @endif @endforeach @endif
Please note that all pasted data is publicly available.