@php $sn = 1; foreach($result as $ac){ $color = ""; if($ac->display == "N"){ $color = "background-color:lightgrey"; } @endphp @php ++$sn; } @endphp
S.No. Section (in Short) Section (in Full) Section (in Hindi) From Date Display
{{ $sn; }} {{ ucwords(lcfirst($ac->section_abbr)) }} {{ ucwords(lcfirst($ac->section_name)) }} {{ ucwords(lcfirst($ac->section_name_h)) }} {{ $ac->display }}
@csrf