@extends('layouts.app')
@section('title', '新規')

@section('content')
    <!-- Content 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>
                <div class="col-lg-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('parks') }}">駐輪場マスタ</a>
                        </li>
                        <li class="breadcrumb-item active">新規</li>
                    </ol>
                </div>
            </div>
        </div>
    </div>

    <!-- Main content -->
    <section class="content">
        <div class="container-fluid">

            <div class="row">
                <div class="col-lg-12">
                    <div class="card">

                        {{-- 新規登録フォーム --}}
                        <form id="form_add"
                              method="POST"
                              action="{{ route('parks.store') }}?back={{ urlencode(request()->get('back', request()->fullUrl())) }}"
                              enctype="multipart/form-data">
                            @csrf

                            @include('admin.parks._form', [
                                'isEdit' => false,
                                'record' => null,
                                'cities' => $cities ?? [],
                            ])

                        </form>

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

        </div>
    </section>
@endsection
