. */ include_once __DIR__.'/../../../core.php'; use Modules\Checklists\ChecklistItem; use Modules\Checklists\Check; $id_record = get("id_record"); $main_check = get("main_check"); if($main_check){ $record = ChecklistItem::find($id_record); }else{ $record = Check::find($id_record); } ?>