29 lines
481 B
PHP
29 lines
481 B
PHP
<?php
|
|
|
|
namespace App\Services;
|
|
|
|
use App\Models\Entry;
|
|
use Illuminate\Support\Collection;
|
|
use Illuminate\Support\Facades\Cache;
|
|
|
|
class EntryService
|
|
{
|
|
|
|
/**
|
|
* Create a new class instance.
|
|
*/
|
|
public function __construct()
|
|
{
|
|
//
|
|
}
|
|
|
|
public function isEntryLate(Entry $entry): bool
|
|
{
|
|
if ($entry->hasFlag('wave_late_fee')) {
|
|
return false;
|
|
}
|
|
|
|
return $entry->created_at > $entry->audition->entry_deadline;
|
|
}
|
|
}
|