Hello, I am fetching one column from database where values can be "monthly or quarterly". I am passing that to view and in view I am running if condition to check whether the value is "monthly" or "quarterly" but its not working. Controller:
@if($main == "monthly") <option value="">Select Month*</option> @elseif($main == "quarterly") <option value="">Select Quarter*</option> @endif
Thanks in advance.