@php $sn = 1; foreach($allCouncil as $ac){ if($ac->to_date != null) $to_dt = date("d-m-Y",strtotime($ac->to_date)); else $to_dt = ""; @endphp @php ++$sn; } @endphp
S.No. Enroll No/Enroll Year Name Region From Date To Date
{{ $sn; }} {{ $ac->enroll_no."/".$ac->enroll_yr }} {{ $ac->user_name }} @php $district = ''; $rr = DB::table('cishc_standing_council_region')->select('master_district.district_name_english') ->leftJoin('master_district','master_district.district_code','=','cishc_standing_council_region.district') ->where('stn_cnl_adv_id','=',$ac->id) ->where('cishc_standing_council_region.display','=','Y')->get(); foreach($rr as $dis){ $district = $dis->district_name_english.", ".$district; } echo rtrim($district, ', '); @endphp {{ date("d-m-Y",strtotime($ac->from_date)) }} {{ $to_dt }}
@csrf