Attendance Record
Enter the number of days off for each absence spell to calculate Bradford Factor points.
| Date | Number Of Days off? | Total Number of Days off? | Bradford Factor Points |
|---|---|---|---|
| 1st Absence | 1 X 1 X {{----}} | @php $total_days = 0; $total_points = $grand_total = 0; if(count($attendanceRecords)>0 && isset($attendanceRecords[0])) { $bradford_points = $attendanceRecords[0]['no_of_workdays']; $total_days = $attendanceRecords[0]['no_of_workdays']; $total_points = $attendanceRecords[0]['no_of_workdays']; } $grand_total = $total_points; @endphp{{$total_days}} | {{$total_points}} |
| 2nd Absence | @php if(count($attendanceRecords)>0 && isset($attendanceRecords[1])) { $total_days += $attendanceRecords[1]['no_of_workdays']; $bradford_points = 2*2*$total_days; $total_points = $bradford_points; } else { $total_days = 0; $bradford_points = 0; $total_points = 0; } $grand_total = ($total_points != 0) ? $total_points : $grand_total; @endphp2 X 2 X {{----}} | {{$total_days}} | {{$total_points}} |
| 3rd Absence | @php if(count($attendanceRecords)>0 && isset($attendanceRecords[2])) { $total_days += $attendanceRecords[2]['no_of_workdays']; $bradford_points = 3*3*$total_days; $total_points = $bradford_points; } else { $total_days = 0; $bradford_points = 0; $total_points = 0; } $grand_total = ($total_points != 0) ? $total_points : $grand_total; @endphp3 X 3 X {{----}} | {{$total_days}} | {{$total_points}} |
| 4th Absence | @php if(count($attendanceRecords)>0 && isset($attendanceRecords[3])) { $total_days += $attendanceRecords[3]['no_of_workdays']; $bradford_points = 4*4*$total_days; $total_points = $bradford_points; } else { $total_days = 0; $bradford_points = 0; $total_points = 0; } $grand_total = ($total_points != 0) ? $total_points : $grand_total; @endphp4 X 4 X {{----}} | {{$total_days}} | {{$total_points}} |
| 5th Absence | @php if(count($attendanceRecords)>0 && isset($attendanceRecords[4])) { $total_days += $attendanceRecords[4]['no_of_workdays']; $bradford_points = 5*5*$total_days; $total_points = $bradford_points; } else { $total_days = 0; $bradford_points = 0; $total_points = 0; } $grand_total = ($total_points != 0) ? $total_points : $grand_total; @endphp5 X 5 X {{----}} | {{$total_days}} | {{$total_points}} |
Detailed record of each absence period.
| Start Date | Return Date | Number of Days Off | Day(s) of The Week | Sick Note Provided | Return To Work Interview | |
|---|---|---|---|---|---|---|
| {{ (isset($attendanceRecord['start_date'])) ? date(config('choicescrm.date_format_forms'), strtotime($attendanceRecord['start_date'])): '' }} | {{ (isset($attendanceRecord['return_date'])) ? date(config('choicescrm.date_format_forms'), strtotime($attendanceRecord['return_date'])): '' }} | {{ (isset($attendanceRecord['no_of_workdays'])) ? $attendanceRecord['no_of_workdays']: '' }} | {{ (isset($attendanceRecord['no_of_workdays'])) ? $attendanceRecord['days_of_the_week']: '' }} | {{ (isset($attendanceRecord['no_of_workdays'])) ? $attendanceRecord['sick_note_provided']: '' }} | {{--{{ $attendanceRecord['return_to_work_interview'] }} | --}}View |
| No record found | ||||||