Blame view
resources/views/admin/company/edit.blade.php
8.22 KB
3575d19ae Админка новости и... |
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 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 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 |
@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"><span class="breadcrumbs__link">Редактирование реквизитов компании </span></li> </ul> </div> <h1 class="favorites__title title-main">Редактирование рекзвизитов компании</h1> </div> </div> <div class="favorites-cnt"> <div class="container"> <form method="post" enctype="multipart/form-data" action="{{ route('admin.company.update', ['company' => $firm_data->id])}}" style="width:100%"> @csrf @method('PUT') <label for="email">Почта: </label><br> @error('email') <div class="alert alert-danger">{{ $message }}</div> @enderror <input type="text" class="form-control_ txt" name="email" placeholder="Почта" required maxlength="100" style="width: 80%" value="{{ old('email') ?? $firm_data->email ?? '' }}"><br> <label for="telephone">Телефон:</label><br> @error('telephone') <div class="alert alert-danger">{{ $message }}</div> @enderror <input type="text" class="form-control_ txt" name="telephone" placeholder="Телефон" required maxlength="100" style="width: 80%" value="{{ old('telephone') ?? $firm_data->telephone ?? '' }}"><br> <label for="title">Заголовок: </label><br> @error('title') <div class="alert alert-danger">{{ $message }}</div> @enderror <input type="text" class="form-control_ txt" name="title" placeholder="Заголовок" required maxlength="100" style="width: 80%" value="{{ old('title') ?? $firm_data->title ?? '' }}"><br> <label for="title_t">Подзаголовок: </label><br> @error('title_t') <div class="alert alert-danger">{{ $message }}</div> @enderror <input type="text" class="form-control_ txt" name="title_t" placeholder="Подзаголовок" required maxlength="100" style="width: 80%" value="{{ old('title_t') ?? $firm_data->title_t ?? '' }}"><br> <label for="description">Описание: </label><br> @error('description') <div class="alert alert-danger">{{ $message }}</div> @enderror <textarea class="form-control_ txtarea ckeditor" name="description" placeholder="Описание" required rows="10" style="width: 80%">{{ old('description') ?? $firm_data->description ?? '' }}</textarea><br> <label for="whatapp">WhatApp: </label><br> @error('whatapp') <div class="alert alert-danger">{{ $message }}</div> @enderror <input type="text" class="form-control_ txt" name="whatapp" placeholder="Whatapp" required maxlength="100" style="width: 80%" value="{{ old('whatapp') ?? $firm_data->whatapp ?? '' }}"><br> <label for="telegram">Телеграм: </label><br> @error('telegram') <div class="alert alert-danger">{{ $message }}</div> @enderror <input type="text" class="form-control_ txt" name="telegram" placeholder="Телеграмм" required maxlength="100" style="width: 80%" value="{{ old('telegram') ?? $firm_data->telegram ?? '' }}"><br> <label for="title1">Заголовок1 (для компании):</label><br> @error('title1') <div class="alert alert-danger">{{ $message }}</div> @enderror <input type="text" class="form-control_ txt" name="title1" placeholder="Заголовок 1" required maxlength="100" style="width: 80%" value="{{ old('title1') ?? $firm_data->title1 ?? '' }}"><br> <label for="text1">Описание1 (для компании): </label><br> @error('text1') <div class="alert alert-danger">{{ $message }}</div> @enderror <textarea class="form-control_ txtarea ckeditor" name="text1" placeholder="Описание" required rows="10" style="width: 80%">{{ old('text1') ?? $firm_data->text1 ?? '' }}</textarea><br> <label for="title2">Заголовок2 (для компании): </label><br> @error('title2') <div class="alert alert-danger">{{ $message }}</div> @enderror <input type="text" class="form-control_ txt" name="title2" placeholder="Заголовок" required maxlength="100" style="width: 80%" value="{{ old('title2') ?? $firm_data->title2 ?? '' }}"><br> <label for="text2">Описание2 (для компании): </label><br> @error('text2') <div class="alert alert-danger">{{ $message }}</div> @enderror <textarea class="form-control_ txtarea ckeditor" name="text2" placeholder="Описание" required rows="10" style="width: 80%">{{ old('text2') ?? $firm_data->text2 ?? '' }}</textarea><br> <label for="title3">Заголовок3 (для компании):</label><br> @error('title3') <div class="alert alert-danger">{{ $message }}</div> @enderror <input type="text" class="form-control_ txt" name="title3" placeholder="Заголовок3" required maxlength="100" style="width: 80%" value="{{ old('title3') ?? $firm_data->title3 ?? '' }}"><br> <label for="text3">Описание3 (для компании):</label><br> @error('text3') <div class="alert alert-danger">{{ $message }}</div> @enderror <textarea class="form-control_ txtarea ckeditor" name="text3" placeholder="Описание" required rows="10" style="width: 80%">{{ old('text3') ?? $firm_data->text3 ?? '' }}</textarea><br> <label for="year">Число лет на рынке (для компании): </label><br> @error('year') <div class="alert alert-danger">{{ $message }}</div> @enderror <input type="text" class="form-control_ txt" name="year" placeholder="Число лет на рынке" required maxlength="100" style="width: 80%" value="{{ old('year') ?? $firm_data->year ?? '' }}"><br> <label for="conf">Условие: <b>{{$firm_data->conf}}</b></label><br> @error('conf') <div class="alert alert-danger">{{ $message }}</div> @enderror <textarea class="form-control_ txtarea ckeditor" name="conf" placeholder="Соглашение" required rows="10" style="width: 80%">{{ old('conf') ?? $firm_data->conf ?? '' }}</textarea><br><br> <button type="submit" class="btn hero-search__btn btn--main">Сохранить</button> </form> </div> </div> </section> @endsection |