pdf.blade.php 6.38 KB
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="csrf-token" content="<?=csrf_token() ?>">
    <title>{{$house[0]->title}}</title>
    <link rel="shortcut icon" href="{{ asset('images/favicon.png')}}" type="image/x-icon">
    <style type="text/css">
        * {
            font-family: "DejaVu Sans", sans-serif;
        }

        .font {
            font-family: "DejaVu Sans", sans-serif;
        }
    </style>
    <link rel="stylesheet" href="{{ asset('css/swiper-bundle.min.css') }}">
    <link rel="stylesheet" href="{{ asset('css/style_main.css') }}">
</head>
<body>
<? //if (!empty($house[0]->foto_main)) {?>
<!--<img src="<?//=public_path().'/storage/app/public/'.$house[0]->foto_main;?>" width="450px"/>
<!--<img src="<?//=public_path().'/images/footer-bg.jpg';?>" />-->
<?//} ?>

<? if (!empty($house[0]->foto_main)) {?>
<img src='data:image/png;base64,{{ $house['image'] }}' width="450px">
<? } ?>

<div class="wrapper_">
    <a href="{{ route('offer', ['house' => $house[0]->id]) }}">{{ route('offer', ['house' => $house[0]->id]) }}</a>
    <main>
    <!-- Основной контент -->
                            <h2>{{ $house[0]->title  }} {{ $house[0]->address }}</h2>
                            <div class="offer__lines">
                                <div class="offer__line"><span><b>Метро:</b> {{ $house[0]->metro }}</span></div>
                                <div class="offer__line"><span><b>Доступность метро:</b> {{ $house[0]->description_metro }}</span></div>
                                <div class="offer__line"><span><b>Округ: </b>{{ $house[0]->okrug }}</span></div>
                                <? if ($house[0]->format_house == "Продажа") {?>
                                    <div class="offer__line"><span><b>Цена:</b> {{ $house[0]->price }} ₽</span></div>
                                <? } else {?>
                                    <div class="offer__line"><span><b>Аренда в год за м2:</b> {{ $house[0]->rent_in_year }} ₽</span></div>
                                    <div class="offer__line"><span><b>Аренда в месяц:</b> {{ $house[0]->price }} ₽</span></div>
                                <? } ?>
                                    <div class="offer__line"><span><b>Схема сделки:</b> {{ $house[0]->scheme_deal }}</span></div>
                                <div class="offer__line"><span><b>Площадь, м2:</b> {{ $house[0]->area  }}</span></div>
                                <div class="offer__line"><span><b>Адрес: </b>{{ $house[0]->address  }}</span></div>
                                <div class="offer__line"><span><b>Тип объекта: </b> {{ $house[0]->typearea->name_type  }}</span></div>
                                <div class="offer__line"><span><b>Формат:</b> {{ $house[0]->format_house }}</span></div>
                                <div class="offer__line"><span><b>Этаж:</b> {{ $house[0]->floor  }} эт.</span></div>
                                <div class="offer__line"><span><b>Этажность здания:</b> {{ $house[0]->floor_bild  }} эт.</span></div>
                                <div class="offer__line"><span><b>Арендаторы:</b> {{ $house[0]->renter  }}</span></div>
                            <!--<div class="offer__line"><span>Состояние объекта</span><span><?// $house->sos_obj ?></span></div>-->
                                <div class="offer__line"><span><b>Тип планировки: </b>{{ $house[0]->type_plan  }}</span></div>
                                <div class="offer__line"><span><b>Наличие зоны разгрузки:</b> <? if($house[0]->uploading_area == 1) {?>Есть<?} else {?>Нет<?}?></span></div>
                                <div class="offer__line"><span><b>Электрическая мощность:</b> {{ $house[0]->electric_power }} кВт</span></div>
                            <!--<div class="offer__line"><span>Проездное</span><span><? //if($house->travel_card == 1) {?>Есть<?//} else {?>Нет<?//}?></span></div>-->
                            <!--<div class="offer__line"><span>Проходное место</span><span><?// if($house->passing_place == 1) {?>Есть<?//} else {?>Нет<?//}?></span></div>-->
                                <div class="offer__line"><span><b>Отдельный вход: </b><? if($house[0]->separate_input == 1) {?>Есть<?} else {?>Нет<?}?></span></div>
                                <div class="offer__line"><span><b>Витрины: </b><? if($house[0]->shop_windows == 1) {?>Есть<?} else {?>Нет<?}?></span></div>
                            <!--<div class="offer__line"><span>Место для рекламы</span><span><?// if($house->place_advertising == 1) {?>Есть<?//} else {?>Нет<?//}?></span></div>-->
                            <!--<div class="offer__line"><span>Окна</span><span><? //$house->windows  ?></span></div>-->
                                <div class="offer__line"><span><b>Вытяжка:</b> <? if($house[0]->hood == 1) {?>Есть<?} else {?>Нет<?}?></span></div>
                            <!--<div class="offer__line"><span>Центральное отопление</span><span><? //if($house->central_hearing == 1) {?>Есть<?//} else {?>Нет<?//}?></span></div>-->
                                <div class="offer__line"><span><b>Возможные часы работы:</b> {{ $house[0]->opening_hours  }}</span></div>
                                <div class="offer__line"><span><b>Отделка:</b> <? if($house[0]->finishing == 1) {?>Есть<?} else {?>Нет<?}?></span></div>
                                <div class="offer__line"><span><b>Парковка:</b> {{ $house[0]->parking  }} мест</span></div>
                                <div class="offer__line"><span><b>Описание:</b> {{ $house[0]->description_2  }} </span></div>
                            </div>

                    <div class="offer-descr">
                        <span><b>Описание объекта</b></span>
                        <span>{{ $house[0]->description_house }}</span>
                    </div>
    </main>
</div>

</body>
</html>