@extends('layouts.app')

@section('title', '市区マスタ編集')

@section('content')

    <section class="content">
        <div class="container-fluid">
    <div class="d-flex justify-content-between align-items-center mb-3">
        <h3 class="mb-0">編集</h3>
        <ol class="breadcrumb float-sm-right text-sm mb-0" style="background: #f8f9fa;">
            <li class="breadcrumb-item"><a href="{{ url('/home') }}">ホーム</a></li>
            <li class="breadcrumb-item"><a href="{{ route('city') }}">市区マスタ</a></li>
           <li class="breadcrumb-item active">編集</li>
        </ol>
    </div>
    
            @includeIf('common.flash')

            <div class="card shadow mb-4">
                <div class="card-body">
                    <form method="POST" action="{{ route('city_edit', ['id' => $city->city_id]) }}" enctype="multipart/form-data">
                        @csrf
                        @method('POST')

                        @include('admin.CityMaster._form', [
                            'isEdit' => 1,
                            'isInfo' => 0,
                            'city' => $city,
                        ])

                        <div class="mt-3">
                            <button type="submit" class="btn btn-primary">更新</button>
                            <a href="{{ route('city') }}" class="btn btn-secondary">戻る</a>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </section>
@endsection
