2024-01-24 15:23:23 +03:00
|
|
|
|
@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');
|
|
|
|
|
|
2024-01-25 12:57:38 +03:00
|
|
|
|
// $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);
|
2024-01-24 15:23:23 +03:00
|
|
|
|
echo $content;
|
|
|
|
|
|
|
|
|
|
@endphp
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
@endsection
|
|
|
|
|
|