<div class="form col-lg-12">
    @if(Session::has('success'))
        <div class="alert alert-success alert-dismissible" role="alert">
            <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
            {{ Session::get('success') }}
        </div>
    @elseif(Session::has('error'))
        <div class="alert alert-danger alert-dismissible">
            <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
            <h4><i class="icon fa fa-ban"></i> {{__('誤差')}}:</h4>
            {!! Session::get('error') !!}
        </div>
    @elseif(isset($errorMsg))
        <div class="alert alert-danger alert-dismissible">
            <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
            <h4><i class="icon fa fa-ban"></i> {{__('誤差')}}:</h4>
            {!! $errorMsg !!}
        </div>
    @endif
</div>
<div class="col-lg-12 row sample03-wrapper no_padding_right mb20">

    <div class="col-lg-10 col-xl-10 col-md-10 col-sm-9 col-xs-9 table_right no_padding_right">
        <div class="scroll">
            <form method="post">
                <div class="btn_action mt-3">
                    @if($isInfo)
                        <a href="{{route('usertype_add')}}" class="btn btn-sm btn-success">{{__('登録')}}</a>
                        <a href="{{route('usertype_edit', ['id' => $user_categoryid])}}"
                            class="btn btn-sm btn-danger">{{__('編集')}}</a>
                    @else
                        <button type="submit" class="btn btn-sm btn-success register">{{__(key: '登録')}}</button>
                        <button type="button" class="btn btn-sm btn-danger register">{{__(key: '削除')}}</button>
                    @endif
                </div>
                @csrf
                <table class="table dataTable">
                    <tbody>
                        @if($isInfo || $isEdit)
                            <tr>
                                <th style="width:200px; background-color:#fff;">{{__('validation.attributes.user_categoryid')}}</th>
                                <td>
                                    <input type="text" value="{{$user_categoryid}}" class="form-control bg-white" readonly />
                                </td>
                            </tr>
                        @endif
                        <tr>
                            <th style="width:200px; background-color:#fff;">{{__('分類名')}}</th>
                            <td>
                                <input type="text" name="print_name" value="{{ old('print_name', $print_name ?? '') }}" class="form-control bg-white" placeholder="分類名" />
                            </td>
                        </tr>
                        <tr>
                            <th style="width:200px; background-color:#fff;">{{__('適用料率')}}</th>
                            <td>
                                <input type="text" name="usertype_money" value="{{ old('usertype_money', $usertype_money ?? '') }}" class="form-control bg-white" placeholder="適用料率" />
                            </td>
                        </tr>
                        <tr>
                            <th style="width:200px; background-color:#fff;">{{__('備考')}}</th>
                            <td>
                                <input type="text" name="usertype_remarks" value="{{ old('usertype_remarks', $usertype_remarks ?? '') }}" class="form-control bg-white" placeholder="備考" />
                            </td>
                        </tr>
                        <!-- 必要なら下記も追加 -->
                        <tr>
                            <th style="width:200px; background-color:#fff;">{{__('ソートオーダー')}}</th>
                            <td>
                                <input type="text" name="sort_order" value="{{ old('sort_order', $sort_order ?? '') }}" class="form-control bg-white" placeholder="ソートオーダー" />
                            </td>
                        </tr>
                        <tr>
                            <th style="width:200px; background-color:#fff;">{{__('分類名1')}}</th>
                            <td>
                                <input type="text" name="category_name1" value="{{ old('category_name1', $category_name1 ?? '') }}" class="form-control bg-white" placeholder="分類名1" />
                            </td>
                        </tr>
                        <tr>
                            <th style="width:200px; background-color:#fff;">{{__('分類名2')}}</th>
                            <td>
                                <input type="text" name="category_name2" value="{{ old('category_name2', $category_name2 ?? '') }}" class="form-control bg-white" placeholder="分類名2" />
                            </td>
                        </tr>
                        <tr>
                            <th style="width:200px; background-color:#fff;">{{__('分類名3')}}</th>
                            <td>
                                <input type="text" name="category_name3" value="{{ old('category_name3', $category_name3 ?? '') }}" class="form-control bg-white" placeholder="分類名3" />
                            </td>
                        </tr>
                    </tbody>
                </table>
                <div class="btn_action mt-3">
                    @if($isInfo)
                        <a href="{{route('usertype_add')}}" class="btn btn-sm btn-success">{{__('登録')}}</a>
                        <a href="{{route('usertype_edit', ['id' => $user_categoryid])}}"
                            class="btn btn-sm btn-danger">{{__('編集')}}</a>
                    @else
                        <button type="submit" class="btn btn-sm btn-success register">{{__('登録')}}</button>
                        <button type="button" class="btn btn-sm btn-danger register">{{__('削除')}}</button>
                    @endif
                </div>
            </form>
        </div>
    </div>
</div>