<?php

namespace App\Modules\HR\Attendance\Repositories;

use App\Models\User;

class AttendanceReminderRepository
{
    public function missingCheckoutReminderExists(User $user, int $recordId): bool
    {
        return $user->notifications()
            ->where('data->type', 'attendance_missing_checkout')
            ->where('data->attendance_record_id', $recordId)
            ->exists();
    }
}
