Roman_applicant-site/app/Http/Controllers/admin/PageController.php

19 lines
508 B
PHP
Raw Normal View History

2024-01-30 10:55:31 +03:00
<?php
2024-02-14 10:29:17 +03:00
namespace App\Http\Controllers\admin;
2024-01-30 10:55:31 +03:00
2024-02-14 10:29:17 +03:00
use App\Http\Controllers\Controller;
use App\Models\Admission;
2024-01-30 10:55:31 +03:00
use Illuminate\Contracts\View\Factory;
use Illuminate\Contracts\View\View;
use Illuminate\Foundation\Application;
class PageController extends Controller
{
public function index(): View|Application|Factory|\Illuminate\Contracts\Foundation\Application
{
2024-02-14 10:29:17 +03:00
$admissions = Admission::all()->sortBy('position');
return view('menu.reception-screen', compact('admissions'));
2024-01-30 10:55:31 +03:00
}
}