{{----}} {{----}} {{----}} @php $count = 1; @endphp @foreach($data as $key => $value) @php $days = array('Mon','Tue','Wed','Thu','Fri'); $attendingDays = json_decode($value->weekly_attendance); $diff = array_diff($days,$attendingDays); @endphp {{----}} {{----}} {{----}} @endforeach
Sr.No Student ID Student Name Student DOB Father Name Father Email Mother Name Mother Email Type Status School District Name School Name Attending Days Exempt Days Grade Start Date End Date Transportation Lunch Fee Language LTL
{{ $count++ }} {{ $value->student_id }} {{ $value->student_name }} {{ $value->dob }}{{ $value->father_name }}{{ $value->father_email }}{{ $value->mother_name }}{{ $value->mother_email }}{{ $value->enrollment_type }}{{ $value->status }} {{ $value->school_district_name }} {{ $value->school_name }} {{ implode(',', $attendingDays) }} {{ implode(',', $diff) }} {{ $value->grade_name }} {{ $value->enrollment_start_date }} {{ $value->enrollment_end_date }} {{ $value->transportation }} {{ $value->lunch_fee }} {{ $value->language }} {{ $value->long_term_leave }}