@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('ope_add')}}" class="btn btn-lg btn-success">{{__('登録')}}</a>
        <a href="{{route('ope_edit',['id'=>$ope_id])}}" 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.ope_id')}}</label>
        </div>
        <div class="form-group col-9">
            <div class="input-group">
                <input type="text" value="{{$ope_id}}" @if(!$isInfo) placeholder="{{__('validation.attributes.ope_id')}}" @endif
                       class="form-control form-control-lg" readonly/>
            </div>
        </div>
    @endif
        <!-- オペレータ名 -->
        <div class="form-group col-3">
            <label @if(!$isInfo) class="required" @endif>{{__('validation.attributes.ope_name')}}</label>
        </div>
        <div class="form-group col-9">
            <div class="input-group">
                <input type="text" value="{{$ope_name}}" @if(!$isInfo) placeholder="{{__('validation.attributes.ope_name')}}" @endif
                       name="ope_name"
                       class="form-control form-control-lg" @if($isInfo) readonly @endif/>
            </div>
        </div>
        <!-- /.form group - オペレータ名 -->

        @if(!$isInfo)
            <div class="form-group col-3">
                <label @if(!$isInfo) class="required" @endif>{{__('validation.attributes.password')}}</label>
            </div>
            <div class="form-group col-9">
                <div class="input-group">
                    <input type="password" name="password" class="form-control form-control-lg"
                           @if(!$isInfo) placeholder="{{__('validation.attributes.ope_name')}}" @endif>
                </div>
            </div>
            <div class="form-group col-3">
                <label @if(!$isInfo) class="required" @endif>{{__('validation.attributes.password_confirmation')}}</label>
            </div>
            <div class="form-group col-9">
                <div class="input-group">
                    <input type="password" name="password_confirmation" class="form-control form-control-lg"
                           @if(!$isInfo) placeholder="{{__('validation.attributes.password_confirmation')}}" @endif>
                </div>
            </div>
    @endif

    <!-- オペレータ種別 -->
        <div class="form-group col-3">
            <label @if(!$isInfo) class="required" @endif>{{__('validation.attributes.ope_type')}}</label>
        </div>
        <div class="form-group col-9">
            <div class="input-group">
                <select name="ope_type" class="form-control form-control-lg" @if($isInfo)  disabled @endif>
                    <option value="">{{__('validation.attributes.ope_type')}}</option>
                    @foreach(\App\Ope::OPE_TYPE as $key => $item)
                        <option value="{{$key}}" @if($key == $ope_type) selected @endif>{{$item}}</option>
                    @endforeach
                </select>
            </div>
        </div>
        <!-- /.form group - オペレータ種別 -->

        <!-- メールアドレス -->
        <div class="form-group col-3">
            <label @if(!$isInfo) class="required" @endif>{{__('validation.attributes.ope_mail')}}</label>
        </div>
        <div class="form-group col-9">
            <div class="input-group">
                <input type="text" value="{{$ope_mail}}" @if(!$isInfo) placeholder="{{__('validation.attributes.ope_mail')}}" @endif
                       name="ope_mail"
                       class="form-control form-control-lg" @if($isInfo) readonly @endif/>
            </div>
        </div>
        <!-- /.form group - メールアドレス -->

        <!-- 電話番号 -->
        <div class="form-group col-3">
            <label>{{__('validation.attributes.ope_phone')}}</label>
        </div>
        <div class="form-group col-9">
            <div class="input-group">
                <input type="text" value="{{$ope_phone}}" @if(!$isInfo) placeholder="{{__('validation.attributes.ope_phone')}}" @endif
                       name="ope_phone"
                       class="form-control form-control-lg" @if($isInfo) readonly @endif/>
            </div>
        </div>
        <!-- /.form group - 電話番号 -->

        <!-- キュー1アラート送信 -->
        <div class="form-group col-3">
            <label>{{__('validation.attributes.ope_sendalart_que1')}}</label>
        </div>
        <div class="form-group col-9">
            <div class="row">
                <div class="col-2 offset-1 form-check">
                    <input type="radio" class="minimal"
                           name="ope_sendalart_que1" @if($isInfo) disabled @endif
                           value="1" {{$ope_sendalart_que1? 'checked':''}}>
                    <label class="form-check-label">{{__("はい")}}</label>
                </div>
                <div class="col-2 form-check">
                    <input type="radio" class="minimal"
                           name="ope_sendalart_que1" @if($isInfo) disabled @endif
                           value="0" {{!$ope_sendalart_que1? 'checked':''}}>
                    <label class="form-check-label">{{__("いいえ")}}</label>
                </div>
            </div>
        </div>
        <!-- /.form group - キュー1アラート送信 -->

        <!-- キュー2アラート送信 -->
        <div class="form-group col-3">
            <label>{{__('validation.attributes.ope_sendalart_que2')}}</label>
        </div>
        <div class="form-group col-9">
            <div class="row">
                <div class="col-2 offset-1 form-check">
                    <input type="radio" class="minimal"
                           name="ope_sendalart_que2" @if($isInfo) disabled @endif
                           value="1" {{$ope_sendalart_que2? 'checked':''}}>
                    <label class="form-check-label">{{__("はい")}}</label>
                </div>
                <div class="col-2 form-check">
                    <input type="radio" class="minimal"
                           name="ope_sendalart_que2" @if($isInfo) disabled @endif
                           value="0" {{!$ope_sendalart_que2? 'checked':''}}>
                    <label class="form-check-label">{{__("いいえ")}}</label>
                </div>
            </div>
        </div>
        <!-- /.form group - キュー2アラート送信 -->

        <!-- キュー3アラート送信 -->
        <div class="form-group col-3">
            <label>{{__('validation.attributes.ope_sendalart_que3')}}</label>
        </div>
        <div class="form-group col-9">
            <div class="row">
                <div class="col-2 offset-1 form-check">
                    <input type="radio" class="minimal"
                           name="ope_sendalart_que3" @if($isInfo) disabled @endif
                           value="1" {{$ope_sendalart_que3? 'checked':''}}>
                    <label class="form-check-label">{{__("はい")}}</label>
                </div>
                <div class="col-2 form-check">
                    <input type="radio" class="minimal"
                           name="ope_sendalart_que3" @if($isInfo) disabled @endif
                           value="0" {{!$ope_sendalart_que3? 'checked':''}}>
                    <label class="form-check-label">{{__("いいえ")}}</label>
                </div>
            </div>
        </div>
        <!-- /.form group - キュー3アラート送信 -->

        <!-- キュー4アラート送信 -->
        <div class="form-group col-3">
            <label>{{__('validation.attributes.ope_sendalart_que4')}}</label>
        </div>
        <div class="form-group col-9">
            <div class="row">
                <div class="col-2 offset-1 form-check">
                    <input type="radio" class="minimal"
                           name="ope_sendalart_que4" @if($isInfo) disabled @endif
                           value="1" {{$ope_sendalart_que4? 'checked':''}}>
                    <label class="form-check-label">{{__("はい")}}</label>
                </div>
                <div class="col-2 form-check">
                    <input type="radio" class="minimal"
                           name="ope_sendalart_que4" @if($isInfo) disabled @endif
                           value="0" {{!$ope_sendalart_que4? 'checked':''}}>
                    <label class="form-check-label">{{__("いいえ")}}</label>
                </div>
            </div>
        </div>
        <!-- /.form group - キュー4アラート送信 -->

        <!-- キュー5アラート送信 -->
        <div class="form-group col-3">
            <label>{{__('validation.attributes.ope_sendalart_que5')}}</label>
        </div>
        <div class="form-group col-9">
            <div class="row">
                <div class="col-2 offset-1 form-check">
                    <input type="radio" class="minimal"
                           name="ope_sendalart_que5" @if($isInfo) disabled @endif
                           value="1" {{$ope_sendalart_que5? 'checked':''}}>
                    <label class="form-check-label">{{__("はい")}}</label>
                </div>
                <div class="col-2 form-check">
                    <input type="radio" class="minimal"
                           name="ope_sendalart_que5" @if($isInfo) disabled @endif
                           value="0" {{!$ope_sendalart_que5? 'checked':''}}>
                    <label class="form-check-label">{{__("いいえ")}}</label>
                </div>
            </div>
        </div>
        <!-- /.form group - キュー5アラート送信 -->

        <!-- キュー6アラート送信 -->
        <div class="form-group col-3">
            <label>{{__('validation.attributes.ope_sendalart_que6')}}</label>
        </div>
        <div class="form-group col-9">
            <div class="row">
                <div class="col-2 offset-1 form-check">
                    <input type="radio" class="minimal"
                           name="ope_sendalart_que6" @if($isInfo) disabled @endif
                           value="1" {{$ope_sendalart_que6? 'checked':''}}>
                    <label class="form-check-label">{{__("はい")}}</label>
                </div>
                <div class="col-2 form-check">
                    <input type="radio" class="minimal"
                           name="ope_sendalart_que6" @if($isInfo) disabled @endif
                           value="0" {{!$ope_sendalart_que6? 'checked':''}}>
                    <label class="form-check-label">{{__("いいえ")}}</label>
                </div>
            </div>
        </div>
        <!-- /.form group - キュー6アラート送信 -->

        <!-- キュー7アラート送信 -->
        <div class="form-group col-3">
            <label>{{__('validation.attributes.ope_sendalart_que7')}}</label>
        </div>
        <div class="form-group col-9">
            <div class="row">
                <div class="col-2 offset-1 form-check">
                    <input type="radio" class="minimal"
                           name="ope_sendalart_que7" @if($isInfo) disabled @endif
                           value="1" {{$ope_sendalart_que7? 'checked':''}}>
                    <label class="form-check-label">{{__("はい")}}</label>
                </div>
                <div class="col-2 form-check">
                    <input type="radio" class="minimal"
                           name="ope_sendalart_que7" @if($isInfo) disabled @endif
                           value="0" {{!$ope_sendalart_que7? 'checked':''}}>
                    <label class="form-check-label">{{__("いいえ")}}</label>
                </div>
            </div>
        </div>
        <!-- /.form group - キュー7アラート送信 -->

        <!-- キュー8アラート送信 -->
        <div class="form-group col-3">
            <label>{{__('validation.attributes.ope_sendalart_que8')}}</label>
        </div>
        <div class="form-group col-9">
            <div class="row">
                <div class="col-2 offset-1 form-check">
                    <input type="radio" class="minimal"
                           name="ope_sendalart_que8" @if($isInfo) disabled @endif
                           value="1" {{$ope_sendalart_que8? 'checked':''}}>
                    <label class="form-check-label">{{__("はい")}}</label>
                </div>
                <div class="col-2 form-check">
                    <input type="radio" class="minimal"
                           name="ope_sendalart_que8" @if($isInfo) disabled @endif
                           value="0" {{!$ope_sendalart_que8? 'checked':''}}>
                    <label class="form-check-label">{{__("いいえ")}}</label>
                </div>
            </div>
        </div>

        <!-- キュー9アラート送信 -->
        <div class="form-group col-3">
            <label>{{__('validation.attributes.ope_sendalart_que9')}}</label>
        </div>
        <div class="form-group col-9">
            <div class="row">
                <div class="col-2 offset-1 form-check">
                    <input type="radio" class="minimal"
                           name="ope_sendalart_que9" @if($isInfo) disabled @endif
                           value="1" {{$ope_sendalart_que9? 'checked':''}}>
                    <label class="form-check-label">{{__("はい")}}</label>
                </div>
                <div class="col-2 form-check">
                    <input type="radio" class="minimal"
                           name="ope_sendalart_que9" @if($isInfo) disabled @endif
                           value="0" {{!$ope_sendalart_que9? 'checked':''}}>
                    <label class="form-check-label">{{__("いいえ")}}</label>
                </div>
            </div>
        </div>

        <!-- キュー10アラート送信 -->
        <div class="form-group col-3">
            <label>{{__('validation.attributes.ope_sendalart_que10')}}</label>
        </div>
        <div class="form-group col-9">
            <div class="row">
                <div class="col-2 offset-1 form-check">
                    <input type="radio" class="minimal"
                           name="ope_sendalart_que10" @if($isInfo) disabled @endif
                           value="1" {{$ope_sendalart_que10? 'checked':''}}>
                    <label class="form-check-label">{{__("はい")}}</label>
                </div>
                <div class="col-2 form-check">
                    <input type="radio" class="minimal"
                           name="ope_sendalart_que10" @if($isInfo) disabled @endif
                           value="0" {{!$ope_sendalart_que10? 'checked':''}}>
                    <label class="form-check-label">{{__("いいえ")}}</label>
                </div>
            </div>
        </div>

        <!-- キュー11アラート送信 -->
        <div class="form-group col-3">
            <label>{{__('validation.attributes.ope_sendalart_que11')}}</label>
        </div>
        <div class="form-group col-9">
            <div class="row">
                <div class="col-2 offset-1 form-check">
                    <input type="radio" class="minimal"
                           name="ope_sendalart_que11" @if($isInfo) disabled @endif
                           value="1" {{$ope_sendalart_que11? 'checked':''}}>
                    <label class="form-check-label">{{__("はい")}}</label>
                </div>
                <div class="col-2 form-check">
                    <input type="radio" class="minimal"
                           name="ope_sendalart_que11" @if($isInfo) disabled @endif
                           value="0" {{!$ope_sendalart_que11? 'checked':''}}>
                    <label class="form-check-label">{{__("いいえ")}}</label>
                </div>
            </div>
        </div>

        <!-- キュー12アラート送信 -->
        <div class="form-group col-3">
            <label>{{__('validation.attributes.ope_sendalart_que12')}}</label>
        </div>
        <div class="form-group col-9">
            <div class="row">
                <div class="col-2 offset-1 form-check">
                    <input type="radio" class="minimal"
                           name="ope_sendalart_que12" @if($isInfo) disabled @endif
                           value="1" {{$ope_sendalart_que12? 'checked':''}}>
                    <label class="form-check-label">{{__("はい")}}</label>
                </div>
                <div class="col-2 form-check">
                    <input type="radio" class="minimal"
                           name="ope_sendalart_que12" @if($isInfo) disabled @endif
                           value="0" {{!$ope_sendalart_que12? 'checked':''}}>
                    <label class="form-check-label">{{__("いいえ")}}</label>
                </div>
            </div>
        </div>

        <!-- キュー13アラート送信 -->
        <div class="form-group col-3">
            <label>{{__('validation.attributes.ope_sendalart_que13')}}</label>
        </div>
        <div class="form-group col-9">
            <div class="row">
                <div class="col-2 offset-1 form-check">
                    <input type="radio" class="minimal"
                           name="ope_sendalart_que13" @if($isInfo) disabled @endif
                           value="1" {{$ope_sendalart_que13? 'checked':''}}>
                    <label class="form-check-label">{{__("はい")}}</label>
                </div>
                <div class="col-2 form-check">
                    <input type="radio" class="minimal"
                           name="ope_sendalart_que13" @if($isInfo) disabled @endif
                           value="0" {{!$ope_sendalart_que13? 'checked':''}}>
                    <label class="form-check-label">{{__("いいえ")}}</label>
                </div>
            </div>
        </div>

        <!-- 管理者権限付与 -->
        <div class="form-group col-3">
            <label>{{__('validation.attributes.ope_auth1')}}</label>
        </div>
        <div class="form-group col-9">
            <div class="row">
                <div class="col-3 offset-1 form-check">
                    <input type="radio" class="minimal"
                           name="ope_auth1" @if($isInfo) disabled @endif
                           value="{{__("管理者権限付与")}}" {{$ope_auth1 == __("管理者権限付与")? 'checked':''}}>
                    <label class="form-check-label">{{__("管理者権限付与")}}</label>
                </div>
                <div class="col-2 form-check">
                    <input type="radio" class="minimal"
                           name="ope_auth1" @if($isInfo) disabled @endif
                           value="{{__("付与しない")}}" {{$ope_auth1 == __("付与しない")? 'checked':''}}>
                    <label class="form-check-label">{{__("付与しない")}}</label>
                </div>
            </div>
        </div>

        <!-- エリアマネージャー権限付与. -->
        <div class="form-group col-3">
            <label>{{__('validation.attributes.ope_auth2')}}</label>
        </div>
        <div class="form-group col-9">
            <div class="row">
                <div class="col-4 offset-1 form-check">
                    <input type="radio" class="minimal"
                           name="ope_auth2" @if($isInfo) disabled @endif
                           value="{{__("エリアマネージャー権限付与")}}" {{$ope_auth2 == __("エリアマネージャー権限付与")? 'checked':''}}>
                    <label class="form-check-label">{{__("エリアマネージャー権限付与")}}</label>
                </div>
                <div class="col-2 form-check">
                    <input type="radio" class="minimal"
                           name="ope_auth2" @if($isInfo) disabled @endif
                           value="{{__("付与しない")}}" {{$ope_auth2 == __("付与しない")? 'checked':''}}>
                    <label class="form-check-label">{{__("付与しない")}}</label>
                </div>
            </div>
        </div>

        <!-- エリアオペレーター権限付与. -->
        <div class="form-group col-3">
            <label>{{__('validation.attributes.ope_auth3')}}</label>
        </div>
        <div class="form-group col-9">
            <div class="row">
                <div class="col-4 offset-1 form-check">
                    <input type="radio" class="minimal"
                           name="ope_auth3" @if($isInfo) disabled @endif
                           value="{{__("エリアオペレーター権限付与")}}" {{$ope_auth3 == __("エリアオペレーター権限付与")? 'checked':''}}>
                    <label class="form-check-label">{{__("エリアオペレーター権限付与")}}</label>
                </div>
                <div class="col-2 form-check">
                    <input type="radio" class="minimal"
                           name="ope_auth3" @if($isInfo) disabled @endif
                           value="{{__("付与しない")}}" {{$ope_auth3 == __("付与しない")? 'checked':''}}>
                    <label class="form-check-label">{{__("付与しない")}}</label>
                </div>
            </div>
        </div>

        <!-- オペレーター権限付与. -->
        <div class="form-group col-3">
            <label>{{__('validation.attributes.ope_auth4')}}</label>
        </div>
        <div class="form-group col-9">
            <div class="row">
                <div class="col-4 offset-1 form-check">
                    <input type="radio" class="minimal"
                           name="ope_auth4" @if($isInfo) disabled @endif
                           value="{{__("オペレーター権限付与")}}" {{$ope_auth4 == __("オペレーター権限付与")? 'checked':''}}>
                    <label class="form-check-label">{{__("オペレーター権限付与")}}</label>
                </div>
                <div class="col-2 form-check">
                    <input type="radio" class="minimal"
                           name="ope_auth4" @if($isInfo) disabled @endif
                           value="{{__("付与しない")}}" {{$ope_auth4 == __("付与しない")? 'checked':''}}>
                    <label class="form-check-label">{{__("付与しない")}}</label>
                </div>
            </div>
        </div>

        <!-- 退職フラグ -->
        <div class="form-group col-3">
            <label>{{__('validation.attributes.ope_quit_flag')}}</label>
        </div>
        <div class="form-group col-9">
            <div class="row">
                <div class="col-2 offset-1 form-check">
                    <input type="radio" class="minimal"
                           name="ope_quit_flag" @if($isInfo) disabled @endif
                           value="1" {{$ope_quit_flag? 'checked':''}}>
                    <label class="form-check-label">{{__('退職')}}</label>
                </div>
                <div class="col-2 form-check">
                    <input type="radio" class="minimal"
                           name="ope_quit_flag" @if($isInfo) disabled @endif
                           value="0" {{!$ope_quit_flag? 'checked':''}}>
                    <label class="form-check-label">{{__('退職しない')}}</label>
                </div>
            </div>
        </div>
        <!-- /.form group - 退職フラグ -->

        <!-- 退職日 -->
        <div class="form-group col-3">
            <label>{{__('validation.attributes.ope_quitday')}}</label>
        </div>
        <div class="form-group col-9">
            <div class="input-group">
                <input type="date" value="{{$ope_quitday}}" @if(!$isInfo) placeholder="{{__('validation.attributes.ope_quitday')}}" @endif
                       name="ope_quitday"
                       class="form-control form-control-lg" @if($isInfo) readonly @endif/>
            </div>
        </div>
        <!-- /.form group - 退職日 -->
    </div>
    @if($isInfo)
        <a href="{{route('ope_add')}}" class="btn btn-lg btn-success">{{__('登録')}}</a>
        <a href="{{route('ope_edit',['id'=>$ope_id])}}" class="btn btn-lg btn-danger">{{__('編集')}}</a>
    @else
        <button type="submit" class="btn btn-lg btn-danger register" >{{__('保存')}}</button>
    @endIf
</div>

