@if(count($result)>0) @php $cr_date = date('Y-m-d H:i:s'); @endphp @foreach ($result as $value) @php $section_title = ""; $section_data = $value["section_data"]; if(str_contains($section_data,'{"')){ $section_title = json_decode($section_data); $section_title = implode(", ",array_keys((array)$section_title)); }else{ $section_title = $section_data; } //dd($section_data); @endphp @endforeach
Section Topic Assignment Title Activated Date End Date Total Students Total Attended Action
{{ $section_title }} {{ $value["topic_name"] }} {{ $value["test_title"] }} {{ $value["test_start_date"] }} {{ $value["test_end_date"] }} {{ $value["student_count"] }} {{ $value["test_attend"] }}
@else
For the given inputs, test results are not found.
@endif
{!! $result->appends(request()->all())->links() !!}