33 lines
1.6 KiB
PHP
33 lines
1.6 KiB
PHP
@extends('admin.layout')
|
|
|
|
@section('content')
|
|
<div style="max-width: 600px;">
|
|
<h1>Редактировать отель</h1>
|
|
|
|
<form method="POST" action="{{ route('admin.hotels.update', $hotel) }}">
|
|
@csrf
|
|
@method('PUT')
|
|
|
|
<div style="margin-bottom: 15px;">
|
|
<label for="name" style="display: block; margin-bottom: 6px; font-weight: 500;">Название *</label>
|
|
<input type="text" name="name" id="name" value="{{ old('name', $hotel->name) }}" required
|
|
style="width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box;">
|
|
</div>
|
|
|
|
<div style="margin-bottom: 15px;">
|
|
<label for="address" style="display: block; margin-bottom: 6px; font-weight: 500;">Адрес</label>
|
|
<textarea name="address" id="address" rows="3"
|
|
style="width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box;">{{ old('address', $hotel->address) }}</textarea>
|
|
</div>
|
|
|
|
<div style="margin-bottom: 20px;">
|
|
<label for="phone" style="display: block; margin-bottom: 6px; font-weight: 500;">Телефон</label>
|
|
<input type="text" name="phone" id="phone" value="{{ old('phone', $hotel->phone) }}"
|
|
style="width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box;">
|
|
</div>
|
|
|
|
<button type="submit" class="btn">Сохранить</button>
|
|
<a href="{{ route('admin.hotels.index') }}" class="btn" style="background: #6a1b9a; margin-left: 10px;">Отмена</a>
|
|
</form>
|
|
</div>
|
|
@endsection |