forked from aslan/applicant-site
27 lines
1.0 KiB
PHP
27 lines
1.0 KiB
PHP
@extends('layouts.applicant-layout')
|
|
@section('content')
|
|
<div class=" fw-bolder fs-1 text-center py-5"> Для поступающих на программы бакалавриата, магистратуры </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/spetsialitet-magistratura-2022/", '<div class=["\']content_info["\']>');
|
|
$row = $pageScrapper->getHTML();
|
|
$content = $pageScrapper->normalizeURLFile($row);
|
|
|
|
|
|
|
|
$page = "https://mkgtu.ru/postuplenie/priemnaya-kampaniya/spetsialitet-magistratura-2022/";
|
|
$strForScissors = '/<footer(.*)<\/footer>/isU';
|
|
$tmp = preg_match_all($strForScissors, $content, $arr);
|
|
$content = str_replace($arr[1],'',$content);
|
|
|
|
echo $content ;
|
|
|
|
@endphp
|
|
|
|
</div>
|
|
</div>
|
|
@endsection
|