prodV1 #2

Open
RomanGolienko wants to merge 309 commits from prodV1 into main
3 changed files with 183 additions and 229 deletions
Showing only changes of commit a1e936f156 - Show all commits

View File

@ -8,6 +8,7 @@ use App\Models\Admission;
use App\Models\Direction;
use App\Models\EntranceExamination;
use App\Models\Faculty;
use App\Models\News;
use App\Models\Subject;
use Illuminate\Contracts\View\Factory;
use Illuminate\Contracts\View\View;
@ -23,6 +24,7 @@ class PageController extends Controller
public function bakalavr()
{
$news = News::all();
$admissions = Admission::all();
$faculties = Faculty::all();
$subjects = EntranceExamination::all()
@ -175,10 +177,12 @@ class PageController extends Controller
'directionsWithInstitution',
'groupedDirections',
'admissions',
'news',
));
}
public function inostran()
{
$news = News::all();
$admissions = Admission::all();
$faculties = Faculty::all();
$subjects = EntranceExamination::all()
@ -331,11 +335,13 @@ class PageController extends Controller
'directionsWithInstitution',
'groupedDirections',
'admissions',
'news',
));
}
public function magistr()
{
$news = News::all();
$admissions = Admission::all();
$faculties = Faculty::all();
$subjects = EntranceExamination::all()
@ -488,6 +494,7 @@ class PageController extends Controller
'directionsWithInstitution',
'groupedDirections',
'admissions',
'news',
));
}

File diff suppressed because one or more lines are too long

View File

