Blame view
resources/views/admin/news/form.blade.php
2.97 KB
6eff6bf11 Админка сайта кат... |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
@csrf @isset($news) @method('PUT') @endisset <label class="form__label" for="title">Заголовок новости <span class="auth-mail-error auth-mail-error--hidden">Ошибка</span> </label><br> @error('title') <div class="alert alert-danger">{{ $message }}</div> @enderror <input class="form-input " type="text" id="title" name="title" placeholder="Введите заголовок" required value="{{ old('title') ?? $news->title ?? '' }}"><br><br> <label class="form__label" for="text">Описание новости <span class="auth-mail-error auth-mail-error--hidden">Ошибка</span> </label><br> @error('text') <div class="alert alert-danger">{{ $message }}</div> @enderror <textarea class="form-input " id="text" name="text" placeholder="Введите текст" required>{{ old('text') ?? $news->text ?? '' }}</textarea><br><br> <label class="form__label" for="image">Картинка <span class="auth-mail-error auth-mail-error--hidden">Ошибка</span> </label><br> <input type="file" class="form-input form-control-file " name="image" id="image" accept="image/png, image/jpeg"> @isset($news->image) <div class="form-group form-check"> <img src="<?=asset(Storage::url($news->image))?>" width="100px"/> </div> @endisset |
e73374e87 Каталог ajax, адм... |
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
<label for="best">Статус: </label><br> @error('status') <div class="alert alert-danger">{{ $message }}</div> @enderror <select name="status" id="status" class="form-control"> <option value="новость" @isset($news) @if($news->status == 'новость') selected @endif @endisset >Новость</option> <option value="статья" @isset($news) @if($news->status == 'статья') selected @endif @endisset >Статья</option> <option value="отзыв" @isset($news) @if($news->status == 'отзыв') selected @endif @endisset >Отзыв</option> </select><br><br> <label class="form__label" for="author">Автор <span class="auth-mail-error auth-mail-error--hidden">Ошибка</span> </label><br> @error('author') <div class="alert alert-danger">{{ $message }}</div> @enderror <input class="form-input " type="text" id="author" name="author" placeholder="Введите автора" required value="{{ old('author') ?? $news->author ?? '' }}"><br><br> <label class="form__label" for="company">Компания <span class="auth-mail-error auth-mail-error--hidden">Ошибка</span> </label><br> @error('company') <div class="alert alert-danger">{{ $message }}</div> @enderror <input class="form-input " type="text" id="company" name="company" placeholder="Введите компанию" required value="{{ old('company') ?? $news->company ?? '' }}"><br><br> |
6eff6bf11 Админка сайта кат... |
77 78 79 |
<<div class="parts-content-form-bottom modal-auth-bottom"> <button class="parts-content-form-bottom__button" type="submit">Сохранить</button> </div> |