modified assests

This commit is contained in:
2026-06-15 11:25:16 +07:00
parent 3f115866d9
commit e96d58dcb4
1218 changed files with 1162 additions and 339502 deletions

View File

@@ -2,7 +2,7 @@
namespace App\Console\Commands;
use App\Models\Laboratory;
use App\Models\Organization;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Log;
@@ -41,7 +41,7 @@ class DisableLabAccess extends Command
public function handle()
{
try{
$labs = Laboratory::query()->where('record_status_id', 1)
$labs = Organization::query()->where('record_status_id', 1)
->whereRaw("DATEDIFF(end_date, CURDATE())<=-7")
->update(['record_status_id' => 0]);
Log::channel('jobs')->info($labs);

View File

@@ -2,7 +2,7 @@
namespace App\Console\Commands;
use App\Models\Laboratory;
use App\Models\Organization;
use App\Models\Publication;
use App\Models\PublicationReceiver;
use Illuminate\Console\Command;
@@ -43,10 +43,10 @@ class NotifyExpireLab extends Command
public function handle()
{
try{
$labs = Laboratory::query()->where('record_status_id', 1)
$labs = Organization::query()->where('record_status_id', 1)
->whereNotNull('end_date')
->whereRaw("DATEDIFF(end_date, CURDATE())=7")->get();
Log::channel('jobs')->info($labs);
foreach ($labs as $lab){
@@ -65,7 +65,7 @@ class NotifyExpireLab extends Command
PublicationReceiver::query()->create([
'publication_id' => $publication->id,
'lab_id' => $lab->id,
'organization_id' => $lab->id,
'created_by' => 1
]);
}