forked from aslan/applicant-site
prodV1 #2
|
@ -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;
|
||||
|
|
|
@ -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'));
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue