add_img.blade.php
1.67 KB
@extends('layout.admin', ['title' => 'Добавление картинки офиса'])
@section('content')
<section class="favorites">
<div class="favorites-top">
<div class="container">
<div class="breadcrumbs">
<ul class="breadcrumbs__list">
<li class="breadcrumbs__item"><a class="breadcrumbs__link" href="{{ route('user.index') }}">Главная</a></li>
<li class="breadcrumbs__item"><a class="breadcrumbs__link" href="{{ route('admin.houses.index') }}">Офисы </a></li>
<li class="breadcrumbs__item"><span class="breadcrumbs__link">Добавление доп.картинки офиса </span></li>
</ul>
</div>
<h1 class="favorites__title title-main">Добавление доп.картинки офиса</h1>
</div>
</div>
<div class="favorites-cnt">
<div class="container">
<h3>Название: {{ $house->title }} ID: ({{ $house->id }})</h3>
<form method="post" enctype="multipart/form-data" action="{{ route('admin.add.image.post.houses', ['house' => $house->id]) }}" style="width:100%">
@csrf
<label for="foto">Файл-картинка:</label>
<input type="file" class="form-control-file txt" name="foto" id="foto" accept="image/png, image/jpeg">
<br><br>
<button type="submit" class="btn hero-search__btn btn--main">Сохранить</button>
</form>
</div>
</div>
</section>
@endsection