refactoring move to directory Direction
This commit is contained in:
parent
23033cbb1f
commit
d9362477c2
|
@ -1,10 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\admin\Catalog;
|
namespace App\Http\Controllers\admin\Catalog\Direction;
|
||||||
|
|
||||||
use App\Http\Controllers\Controller;
|
use App\Http\Controllers\Controller;
|
||||||
use App\Http\Requests\admin\Catalog\StoreEducationFormRequest;
|
use App\Http\Requests\admin\Catalog\Direction\StoreEducationFormRequest;
|
||||||
use App\Http\Requests\admin\Catalog\UpdateEducationFormRequest;
|
use App\Http\Requests\admin\Catalog\Direction\UpdateEducationFormRequest;
|
||||||
use App\Models\EducationForm;
|
use App\Models\EducationForm;
|
||||||
use Illuminate\Contracts\View\Factory;
|
use Illuminate\Contracts\View\Factory;
|
||||||
use Illuminate\Contracts\View\View;
|
use Illuminate\Contracts\View\View;
|
||||||
|
@ -15,12 +15,12 @@ class EducationFormController extends Controller
|
||||||
public function index(): View|Application|Factory|\Illuminate\Contracts\Foundation\Application
|
public function index(): View|Application|Factory|\Illuminate\Contracts\Foundation\Application
|
||||||
{
|
{
|
||||||
$forms = EducationForm::all();
|
$forms = EducationForm::all();
|
||||||
return view('admin.catalog.education_form.index', compact('forms'));
|
return view('admin.catalog.direction.education_form.index', compact('forms'));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function create(): View|Application|Factory|\Illuminate\Contracts\Foundation\Application
|
public function create(): View|Application|Factory|\Illuminate\Contracts\Foundation\Application
|
||||||
{
|
{
|
||||||
return view('admin.catalog.education_form.create');
|
return view('admin.catalog.direction.education_form.create');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function store(StoreEducationFormRequest $request)
|
public function store(StoreEducationFormRequest $request)
|
||||||
|
@ -38,12 +38,12 @@ class EducationFormController extends Controller
|
||||||
public function show(EducationForm $educationForm): View|Factory|\Illuminate\Contracts\Foundation\Application
|
public function show(EducationForm $educationForm): View|Factory|\Illuminate\Contracts\Foundation\Application
|
||||||
{
|
{
|
||||||
$directions = $educationForm->directions;
|
$directions = $educationForm->directions;
|
||||||
return view('admin.catalog.education_form.show', compact('educationForm', 'directions'));
|
return view('admin.catalog.direction.education_form.show', compact('educationForm', 'directions'));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function edit(EducationForm $educationForm)
|
public function edit(EducationForm $educationForm)
|
||||||
{
|
{
|
||||||
return view('admin.catalog.education_form.edit', compact('educationForm'));
|
return view('admin.catalog.direction.education_form.edit', compact('educationForm'));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function update(UpdateEducationFormRequest $request, EducationForm $educationForm)
|
public function update(UpdateEducationFormRequest $request, EducationForm $educationForm)
|
|
@ -1,10 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\admin\Catalog;
|
namespace App\Http\Controllers\admin\Catalog\Direction;
|
||||||
|
|
||||||
use App\Http\Controllers\Controller;
|
use App\Http\Controllers\Controller;
|
||||||
use App\Http\Requests\admin\Catalog\StoreEducationLevelRequest;
|
use App\Http\Requests\admin\Catalog\Direction\StoreEducationLevelRequest;
|
||||||
use App\Http\Requests\admin\Catalog\UpdateEducationLevelRequest;
|
use App\Http\Requests\admin\Catalog\Direction\UpdateEducationLevelRequest;
|
||||||
use App\Models\EducationLevel;
|
use App\Models\EducationLevel;
|
||||||
use Illuminate\Contracts\View\Factory;
|
use Illuminate\Contracts\View\Factory;
|
||||||
use Illuminate\Contracts\View\View;
|
use Illuminate\Contracts\View\View;
|
||||||
|
@ -16,12 +16,12 @@ class EducationLevelController extends Controller
|
||||||
public function index(): View|Application|Factory|\Illuminate\Contracts\Foundation\Application
|
public function index(): View|Application|Factory|\Illuminate\Contracts\Foundation\Application
|
||||||
{
|
{
|
||||||
$levels = EducationLevel::all();
|
$levels = EducationLevel::all();
|
||||||
return view('admin.catalog.education_level.index', compact('levels'));
|
return view('admin.catalog.direction.education_level.index', compact('levels'));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function create(): View|Application|Factory|\Illuminate\Contracts\Foundation\Application
|
public function create(): View|Application|Factory|\Illuminate\Contracts\Foundation\Application
|
||||||
{
|
{
|
||||||
return view('admin.catalog.education_level.create');
|
return view('admin.catalog.direction.education_level.create');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function store(StoreEducationLevelRequest $request): RedirectResponse
|
public function store(StoreEducationLevelRequest $request): RedirectResponse
|
||||||
|
@ -41,14 +41,14 @@ class EducationLevelController extends Controller
|
||||||
): View|Application|Factory|\Illuminate\Contracts\Foundation\Application {
|
): View|Application|Factory|\Illuminate\Contracts\Foundation\Application {
|
||||||
$directions = $educationLevel->directions();
|
$directions = $educationLevel->directions();
|
||||||
return view(
|
return view(
|
||||||
'admin.catalog.education_level.show',
|
'admin.catalog.direction.education_level.show',
|
||||||
compact('educationLevel', 'directions')
|
compact('educationLevel', 'directions')
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function edit(EducationLevel $educationLevel)
|
public function edit(EducationLevel $educationLevel)
|
||||||
{
|
{
|
||||||
return view('admin.catalog.education_level.edit', compact('educationLevel'));
|
return view('admin.catalog.direction.education_level.edit', compact('educationLevel'));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function update(UpdateEducationLevelRequest $request, EducationLevel $educationLevel): RedirectResponse
|
public function update(UpdateEducationLevelRequest $request, EducationLevel $educationLevel): RedirectResponse
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Requests\admin\Catalog;
|
namespace App\Http\Requests\admin\Catalog\Direction;
|
||||||
|
|
||||||
use Illuminate\Foundation\Http\FormRequest;
|
use Illuminate\Foundation\Http\FormRequest;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Requests\admin\Catalog;
|
namespace App\Http\Requests\admin\Catalog\Direction;
|
||||||
|
|
||||||
use Illuminate\Foundation\Http\FormRequest;
|
use Illuminate\Foundation\Http\FormRequest;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Requests\admin\Catalog;
|
namespace App\Http\Requests\admin\Catalog\Direction;
|
||||||
|
|
||||||
use Illuminate\Foundation\Http\FormRequest;
|
use Illuminate\Foundation\Http\FormRequest;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Requests\admin\Catalog;
|
namespace App\Http\Requests\admin\Catalog\Direction;
|
||||||
|
|
||||||
use Illuminate\Foundation\Http\FormRequest;
|
use Illuminate\Foundation\Http\FormRequest;
|
||||||
|
|
|
@ -2,10 +2,10 @@
|
||||||
|
|
||||||
use App\Http\Controllers\admin\AdmissionController;
|
use App\Http\Controllers\admin\AdmissionController;
|
||||||
use App\Http\Controllers\admin\Catalog\DepartmentController;
|
use App\Http\Controllers\admin\Catalog\DepartmentController;
|
||||||
|
use App\Http\Controllers\admin\Catalog\Direction\EducationFormController;
|
||||||
|
use App\Http\Controllers\admin\Catalog\Direction\EducationLevelController;
|
||||||
use App\Http\Controllers\admin\Catalog\DirectionController;
|
use App\Http\Controllers\admin\Catalog\DirectionController;
|
||||||
use App\Http\Controllers\admin\Catalog\EducationalInstitutionController;
|
use App\Http\Controllers\admin\Catalog\EducationalInstitutionController;
|
||||||
use App\Http\Controllers\admin\Catalog\EducationFormController;
|
|
||||||
use App\Http\Controllers\admin\Catalog\EducationLevelController;
|
|
||||||
use App\Http\Controllers\admin\Catalog\FacultyController;
|
use App\Http\Controllers\admin\Catalog\FacultyController;
|
||||||
use App\Http\Controllers\admin\DocumentController;
|
use App\Http\Controllers\admin\DocumentController;
|
||||||
use App\Http\Controllers\admin\UserController;
|
use App\Http\Controllers\admin\UserController;
|
||||||
|
|
Loading…
Reference in New Issue