sent2); $channelId = ChannelApi::getSysChannel('_System_Pali_VRI_'); $sentOrg = [ "id"=>$sent->id, "book"=> $sent->book, "para"=> $sent->paragraph, "wordStart"=> $sent->word_begin, "wordEnd"=> $sent->word_end, "editor"=> StudioApi::getById(config("app.admin.root_uuid")), "channel"=> ChannelApi::getById($channelId), "content"=>$sent->text, "html"=> "{$sent->html}", "role"=>"member", "created_at"=> $sent->created_at, "updated_at"=> $sent->updated_at, ]; $resCount = CorpusController::sentResCount($sent->book,$sent->paragraph,$sent->word_begin,$sent->word_end); return [ "id" => "{$sent->book}-{$sent->paragraph}-{$sent->word_begin}-{$sent->word_end}", "origin" => [$sentOrg], "translation" => [], "layout" => "column", "tranNum" => $resCount['tranNum'], "nissayaNum" => $resCount['nissayaNum'], "commNum" => $resCount['commNum'], "originNum" => $resCount['originNum'], "simNum" => $resCount['simNum'], ]; } }