@extends('layouts.app')
@section('title', '編集')

@section('content')
<div class="content-header">
  <div class="container-fluid">
    <div class="row mb-2">
      <div class="col-sm-6">
        <h1 class="m-0 text-dark">編集</h1>
      </div>
      <div class="col-sm-6">
        <ol class="breadcrumb float-sm-right text-sm">
          <li class="breadcrumb-item"><a href="{{ route('home') }}">ホーム</a></li>
          <li class="breadcrumb-item"><a href="{{ route('jurisdiction_parkings') }}">管轄駐輪場</a></li>
          <li class="breadcrumb-item active">編集</li>
        </ol>
      </div>
    </div>
  </div>
</div>

<section class="content">
  <div class="container-fluid">
    {{-- 編集フォーム --}}
    <form id="form_edit" action="{{ route('jurisdiction_parkings_edit', ['id' => $record->jurisdiction_parking_id]) }}" method="POST">
        @csrf
        @include('admin.jurisdiction_parkings._form', [
            'isEdit' => true,
            'record' => $record,
            'opes'   => $opes,
            'parks'  => $parks
        ])
    </form>

    <form id="form_delete" action="{{ route('jurisdiction_parkings_delete') }}" method="POST" style="display:none;">
        @csrf
        <input type="hidden" name="pk" value="{{ $record->jurisdiction_parking_id }}">
    </form>
  </div>
</section>
@endsection
