prodV1 #2

Open
RomanGolienko wants to merge 309 commits from prodV1 into main
2 changed files with 5 additions and 7 deletions
Showing only changes of commit 52d3d7af09 - Show all commits

View File

@ -7,7 +7,6 @@ use App\Http\Requests\admin\StoreDocumentRequest;
use App\Http\Requests\admin\UpdateDocumentRequest;
use App\Models\Admission;
use App\Models\Document;
use Illuminate\Contracts\View\Factory;
use Illuminate\Contracts\View\View;
use Illuminate\Foundation\Application;

View File

@ -1,19 +1,18 @@
<?php
namespace App\Http\Controllers;
namespace App\Http\Controllers\admin;
use App\Models\ReceptionScreen;
use App\Http\Controllers\Controller;
use App\Models\Admission;
use Illuminate\Contracts\View\Factory;
use Illuminate\Contracts\View\View;
use Illuminate\Foundation\Application;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
class PageController extends Controller
{
public function index(): View|Application|Factory|\Illuminate\Contracts\Foundation\Application
{
$receptionScreens = ReceptionScreen::all()->sortBy('position');
return view('menu.reception-screen', compact('receptionScreens'));
$admissions = Admission::all()->sortBy('position');
return view('menu.reception-screen', compact('admissions'));
}
}