forked from aslan/applicant-site
new pages, renaming routes
This commit is contained in:
parent
05fbca2353
commit
dee85023d4
|
@ -37,6 +37,7 @@ class PageScrapper
|
|||
$content = str_replace($el,'https://mkgtu.ru' . $el,$content);
|
||||
}
|
||||
}
|
||||
|
||||
return $content;
|
||||
|
||||
}
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
</a>
|
||||
</div>
|
||||
<div class="col-lg-3 col-md-4">
|
||||
<a href="{{ route('applicant') }}">
|
||||
<a href="{{ route('abitur') }}">
|
||||
<div class="tp-feature__item before-color-2 mb-40">
|
||||
<div class="tp-feature__icon">
|
||||
<img style="max-width: 26%;" src="{{ URL::to('img/courses/abit.png') }}" alt="">
|
||||
|
|
|
@ -60,7 +60,7 @@
|
|||
</div>
|
||||
|
||||
<div class="col-8">
|
||||
<a href="ui-4.html#">
|
||||
<a href="{{ route('platnye-obrazovatelnye-uslugi') }}">
|
||||
<h4>
|
||||
<div
|
||||
class="d-flex justify-content-start align-items-center w-100 h-100 border border-secondary m-1 p-4 buttonHover rounded-2">
|
||||
|
@ -71,7 +71,7 @@
|
|||
</div>
|
||||
|
||||
<div class="col-8">
|
||||
<a href="ui-4.html#">
|
||||
<a href="{{ route('ordinatura') }}">
|
||||
<h4>
|
||||
<div
|
||||
class="d-flex justify-content-start align-items-center w-100 h-100 border border-secondary m-1 p-4 buttonHover rounded-2">
|
||||
|
@ -82,7 +82,7 @@
|
|||
</div>
|
||||
|
||||
<div class="col-8">
|
||||
<a href="ui-4.html#">
|
||||
<a href="{{ route('aspirantura') }}">
|
||||
<h4>
|
||||
<div
|
||||
class="d-flex justify-content-start align-items-center w-100 h-100 border border-secondary m-1 p-4 buttonHover rounded-2">
|
||||
|
@ -93,7 +93,7 @@
|
|||
</div>
|
||||
|
||||
<div class="col-8">
|
||||
<a href="ui-4.html#">
|
||||
<a href="https://mkgtu.ru/upload/postuplenie_docs/abiturientu/voprosi.pdf" target="_blank">
|
||||
<h4>
|
||||
<div
|
||||
class="d-flex justify-content-start align-items-center w-100 h-100 border border-secondary m-1 p-4 buttonHover rounded-2">
|
||||
|
@ -104,7 +104,7 @@
|
|||
</div>
|
||||
|
||||
<div class="col-8">
|
||||
<a href="ui-4.html#">
|
||||
<a href="{{ route('videomaterialy-dlya-postupayushchikh') }}">
|
||||
<h4>
|
||||
<div
|
||||
class="d-flex justify-content-start align-items-center w-100 h-100 border border-secondary m-1 p-4 buttonHover rounded-2">
|
||||
|
@ -115,7 +115,7 @@
|
|||
</div>
|
||||
|
||||
<div class="col-8">
|
||||
<a href="ui-4.html#">
|
||||
<a href="#">
|
||||
<h4>
|
||||
<div
|
||||
class="d-flex justify-content-start align-items-center w-100 h-100 border border-secondary m-1 p-4 buttonHover rounded-2">
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
@extends('layouts.applicant-layout')
|
||||
@section('content')
|
||||
<div class=" fw-bolder fs-1 text-center py-5 lh-lg"> Для поступающих на обучение по программам аспирантуры </div>
|
||||
<div class="container pt-4 d-flex justify-content-center">
|
||||
|
||||
<div class="col-10">
|
||||
@php
|
||||
use App\Services\PageScrapper;
|
||||
$pageScrapper = new PageScrapper("https://mkgtu.ru/postuplenie/priemnaya-kampaniya/aspirantura/", '<div class=["\']content_info["\']>');
|
||||
$row = $pageScrapper->getHTML();
|
||||
$content = $pageScrapper->normalizeURLFile($row);
|
||||
$content = $pageScrapper->cutHTML($content,'/<footer(.*)<\/footer>/isU');
|
||||
echo $content;
|
||||
|
||||
@endphp
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
|
@ -0,0 +1,19 @@
|
|||
@extends('layouts.applicant-layout')
|
||||
@section('content')
|
||||
<div class=" fw-bolder fs-1 text-center py-5 lh-lg"> Для поступающих на обучение по программам ординатуры </div>
|
||||
<div class="container pt-4 d-flex justify-content-center">
|
||||
|
||||
<div class="col-10">
|
||||
@php
|
||||
use App\Services\PageScrapper;
|
||||
$pageScrapper = new PageScrapper("https://mkgtu.ru/postuplenie/priemnaya-kampaniya/ordinatura/", '<div class=["\']content_info["\']>');
|
||||
$row = $pageScrapper->getHTML();
|
||||
$content = $pageScrapper->normalizeURLFile($row);
|
||||
$content = $pageScrapper->cutHTML($content,'/<footer(.*)<\/footer>/isU');
|
||||
echo $content;
|
||||
|
||||
@endphp
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
|
@ -0,0 +1,19 @@
|
|||
@extends('layouts.applicant-layout')
|
||||
@section('content')
|
||||
<div class=" fw-bolder fs-1 text-center py-5 lh-lg"> Для поступающих на обучение по договорам об оказании платных образовательных услуг </div>
|
||||
<div class="container fs-4 pt-4 d-flex justify-content-center">
|
||||
|
||||
<div class="col-10">
|
||||
@php
|
||||
use App\Services\PageScrapper;
|
||||
$pageScrapper = new PageScrapper("https://mkgtu.ru/postuplenie/priemnaya-kampaniya/platnye-obrazovatelnye-uslugi/", '<div class=["\']content_info["\']>');
|
||||
$row = $pageScrapper->getHTML();
|
||||
$content = $pageScrapper->normalizeURLFile($row);
|
||||
$content = $pageScrapper->cutHTML($content,'/<footer(.*)<\/footer>/isU');
|
||||
echo $content;
|
||||
|
||||
@endphp
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
|
@ -0,0 +1,25 @@
|
|||
@extends('layouts.applicant-layout')
|
||||
@section('content')
|
||||
<div class=" fw-bolder fs-1 text-center py-5 lh-lg"> Видеоматериалы для поступающих </div>
|
||||
<div class="container pt-4 d-flex justify-content-center">
|
||||
|
||||
<div class="col-10 text-center pb-4 ">
|
||||
@php
|
||||
use App\Services\PageScrapper;
|
||||
$pageScrapper = new PageScrapper("https://mkgtu.ru/postuplenie/priemnaya-kampaniya/videomaterialy-dlya-postupayushchikh/", '<div class=["\']content_info["\']>');
|
||||
$row = $pageScrapper->getHTML();
|
||||
$content = $pageScrapper->normalizeURLFile($row);
|
||||
$content = $pageScrapper->cutHTML($content,'/<footer(.*)<\/footer>/isU');
|
||||
|
||||
$content = str_replace(
|
||||
'<img width="614" alt="Обложка Госуслуги_page-0001.jpg" src="/upload/medialibrary/c76/c761087fd6938bd8eb8708e9e036679e.jpg" height="346" title="Обложка Госуслуги_page-0001.jpg">',
|
||||
'<img width="614" alt="Обложка Госуслуги_page-0001.jpg" src="https://mkgtu.ru/upload/medialibrary/c76/c761087fd6938bd8eb8708e9e036679e.jpg" height="346" title="Обложка Госуслуги_page-0001.jpg" class="border border-3 rounded-3 border-secondary">',
|
||||
$content);
|
||||
echo $content;
|
||||
|
||||
@endphp
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
|
@ -30,22 +30,38 @@ Route::get('/course', function () {
|
|||
return view('menu.course');
|
||||
})->name('course');
|
||||
|
||||
Route::get('/abitur', function () {
|
||||
Route::get('/applicant', function () {
|
||||
return view('menu.abitur');
|
||||
})->name('applicant');
|
||||
})->name('abitur');
|
||||
|
||||
Route::get('/web-consultations', function () {
|
||||
return view('menu.abitur.web-consultations');
|
||||
})->name('web-consultations');
|
||||
|
||||
Route::get('/spetsialitet-magistratura', function () {
|
||||
Route::get('/specialty-magistracy', function () {
|
||||
return view('menu.abitur.spetsialitet-magistratura');
|
||||
})->name('spetsialitet-magistratura');
|
||||
|
||||
Route::get('/kolledzh', function () {
|
||||
Route::get('/college', function () {
|
||||
return view('menu.abitur.kolledzh');
|
||||
})->name('kolledzh');
|
||||
|
||||
Route::get('/paid-educational-services', function () {
|
||||
return view('menu.abitur.platnye-obrazovatelnye-uslugi');
|
||||
})->name('platnye-obrazovatelnye-uslugi');
|
||||
|
||||
Route::get('/residency', function () {
|
||||
return view('menu.abitur.ordinatura');
|
||||
})->name('ordinatura');
|
||||
|
||||
Route::get('/traineeship', function () {
|
||||
return view('menu.abitur.aspirantura');
|
||||
})->name('aspirantura');
|
||||
|
||||
Route::get('/video-materials-for-applicants', function () {
|
||||
return view('menu.abitur.videomaterialy-dlya-postupayushchikh');
|
||||
})->name('videomaterialy-dlya-postupayushchikh');
|
||||
|
||||
Route::post('/uploadfile', [UploadFileController::class, 'showUploadFile'])->name('uploadfile');
|
||||
|
||||
Route::get('/dashboard', function () {
|
||||
|
|
Loading…
Reference in New Issue