This commit is contained in:
aslan 2024-02-14 10:29:17 +03:00
parent 83a398c5bc
commit 52d3d7af09
2 changed files with 5 additions and 7 deletions

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'));
}
}