Updates

@csrf
@foreach ($complaints as $key => $complaint) @php $i = "Pending" @endphp @php $j = "Inprocess" @endphp @php $k = "Resolved" @endphp @endforeach
Sr.No Site Name Complaint Update By Date Status Action
{{$key +1}} {{$complaint->unit_name}} {{$complaint->complaint_description}} {{$complaint->name}} {{date("d-m-Y", strtotime($complaint->created_at))}} @php $var = $complaint->complaint_status=="Resolved" @endphp @php $varp = $complaint->complaint_status=="Pending" @endphp @php $vari = $complaint->complaint_status=="Inprocess" @endphp @if($var == "Resolved") @endif @if($varp == "Pending") @endif @if($vari == "Inprocess") @endif