This commit is contained in:
Денис Хорош 2023-05-17 10:32:43 +03:00
parent fda632f9a7
commit 85d4247d0b

View File

@ -1,6 +1,6 @@
<div class="mb-3">
<label class="form-label">id Региона</label>
<select class="form-select" name="country_id">
<select class="form-select" name="region_id">
<option>Выбрать регион</option>
@foreach($regions as $region)
<option value="{{$region->id}}" {{isset($project) && $project->region_id == $region->id ? 'selected' : ''}}>{{$region->id}}</option>
@ -27,7 +27,7 @@
<div class="mb-3">
<label class="form-label">Картинка карточки:</label>
<input type="file" name="card_image" class="form-control" placeholder="Картинка карточки"
value="{{$project->card_image ?? ''}}"><img src="/uploads/images/{{$project->card_image ?? ''}}">
value="{{$project->card_image ?? ''}}"><img src="{{'/uploads/images/'.$project->card_image ?? ''}}"></span>
@error('card_image')
<div class="alert alert-danger mt-1 mb-1">{{ $message }}</div>
@enderror
@ -35,7 +35,7 @@
<div class="mb-3">
<label class="form-label">Фоновая картинка:</label>
<input type="file" name="background_image" class="form-control" placeholder="Фоновая картинка"
value="{{$project->background_image ?? ''}}"><img src="/uploads/images/{{$project->background_image ?? ''}}">
value="{{$project->background_image ?? ''}}">
@error('background_image')
<div class="alert alert-danger mt-1 mb-1">{{ $message }}</div>
@enderror
@ -43,7 +43,7 @@
<div class="mb-3">
<label class="form-label">Логотип:</label>
<input type="file" name="logo" class="form-control" placeholder="Логотип"
value="{{$project->logo ?? ''}}"><img src="/uploads/images/{{$project->logo ?? ''}}">
value="{{$project->logo ?? ''}}">
@error('logo')
<div class="alert alert-danger mt-1 mb-1">{{ $message }}</div>
@enderror
@ -74,7 +74,7 @@
<div class="mb-3">
<label class="form-label">Фото двора:</label>
<input type="file" name="yard_image" class="form-control" placeholder="Фото двора"
value="{{$project->yard_image ?? ''}}"><img src="/uploads/images/{{$project->yard_image ?? ''}}">
value="{{$project->yard_image ?? ''}}">
@error('yard_image')
<div class="alert alert-danger mt-1 mb-1">{{ $message }}</div>
@enderror
@ -82,7 +82,7 @@
<div class="mb-3">
<label class="form-label">Фото вестибюля:</label>
<input type="file" name="hall_image" class="form-control" placeholder="Фото вестибюля"
value="{{$project->hall_image ?? ''}}"><img src="/uploads/images/{{$project->hall_image ?? ''}}">
value="{{$project->hall_image ?? ''}}">
@error('hall_image')
<div class="alert alert-danger mt-1 mb-1">{{ $message }}</div>
@enderror