168 lines
7.7 KiB
PHP
168 lines
7.7 KiB
PHP
<div class="card-body">
|
||
<div class="row">
|
||
<!-- オペレータID(只读) -->
|
||
@if(isset($ope_id))
|
||
<div class="form-group col-3">
|
||
<label>{{__('オペレータID')}}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<input type="text" class="form-control form-control-lg" value="{{ $ope_id }}" readonly>
|
||
</div>
|
||
@endif
|
||
|
||
<!-- オペレータ名 -->
|
||
<div class="form-group col-3">
|
||
<label class="required">{{__('validation.attributes.ope_name')}}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<input type="text" name="ope_name" class="form-control form-control-lg"
|
||
value="{{ old('ope_name', $ope_name ?? '') }}"
|
||
placeholder="{{__('validation.attributes.ope_name')}}" />
|
||
</div>
|
||
|
||
<!-- ログインID -->
|
||
<div class="form-group col-3">
|
||
<label class="required">{{__('ログインID')}}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<input type="text" name="login_id" class="form-control form-control-lg"
|
||
value="{{ old('login_id', $login_id ?? '') }}"
|
||
placeholder="{{__('validation.attributes.login_id')}}" />
|
||
</div>
|
||
|
||
<!-- パスワード -->
|
||
<div class="form-group col-3">
|
||
<label class="required">{{__('validation.attributes.password')}}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<input type="password" name="password" class="form-control form-control-lg"
|
||
placeholder="{{__('validation.attributes.password')}}" />
|
||
</div>
|
||
|
||
<!-- パスワード確認 -->
|
||
<div class="form-group col-3">
|
||
<label class="required">{{__('validation.attributes.password_confirmation')}}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<input type="password" name="password_confirmation" class="form-control form-control-lg"
|
||
placeholder="{{__('validation.attributes.password_confirmation')}}" />
|
||
</div>
|
||
|
||
<!-- オペレータ種別 -->
|
||
<div class="form-group col-3">
|
||
<label class="required">{{__('validation.attributes.ope_type')}}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<select name="ope_type" class="form-control form-control-lg">
|
||
<option value="">{{__('validation.attributes.ope_type')}}</option>
|
||
@foreach(\App\Models\Ope::OPE_TYPE as $key => $item)
|
||
<option value="{{$key}}" {{ old('ope_type', $ope_type ?? '') == $key ? 'selected' : '' }}>{{$item}}</option>
|
||
@endforeach
|
||
</select>
|
||
</div>
|
||
|
||
<!-- メールアドレス -->
|
||
<div class="form-group col-3">
|
||
<label class="required">{{__('validation.attributes.ope_mail')}}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<input type="text" name="ope_mail" class="form-control form-control-lg"
|
||
value="{{ old('ope_mail', $ope_mail ?? '') }}"
|
||
placeholder="{{__('validation.attributes.ope_mail')}}" />
|
||
</div>
|
||
|
||
<!-- 電話番号 -->
|
||
<div class="form-group col-3">
|
||
<label>{{__('validation.attributes.ope_phone')}}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<input type="text" name="ope_phone" class="form-control form-control-lg"
|
||
value="{{ old('ope_phone', $ope_phone ?? '') }}"
|
||
placeholder="{{__('validation.attributes.ope_phone')}}" />
|
||
</div>
|
||
|
||
<!-- キュー1~13アラート送信(横向き3列) -->
|
||
@for($i=1;$i<=13;$i++)
|
||
@if($i == 1 || ($i-1)%3 == 0)
|
||
<div class="w-100"></div>
|
||
@endif
|
||
<div class="form-group col-3">
|
||
<label>{{__('validation.attributes.ope_sendalart_que'.$i)}}</label>
|
||
</div>
|
||
<div class="form-group col-1">
|
||
<input type="radio" class="minimal"
|
||
name="ope_sendalart_que{{$i}}"
|
||
value="1" {{ old('ope_sendalart_que'.$i, ${'ope_sendalart_que'.$i} ?? 0) == 1 ? 'checked' : '' }}>
|
||
<label class="form-check-label">{{__("はい")}}</label>
|
||
</div>
|
||
<div class="form-group col-1">
|
||
<input type="radio" class="minimal"
|
||
name="ope_sendalart_que{{$i}}"
|
||
value="0" {{ old('ope_sendalart_que'.$i, ${'ope_sendalart_que'.$i} ?? 0) == 0 ? 'checked' : '' }}>
|
||
<label class="form-check-label">{{__("いいえ")}}</label>
|
||
</div>
|
||
@endfor
|
||
|
||
<!-- 権限付与(2列横並び) -->
|
||
@foreach([1=>'管理者権限付与',2=>'エリアマネージャー権限付与',3=>'エリアオペレーター権限付与',4=>'オペレーター権限付与'] as $n=>$label)
|
||
@if($n == 1 || $n == 3)
|
||
<div class="w-100"></div>
|
||
@endif
|
||
<div class="form-group col-3">
|
||
<label>{{__('validation.attributes.ope_auth'.$n)}}</label>
|
||
</div>
|
||
<div class="form-group col-2">
|
||
<input type="radio" class="minimal"
|
||
name="ope_auth{{$n}}"
|
||
value="{{__($label)}}" {{ old('ope_auth'.$n, ${'ope_auth'.$n} ?? '') == __($label) ? 'checked' : '' }}>
|
||
<label class="form-check-label">{{__($label)}}</label>
|
||
</div>
|
||
<div class="form-group col-2">
|
||
<input type="radio" class="minimal"
|
||
name="ope_auth{{$n}}"
|
||
value="{{__("付与しない")}}" {{ old('ope_auth'.$n, ${'ope_auth'.$n} ?? '') == __("付与しない") ? 'checked' : '' }}>
|
||
<label class="form-check-label">{{__("付与しない")}}</label>
|
||
</div>
|
||
@endforeach
|
||
|
||
<!-- 退職フラグ -->
|
||
<div class="form-group col-3">
|
||
<label>{{__('validation.attributes.ope_quit_flag')}}</label>
|
||
</div>
|
||
<div class="form-group col-2">
|
||
<input type="radio" class="minimal"
|
||
name="ope_quit_flag"
|
||
value="1" {{ old('ope_quit_flag', $ope_quit_flag ?? 0) == 1 ? 'checked' : '' }}>
|
||
<label class="form-check-label">{{__('退職')}}</label>
|
||
</div>
|
||
<div class="form-group col-2">
|
||
<input type="radio" class="minimal"
|
||
name="ope_quit_flag"
|
||
value="0" {{ old('ope_quit_flag', $ope_quit_flag ?? 0) == 0 ? 'checked' : '' }}>
|
||
<label class="form-check-label">{{__('退職しない')}}</label>
|
||
</div>
|
||
|
||
<!-- 退職日 -->
|
||
<div class="form-group col-3">
|
||
<label>{{__('validation.attributes.ope_quitday')}}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<input type="date" name="ope_quitday" class="form-control form-control-lg"
|
||
value="{{ old('ope_quitday', $ope_quitday ?? '') }}"
|
||
placeholder="{{__('validation.attributes.ope_quitday')}}" />
|
||
</div>
|
||
</div>
|
||
<div class="text-center mt-4">
|
||
@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-success register">{{__('登録')}}</button>
|
||
@if(isset($isEdit) && $isEdit)
|
||
<button type="submit" name="delete" value="1" class="btn btn-lg btn-danger ml-2">{{__('削除')}}</button>
|
||
@endif
|
||
@endif
|
||
</div>
|
||
</div>
|
||
|