27 lines
563 B
PHP
27 lines
563 B
PHP
<?php
|
|
|
|
namespace App\Services\Reports;
|
|
|
|
use App\Models\ActivityCrf;
|
|
use App\Services\SigdCrudService;
|
|
use App\Models\ReferenceEf;
|
|
use App\Models\ReferenceGwp;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
class CrfService extends SigdCrudService
|
|
{
|
|
public function __construct(ActivityCrf $model)
|
|
{
|
|
parent::__construct($model);
|
|
}
|
|
|
|
public function getActiveGwpRecords()
|
|
{
|
|
$activeGwpRecords = ReferenceGwp::whereHas('ar', function ($query) {
|
|
$query->isActive();
|
|
})->get();
|
|
|
|
return $activeGwpRecords;
|
|
}
|
|
}
|