@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 class="card-header">
    @if($isInfo)
        <a href="{{route('usertype_add')}}" class="btn btn-lg btn-success">{{__('登録')}}</a>
        <a href="{{route('usertype_edit',['id'=>$user_categoryid])}}" class="btn btn-lg btn-danger">{{__('編集')}}</a>
    @else
        <button type="submit" class="btn btn-lg btn-danger register" >{{__('保存')}}</button>
    @endIf
</div>
<div class="card-body">
    <div class="row">
        @if($isInfo || $isEdit)
        <!-- 利用者分類ID -->
        <div class="form-group col-3">
            <label>{{__('validation.attributes.user_categoryid')}}</label>
        </div>
        <div class="form-group col-9">
            <div class="input-group">
                <input type="text" value="{{$user_categoryid}}"
                       placeholder="{{__('validation.attributes.user_categoryid')}}"
                       class="form-control form-control-lg" readonly/>
            </div>
        </div>
        @endif
        <div class="form-group col-3">
            <label class="@if(!$isInfo) required @endIf">{{__('validation.attributes.print_name')}}</label>
        </div>
        <div class="form-group col-9">
            <div class="input-group">
                <input type="text" value="{{$print_name}}" placeholder="{{__('validation.attributes.print_name')}}"
                       name="print_name"
                       class="form-control form-control-lg" @if($isInfo) readonly @endif/>
            </div>
        </div>

        <!-- 適用料率 -->
        <div class="form-group col-3">
            <label class="@if(!$isInfo) required @endIf">{{__('validation.attributes.usertype_money')}}</label>
        </div>
        <div class="form-group col-9">
            <div class="input-group">
                <input type="text" value="{{$usertype_money}}"
                       placeholder="{{__('validation.attributes.usertype_money')}}" name="usertype_money"
                       class="form-control form-control-lg" @if($isInfo) readonly @endif/>
            </div>
        </div>
        <!-- /.form group - 適用料率 -->

        <!-- 備考 -->
        <div class="form-group col-3">
            <label class="@if(!$isInfo) required @endIf">{{__('validation.attributes.usertype_remarks')}}</label>
        </div>
        <div class="form-group col-9">
            <div class="input-group">
                <input type="text" value="{{$usertype_remarks}}"
                       placeholder="{{__('validation.attributes.usertype_remarks')}}" name="usertype_remarks"
                       class="form-control form-control-lg" @if($isInfo) readonly @endif/>
            </div>
        </div>
        <!-- /.form group - 備考 -->
    </div>
    @if($isInfo)
        <a href="{{route('usertype_add')}}" class="btn btn-lg btn-success">{{__('登録')}}</a>
        <a href="{{route('usertype_edit',['id'=>$user_categoryid])}}" class="btn btn-lg btn-danger">{{__('編集')}}</a>
    @else
        <button type="submit" class="btn btn-lg btn-danger register" >{{__('保存')}}</button>
    @endIf
</div>

