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

@section('content')
    <!-- Content Header (Page header) -->
    <div class="content-header">
        <div class="container-fluid">
            <div class="row mb-2">
                <div class="col-lg-6">
                    <h1 class="m-0 text-dark">編集</h1>
                </div><!-- /.col -->
                <div class="col-lg-6">
                    <ol class="breadcrumb float-sm-right text-sm">
                        <li class="breadcrumb-item"><a href="./index2.html">ホーム</a></li>
                        <li class="breadcrumb-item"><a href="{{ route('ptypes') }}">駐輪分類マスタ</a></li>
                        <li class="breadcrumb-item active">編集</li>
                    </ol>
                </div><!-- /.col -->
            </div><!-- /.row -->
        </div><!-- /.container-fluid -->
    </div>
    <!-- /.content-header -->

<section class="content">
    <div class="container-fluid">
        <div class="card">
            <form id="form_edit" 
                    action="{{ route('ptypes_edit', ['id' => $record->ptype_id]) }}" 
                    method="POST">
                @csrf
                @include('admin.ptypes._form', ['isEdit' => true])
            </form>

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

@endsection
