-
Notifications
You must be signed in to change notification settings - Fork 460
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into community-2024-03-21
- Loading branch information
Showing
185 changed files
with
2,682 additions
and
10,374 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,4 +77,4 @@ jobs: | |
run: php artisan legacy:create:tests | ||
|
||
- name: Unit tests | ||
run: vendor/bin/phpunit | ||
run: vendor/bin/pest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
|
||
namespace App\Http\Controllers; | ||
|
||
use App\Models\EnrollmentInep; | ||
use App\Models\LegacyEnrollment; | ||
use Illuminate\Http\Request; | ||
|
||
class EnrollmentInepController extends Controller | ||
{ | ||
public function edit(LegacyEnrollment $enrollment) | ||
{ | ||
$this->breadcrumb('Educacenso Matrícula', [ | ||
url('intranet/educar_index.php') => 'Escola', | ||
]); | ||
|
||
$this->menu(578); //dd($enrollment->toArray()); | ||
|
||
return view('enrollments.enrollmentInep', compact('enrollment')); | ||
} | ||
|
||
public function update(Request $request, LegacyEnrollment $enrollment) | ||
{ | ||
if ($request->has('desconsiderar_educacenso')) { | ||
$enrollment->update([ | ||
'desconsiderar_educacenso' => true, | ||
]); | ||
} else { | ||
$enrollment->update([ | ||
'desconsiderar_educacenso' => false, | ||
]); | ||
} | ||
|
||
EnrollmentInep::query() | ||
->updateOrCreate( | ||
['matricula_turma_id' => $enrollment->getKey()], | ||
['matricula_inep' => is_numeric($request->get('matricula_inep')) ? $request->get('matricula_inep') : null] | ||
); | ||
|
||
return redirect()->route('enrollments.enrollment-history', $enrollment->registration->getKey()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.