@ -554,252 +554,199 @@
</div>
</div>
{{-- <div style="background-image: url({{ URL::to('img/front-page/bakalavr-special/fon1_blok.png') }}); background-repeat: no-repeat; background-size: cover; background-attachment: fixed; ">
<div id="carouselExampleIndicators" class="carousel slide">
<div class="carousel-indicators">
<button type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide-to="0" class="active" aria-current="true" aria-label="Slide 1"></button>
<button type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide-to="1" aria-label="Slide 2"></button>
<button type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide-to="2" aria-label="Slide 3"></button>
<button type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide-to="3" aria-label="Slide 3"></button>
</div>
<div class="carousel-inner px-5 pt-5">
<div class="carousel-item active " >
<div class="row d-flex align-items-center " >
<div class="col-xl col-12 " style=" height: 25em;">
<div class="w-100 h-75 position-relative " style="border-radius: 20px; background-image: url({{ URL::to('img/front-page/e3305c89b9b89821588364d5e898afc0.jpg') }}); background-repeat: no-repeat; background-size: cover; ">
<div class="position-absolute bottom-0 bg-white " style="border-radius: 20px; ">
<div class="gradient-text p-3">
<strong class="fs-5" style="font-family: Geologica-Light"> Завершение приема документов </strong>
<p style="font-family: Geologica-ExtraLight"> Но явные признаки победы институционализации представлены в исключительно положительном свете. </p>
</div>
</div>
</div>
</div>
<div class="col-xl col-12 " style=" height: 25em;">
<div class="w-100 h-75 position-relative" style="border-radius: 20px; background-image: url({{ URL::to('img/front-page/e3305c89b9b89821588364d5e898afc0.jpg') }}); background-repeat: no-repeat; background-size: cover;">
<div class="position-absolute bottom-0 bg-white " style="border-radius: 20px;">
<div class="gradient-text p-3">
<strong class="fs-5" style="font-family: Geologica-Light"> Завершение приема документов </strong>
<p style="font-family: Geologica-ExtraLight"> Но явные признаки победы институционализации представлены в исключительно положительном свете. </p>
</div>
</div>
</div>
</div>
<div class="col-xl col-12" style=" height: 25em;">
<div class="w-100 h-75 position-relative" style="border-radius: 20px; background-image: url({{ URL::to('img/front-page/e3305c89b9b89821588364d5e898afc0.jpg') }}); background-repeat: no-repeat; background-size: cover;">
<div class="position-absolute bottom-0 bg-white " style="border-radius: 20px;">
<div class="gradient-text p-3">
<strong class="fs-5" style="font-family: Geologica-Light"> Завершение приема документов </strong>
<p style="font-family: Geologica-ExtraLight"> Но явные признаки победы институционализации представлены в исключительно положительном свете. </p>
</div>
</div>
</div>
</div>
<div class="col-xl col-12" style=" height: 25em;">
<div class="w-100 h-75 position-relative" style="border-radius: 20px; background-image: url({{ URL::to('img/front-page/e3305c89b9b89821588364d5e898afc0.jpg') }}); background-repeat: no-repeat; background-size: cover;">
<div class="position-absolute bottom-0 bg-white " style="border-radius: 20px;">
<div class="gradient-text p-3">
<strong class="fs-5" style="font-family: Geologica-Light"> Завершение приема документов </strong>
<p style="font-family: Geologica-ExtraLight"> Но явные признаки победы институционализации представлены в исключительно положительном свете. </p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="carousel-item " >
<div class="row d-flex align-items-center " >
<div class="col-xl col-12 " style=" height: 25em;">
<div class="w-100 h-75 position-relative " style="border-radius: 20px; background-image: url({{ URL::to('img/front-page/e3305c89b9b89821588364d5e898afc0.jpg') }}); background-repeat: no-repeat; background-size: cover; ">
<div class="position-absolute bottom-0 bg-white " style="border-radius: 20px; ">
<div class="gradient-text p-3">
<strong class="fs-5" style="font-family: Geologica-Light"> Завершение приема документов </strong>
<p style="font-family: Geologica-ExtraLight"> Но явные признаки победы институционализации представлены в исключительно положительном свете. </p>
</div>
</div>
</div>
</div>
<div class="col-xl col-12 " style=" height: 25em;">
<div class="w-100 h-75 position-relative" style="border-radius: 20px; background-image: url({{ URL::to('img/front-page/e3305c89b9b89821588364d5e898afc0.jpg') }}); background-repeat: no-repeat; background-size: cover;">
<div class="position-absolute bottom-0 bg-white " style="border-radius: 20px;">
<div class="gradient-text p-3">
<strong class="fs-5" style="font-family: Geologica-Light"> Завершение приема документов </strong>
<p style="font-family: Geologica-ExtraLight"> Но явные признаки победы институционализации представлены в исключительно положительном свете. </p>
</div>
</div>
</div>
</div>
<div class="col-xl col-12" style=" height: 25em;">
<div class="w-100 h-75 position-relative" style="border-radius: 20px; background-image: url({{ URL::to('img/front-page/e3305c89b9b89821588364d5e898afc0.jpg') }}); background-repeat: no-repeat; background-size: cover;">
<div class="position-absolute bottom-0 bg-white " style="border-radius: 20px;">
<div class="gradient-text p-3">
<strong class="fs-5" style="font-family: Geologica-Light"> Завершение приема документов </strong>
<p style="font-family: Geologica-ExtraLight"> Но явные признаки победы институционализации представлены в исключительно положительном свете. </p>
</div>
</div>
</div>
</div>
<div class="col-xl col-12" style=" height: 25em;">
<div class="w-100 h-75 position-relative" style="border-radius: 20px; background-image: url({{ URL::to('img/front-page/e3305c89b9b89821588364d5e898afc0.jpg') }}); background-repeat: no-repeat; background-size: cover;">
<div class="position-absolute bottom-0 bg-white " style="border-radius: 20px;">
<div class="gradient-text p-3">
<strong class="fs-5" style="font-family: Geologica-Light"> Завершение приема документов </strong>
<p style="font-family: Geologica-ExtraLight"> Но явные признаки победы институционализации представлены в исключительно положительном свете. </p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="carousel-item " >
<div class="row d-flex align-items-center " >
<div class="col-xl col-12 " style=" height: 25em;">
<div class="w-100 h-75 position-relative " style="border-radius: 20px; background-image: url({{ URL::to('img/front-page/e3305c89b9b89821588364d5e898afc0.jpg') }}); background-repeat: no-repeat; background-size: cover; ">
<div class="position-absolute bottom-0 bg-white " style="border-radius: 20px; ">
<div class="gradient-text p-3">
<strong class="fs-5" style="font-family: Geologica-Light"> Завершение приема документов </strong>
<p style="font-family: Geologica-ExtraLight"> Но явные признаки победы институционализации представлены в исключительно положительном свете. </p>
</div>
</div>
</div>
</div>
<div class="col-xl col-12 " style=" height: 25em;">
<div class="w-100 h-75 position-relative" style="border-radius: 20px; background-image: url({{ URL::to('img/front-page/e3305c89b9b89821588364d5e898afc0.jpg') }}); background-repeat: no-repeat; background-size: cover;">
<div class="position-absolute bottom-0 bg-white " style="border-radius: 20px;">
<div class="gradient-text p-3">
<strong class="fs-5" style="font-family: Geologica-Light"> Завершение приема документов </strong>
<p style="font-family: Geologica-ExtraLight"> Но явные признаки победы институционализации представлены в исключительно положительном свете. </p>
</div>
</div>
</div>
</div>
<div class="col-xl col-12" style=" height: 25em;">
<div class="w-100 h-75 position-relative" style="border-radius: 20px; background-image: url({{ URL::to('img/front-page/e3305c89b9b89821588364d5e898afc0.jpg') }}); background-repeat: no-repeat; background-size: cover;">
<div class="position-absolute bottom-0 bg-white " style="border-radius: 20px;">
<div class="gradient-text p-3">
<strong class="fs-5" style="font-family: Geologica-Light"> Завершение приема документов </strong>
<p style="font-family: Geologica-ExtraLight"> Но явные признаки победы институционализации представлены в исключительно положительном свете. </p>
</div>
</div>
</div>
</div>
<div class="col-xl col-12" style=" height: 25em;">
<div class="w-100 h-75 position-relative" style="border-radius: 20px; background-image: url({{ URL::to('img/front-page/e3305c89b9b89821588364d5e898afc0.jpg') }}); background-repeat: no-repeat; background-size: cover;">
<div class="position-absolute bottom-0 bg-white " style="border-radius: 20px;">
<div class="gradient-text p-3">
<strong class="fs-5" style="font-family: Geologica-Light"> Завершение приема документов </strong>
<p style="font-family: Geologica-ExtraLight"> Но явные признаки победы институционализации представлены в исключительно положительном свете. </p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="carousel-item " >
<div class="row d-flex align-items-center " >
<div class="col-xl col-12 " style=" height: 25em;">
<div class="w-100 h-75 position-relative " style="border-radius: 20px; background-image: url({{ URL::to('img/front-page/e3305c89b9b89821588364d5e898afc0.jpg') }}); background-repeat: no-repeat; background-size: cover; ">
<div class="position-absolute bottom-0 bg-white " style="border-radius: 20px; ">
<div class="gradient-text p-3">
<strong class="fs-5" style="font-family: Geologica-Light"> Завершение приема документов </strong>
<p style="font-family: Geologica-ExtraLight"> Но явные признаки победы институционализации представлены в исключительно положительном свете.qwfqaswefqaswfswfqaeswf </p>
</div>
</div>
</div>
</div>
<div class="col-xl col-12 " style=" height: 25em;">
<div class="w-100 h-75 position-relative" style="border-radius: 20px; background-image: url({{ URL::to('img/front-page/e3305c89b9b89821588364d5e898afc0.jpg') }}); background-repeat: no-repeat; background-size: cover;">
<div class="position-absolute bottom-0 bg-white " style="border-radius: 20px;">
<div class="gradient-text p-3">
<strong class="fs-5" style="font-family: Geologica-Light"> Завершение приема документов </strong>
<p style="font-family: Geologica-ExtraLight"> Но явные признаки победы институционализации представлены в исключительно положительном свете. </p>
</div>
</div>
</div>
</div>
<div class="col-xl col-12" style=" height: 25em;">
<div class="w-100 h-75 position-relative" style="border-radius: 20px; background-image: url({{ URL::to('img/front-page/e3305c89b9b89821588364d5e898afc0.jpg') }}); background-repeat: no-repeat; background-size: cover;">
<div class="position-absolute bottom-0 bg-white " style="border-radius: 20px;">
<div class="gradient-text p-3">
<strong class="fs-5" style="font-family: Geologica-Light"> Завершение приема документов </strong>
<p style="font-family: Geologica-ExtraLight"> Но явные признаки победы институционализации представлены в исключительно положительном свете. </p>
</div>
</div>
</div>
</div>
<div class="col-xl col-12" style=" height: 25em;">
<div class="w-100 h-75 position-relative" style="border-radius: 20px; background-image: url({{ URL::to('img/front-page/e3305c89b9b89821588364d5e898afc0.jpg') }}); background-repeat: no-repeat; background-size: cover;">
<div class="position-absolute bottom-0 bg-white " style="border-radius: 20px;">
<div class="gradient-text p-3">
<strong class="fs-5" style="font-family: Geologica-Light"> Завершение приема документов </strong>
<p style="font-family: Geologica-ExtraLight"> Но явные признаки победы институционализации представлены в исключительно положительном свете. </p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="visually-hidden">Previous</span>
</button>
<button class="carousel-control-next" type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="visually-hidden">Next</span>
</button>
</div>
</div> --}}
<div style="background-image: url({{ URL::to('img/front-page/bakalavr-special/footer_fon.png') }}); background-size: cover; ">
<div class="container-fluid ms-sm-5 pt-5 ">
{{-- Начало новостей --}}
<div style="background-image: url({{ URL::to('img/front-page/bakalavr-special/fon1_blok.png') }}); background-repeat: no-repeat; background-size: cover; background-attachment: fixed; ">
<div class="container-fluid ms-sm-5 pt-5">
<div class="row">
<div class="display-5 col-12 text-white mb-3 text-center text-md-start "
style=" font-weight: 700; letter-spacing: 0em; ">
НОВОСТИ
</div>
</div>
<div id="carouselExampleIndicators" class="carousel slide d-lg-block d-none " data-bs-interval="false">
<div class="carousel-inner px-5 pt-5">
@php
$all_news = array()
@endphp
@foreach($news as $item)
@php
$all_news[$item->name]['name'] = $item->name;
$all_news[$item->name]['text'] = $item->text;
$all_news[$item->name]['url'] = asset($item->photo);
$all_news[$item->name]['id'] = $item->id;
@endphp
@endforeach
@php
$out = array_chunk($all_news, 4, true);
@endphp
@foreach($out as $id => $page)
<div class="carousel-item @if($id == 1) active @endif \" >
<div class="row d-flex align-items-center justify-content-center " >
@foreach($page as $item)
<div class="col " style="max-width: 20%">
<img src="{{$item['url']}}" class="img-fluid border border-white border-2" style="background-size: cover; border-radius: 20px 20px 0px 0px;">
<div class="bg-white border border-white border-2" style="border-radius: 0px 0px 20px 20px ; height: 10.5em;">
<div class=" p-3" style="">
<strong class="fs-5 gradient-text" style="font-family: Geologica-Light"> {{$item['name']}} </strong>
<br><button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#exampleModalNews-{{$item['id']}}"> читать полностью</button>
<p class="gradient-text" style="font-family: Geologica-ExtraLight;">{{ Str::limit(preg_replace('/<([^>]+)>/', PHP_EOL, $item['text']), 100, "...") }} </p>
<!-- Modal -->
<div class="modal fade" id="exampleModalNews-{{$item['id']}}" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog modal-xl">
<div class="modal-content">
<div class="modal-header">
<h1 class="modal-title fs-5" id="exampleModalLabel"> {{$item['name']}}</h1>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<div class="container">
<div class="row justify-content-center">
<div class="col-8">
<img src="{{$item['url']}}" class=" img-fluid border border-white border-2" style="background-size: cover; border-radius: 20px;">
</div>
</div>
<p class="mt-4"> {{$item['text']}}</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
@endforeach
</div>
<br><br><br><br>
</div>
@endforeach
<div class="carousel-indicators mt-5">
@for ($i = 0; $i < count($out); $i++)
<button type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide-to="{{$i}}" @if($i == 0) class="active" @endif aria-current="true" aria-label="Slide {{$i + 1}}"></button>
@endfor
</div>
</div>
<button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="visually-hidden">Previous</span>
</button>
<button class="carousel-control-next" type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="visually-hidden">Next</span>
</button>
</div>
<div id="carouselExampleIndicatorsMobile" class="carousel slide d-lg-none d-block" data-bs-interval="false" >
<div class="carousel-inner px-5 pt-5">
@php $counter = 0; @endphp
@foreach($news as $item)
@php $counter++ @endphp
<div class="carousel-item @if($counter == 1) active @endif \" >
<div class="row d-flex align-items-center justify-content-center " >
<div class="col-12" >
<img src="{{asset($item->photo)}}" class="img-fluid border border-white border-2" style="background-size: cover; border-radius: 20px 20px 0px 0px;">
<div class="bg-white border border-white border-2" style="border-radius: 0px 0px 20px 20px ; height: 12em;">
<div class=" p-3" style="">
<strong class="fs-5 gradient-text" style="font-family: Geologica-Light"> {{$item->name}} </strong>
<br><button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#exampleModalNewsMobile-{{$item->id}}"> читать полностью</button>
<p class="gradient-text" style="font-family: Geologica-ExtraLight;">{{ Str::limit(preg_replace('/<([^>]+)>/', PHP_EOL, $item->text), 100, "...") }} </p>
<!-- Modal -->
<div class="modal fade" id="exampleModalNewsMobile-{{$item->id}}" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog modal-xl">
<div class="modal-content">
<div class="modal-header">
<h1 class="modal-title fs-5" id="exampleModalLabel"> {{$item->name}}</h1>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<div class="container">
<div class="row justify-content-center">
<div class="col">
<img src="{{asset($item->photo)}}" class=" img-fluid border border-white border-2" style="background-size: cover; border-radius: 20px;">
</div>
</div>
<p class="mt-4"> {{$item->text}}</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br><br><br><br>
</div>
@endforeach
<div class="carousel-indicators mt-5">
@for ($i = 0; $i < $counter; $i++)
<button type="button" data-bs-target="#carouselExampleIndicatorsMobile" data-bs-slide-to="{{$i}}" @if($i == 1) class="active" @endif aria-current="true" aria-label="Slide {{$i + 1}}"></button>
@endfor
</div>
</div>
<button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleIndicatorsMobile" data-bs-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="visually-hidden">Previous</span>
</button>
<button class="carousel-control-next" type="button" data-bs-target="#carouselExampleIndicatorsMobile" data-bs-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="visually-hidden">Next</span>
</button>
</div>
</div>
</div>
{{-- Конец новостей --}}
<div style="background-image: url({{ URL::to('img/front-page/bakalavr-special/fon3_blok.png') }}); background-size: cover; ">
<div class="container-fluid ms-sm-5 pt-5 ">
<div class="row gradient-text">
<div class="ms-4 col-auto ">
<div class="col-11">
<div class="text-white fs-4"> Приемная коммисия:</div>
<div class=" fs-4"> Приемная коммисия:</div>
<p class="text-white"> (8772) 52-30-08 </p>
</div>
<div class="col-11">
<div class="text-white fs-4"> Приёмная комиссия филиала МГТУ в пос. Яблоновском:</div>
<p class="text-white"> 8-938-530-53-14 </p>
<div class=" fs-4"> Приёмная комиссия филиала МГТУ в пос. Яблоновском:</div>
<p class=""> 8-938-530-53-14 </p>
</div>
<div class="col-11">
<div class="text-white fs-4"> Почта:</div>
<p class="text-white"> info@mkgtu.ru </p>
<div class=" fs-4"> Почта:</div>
<p class=""> info@mkgtu.ru </p>
</div>
<div class="col-11">
<p class="text-white fs-4"> 385000, Республика Адыгея, г. Майкоп, ул. Первомайская, д. 191 </p>
<p class=" fs-4"> 385000, Республика Адыгея, г. Майкоп, ул. Первомайская, д. 191 </p>
</div>
<div class="col-11">
<a href="#"><img width="30px" height="30px" src="{{ URL::to('img/front-page/vid.png') }}" alt="vid"></a>