<html>

<x-head />

<body>

  <x-header />

  <div class="bradcam_area bradcam_bg_1">
    <div class="container">
      <div class="row">
        <div class="col-xl-12">
          <div class="bradcam_text">
            <h3>Панель администратора</h3>
          </div>
        </div>
      </div>
    </div>
  </div>

  <div class="job_listing_area plus_padding">
    <div class="container">
      <div class="row">
        <div class="col-lg-6 offset-md-3">
          <div class="job_filter white-bg">
            <div class="job_filter white-bg">

              @if(Route::is('edit_city'))
              <div class="form_inner white-bg">
                </br>
                <h3>Добавить город</h3>
                <form action="{{Route('editcity', $city->id)}}" method="post">
                  @csrf
                  <div class="row">
                    <div class="col-lg-12">
                      <div class="single_field">
                        <input type="text" id="cityname" name="cityname" placeholder="Город" value="{{$city->name}}">
                        @error("cityname")
                        <div class="alert alert-danger">Поле города не может быть пустым!</div>
                        @enderror
                      </div>
                    </div>
                  </div>
                  <button class="boxed-btn3 w-100" type="submit">Изменить</button>
                </form>
              </div>
              @endif

              @if(Route::is('edit_category'))
              <div class="form_inner white-bg">
                </br>
                <h3>Добавить категорию</h3>
                <form action="{{Route('editcategory', $category->id)}}" method="post">
                  @csrf
                  <div class="row">
                    <div class="col-lg-12">
                      <div class="single_field">
                        <input type="text" id="categoryname" name="categoryname" placeholder="Категория" value="{{$category->name}}">
                        @error("categoryname")
                        <div class="alert alert-danger">Поле категории не может быть пустым!</div>
                        @enderror
                      </div>
                    </div>
                  </div>
                  <button class="boxed-btn3 w-100" type="submit">Изменить</button>
                </form>
              </div>
              @endif

            </div>
          </div>
        </div>
      </div>
    </div>
  </div>

  <x-footer />

  <x-scripts />

</body>

</html>