@php
    $city = $city ?? null;
@endphp

<div class="rv-city-form-fields">
    <div class="form-group row rv-city-field align-items-center">
        <div class="form-group col-12 col-md-3 mb-2 mb-md-0">
            <label for="city_name" class="col-form-label fw-semibold rv-city-label mb-0">
                {{ __('市区名') }}<span class="text-danger">*</span>
            </label>
        </div>
        <div class="form-group col-12 col-md-9 mb-0">
            <input type="text" name="city_name" id="city_name" class="form-control"
                value="{{ old('city_name', optional($city)->city_name) }}" maxlength="50" placeholder="市区名">
        </div>
    </div>

    <div class="form-group row rv-city-field align-items-center">
        <div class="form-group col-12 col-md-3 mb-2 mb-md-0">
            <label for="print_layout" class="col-form-label fw-semibold rv-city-label mb-0">
                {{ __('印字レイアウトファイル') }}<span class="text-danger">*</span>
            </label>
        </div>
        <div class="form-group col-12 col-md-9 mb-0">
            <input type="text" name="print_layout" id="print_layout" class="form-control"
                value="{{ old('print_layout', optional($city)->print_layout) }}" maxlength="100" placeholder="印字レイアウトファイル">
        </div>
    </div>

    <div class="form-group row rv-city-field align-items-center">
        <div class="form-group col-12 col-md-3 mb-2 mb-md-0">
            <label for="city_user" class="col-form-label fw-semibold rv-city-label mb-0">
                {{ __('顧客M入力不要フィールドID') }}
            </label>
        </div>
        <div class="form-group col-12 col-md-9 mb-0">
            <input type="text" name="city_user" id="city_user" class="form-control"
                value="{{ old('city_user', optional($city)->city_user) }}" maxlength="50" placeholder="顧客M入力不要フィールドID">
        </div>
    </div>

    <div class="form-group row rv-city-field align-items-center">
        <div class="form-group col-12 col-md-3 mb-2 mb-md-0">
            <label for="city_remarks" class="col-form-label fw-semibold rv-city-label mb-0">
                {{ __('備考') }}
            </label>
        </div>
        <div class="form-group col-12 col-md-9 mb-0">
            <textarea name="city_remarks" id="city_remarks" rows="3" class="form-control"
                maxlength="200" placeholder="備考">{{ old('city_remarks', optional($city)->city_remarks) }}</textarea>
        </div>
    </div>
</div>
