edit delay and penalty calculations
This commit is contained in:
@@ -71,7 +71,9 @@ class AttendanceController extends Controller
|
||||
}
|
||||
if ($user && !empty($user->attendances)) {
|
||||
foreach ($user->attendances as $att) {
|
||||
$date = $att->entered_at != null ? Jalalian::fromCarbon(Carbon::parse($att->entered_at)) : null;
|
||||
$date = $att->entered_at != null
|
||||
? \App\Support\JalaliHelper::fromDateTime($att->entered_at)
|
||||
: null;
|
||||
$att->date = $date != null ? $date->format('Y/m/d') : null;
|
||||
if ($att->duration != null && $date != null && $now->getMonth() == $date->getMonth()) {
|
||||
[$h, $m, $sec] = explode(':', $att->duration);
|
||||
|
||||
Reference in New Issue
Block a user