<?php

namespace App\Helpers;

namespace App\Helpers;
use Request;
use App\Models\LogActivity as LogActivityModel;

class LogActivityHelper
{
    public static function LogPerangkinganActivity($userId, $extracurricularId, $nilaiAkhir, $tanggalPerangkingan)
    {
        $log = [
            'user_id' => $userId,
            'extracuricullar_id' => $extracurricularId,
            'final_score' => $nilaiAkhir,
            // 'date' => $tanggalPerangkingan,
        ];

        LogActivityModel::create($log);
    }

    // public static function getRankingLogs()
    // {
    //     return LogActivityModel::latest()->get();
    // }
}
