krgm.so-manager-dev.com/resources/views/admin/settings/_form.blade.php

202 lines
7.8 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{{-- フラッシュメッセージ --}}
@if(session('success'))
<div class="alert alert-success alert-dismissible">
<button type="button" class="close" data-dismiss="alert">×</button>
{{ session('success') }}
</div>
@elseif(session('error'))
<div class="alert alert-danger alert-dismissible">
<button type="button" class="close" data-dismiss="alert">×</button>
{!! session('error') !!}
</div>
@endif
{{-- ===== 上部ボタン領域 ===== --}}
<div class="card-header">
@if(!empty($isInfo) && !empty($setting?->setting_id))
<a href="{{ route('settings_add') }}" class="btn btn-success btn-lg">新規登録</a>
<a href="{{ route('settings_edit', ['id' => $setting->setting_id]) }}" class="btn btn-warning btn-lg">編集</a>
@else
<button type="submit" class="btn btn-primary btn-lg">保存</button>
@endif
</div>
<div class="card-body">
<div class="row">
{{-- 設定ID情報/編集時のみ表示) --}}
@if(!empty($isInfo) || !empty($isEdit))
<div class="form-group col-3">
<label>設定ID</label>
</div>
<div class="form-group col-9">
<input type="text" value="{{ $setting->setting_id ?? '' }}" class="form-control form-control-lg" readonly>
</div>
@endif
{{-- 編集マスタ --}}
<div class="form-group col-3">
<label>編集マスタ</label>
</div>
<div class="form-group col-9">
<input type="text" name="edit_master"
value="{{ old('edit_master', $setting->edit_master ?? '') }}"
class="form-control form-control-lg"
@if(!empty($isInfo)) readonly @endif>
</div>
{{-- ウェブ参照マスタ --}}
<div class="form-group col-3">
<label>ウェブ参照マスタ</label>
</div>
<div class="form-group col-9">
<input type="text" name="web_master"
value="{{ old('web_master', $setting->web_master ?? '') }}"
class="form-control form-control-lg"
@if(!empty($isInfo)) readonly @endif>
</div>
{{-- ウェブ参照マスタ自動切り替え日時datetime-local --}}
<div class="form-group col-3">
<label>ウェブ参照マスタ自動切り替え日時</label>
</div>
<div class="form-group col-9">
<input type="datetime-local" name="auto_change_date"
value="{{ old('auto_change_date', optional($setting->auto_change_date ?? null)->format('Y-m-d\TH:i')) }}"
class="form-control form-control-lg"
@if(!empty($isInfo)) readonly @endif>
</div>
{{-- 自動切換えウェブ参照マスタ(※カラム名 chage --}}
<div class="form-group col-3">
<label>自動切換えウェブ参照マスタ</label>
</div>
<div class="form-group col-9">
<input type="text" name="auto_chage_master"
value="{{ old('auto_chage_master', $setting->auto_chage_master ?? '') }}"
class="form-control form-control-lg"
@if(!empty($isInfo)) readonly @endif>
</div>
{{-- 再発行アラート回数 --}}
<div class="form-group col-3">
<label>再発行アラート回数</label>
</div>
<div class="form-group col-9">
<input type="number" name="re_issue_alert_number" min="0"
value="{{ old('re_issue_alert_number', $setting->re_issue_alert_number ?? '') }}"
class="form-control form-control-lg"
@if(!empty($isInfo)) readonly @endif>
</div>
{{-- ニュースイメージURLベース名 --}}
<div class="form-group col-3">
<label>ニュースイメージURLベース名</label>
</div>
<div class="form-group col-9">
<input type="text" name="image_base_url1"
value="{{ old('image_base_url1', $setting->image_base_url1 ?? '') }}"
class="form-control form-control-lg"
@if(!empty($isInfo)) readonly @endif>
</div>
{{-- 本人確認写真URLベース名 --}}
<div class="form-group col-3">
<label>本人確認写真URLベース名</label>
</div>
<div class="form-group col-9">
<input type="text" name="image_base_url2"
value="{{ old('image_base_url2', $setting->image_base_url2 ?? '') }}"
class="form-control form-control-lg"
@if(!empty($isInfo)) readonly @endif>
</div>
{{-- プリンタ印字残警告フラグ(チェックボックス) --}}
<div class="form-group col-3">
<label>プリンタ印字残警告フラグ</label>
</div>
<div class="form-group col-9 d-flex align-items-center">
@php
$flag = old('printable_alert_flag', isset($setting) ? (int)$setting->printable_alert_flag : 0);
@endphp
<input type="hidden" name="printable_alert_flag" value="0">
<input type="checkbox" name="printable_alert_flag" value="1"
@if($flag) checked @endif
@if(!empty($isInfo)) disabled @endif>
<span class="ml-2">{{ $flag ? '有効' : '無効' }}</span>
</div>
{{-- プリンタロール紙印字可能数 --}}
<div class="form-group col-3">
<label>プリンタロール紙印字可能数</label>
</div>
<div class="form-group col-9">
<input type="number" name="printable_number" min="0"
value="{{ old('printable_number', $setting->printable_number ?? '') }}"
class="form-control form-control-lg"
@if(!empty($isInfo)) readonly @endif>
</div>
{{-- プリンタロール紙印字残警告数 --}}
<div class="form-group col-3">
<label>プリンタロール紙印字残警告数</label>
</div>
<div class="form-group col-9">
<input type="number" name="printable_alert_number" min="0"
value="{{ old('printable_alert_number', $setting->printable_alert_number ?? '') }}"
class="form-control form-control-lg"
@if(!empty($isInfo)) readonly @endif>
</div>
{{-- プリンタ制御プログラムキープアライブ間隔(分) --}}
<div class="form-group col-3">
<label>プリンタ制御プログラムキープアライブ間隔(分)</label>
</div>
<div class="form-group col-9">
<input type="number" name="printer_keep_alive" min="0"
value="{{ old('printer_keep_alive', $setting->printer_keep_alive ?? '') }}"
class="form-control form-control-lg"
@if(!empty($isInfo)) readonly @endif>
</div>
{{-- 更新オペレータID --}}
<div class="form-group col-3">
<label>更新オペレータID</label>
</div>
<div class="form-group col-9">
<input type="number" name="operator_id" min="0"
value="{{ old('operator_id', $setting->operator_id ?? '') }}"
class="form-control form-control-lg"
@if(!empty($isInfo)) readonly @endif>
</div>
{{-- 登録/更新日時(情報表示のみ) --}}
@if(!empty($isInfo))
<div class="form-group col-3">
<label>登録日時</label>
</div>
<div class="form-group col-9">
<input type="text" value="{{ optional($setting->created_at)->format('Y-m-d H:i:s') }}" class="form-control form-control-lg" readonly>
</div>
<div class="form-group col-3">
<label>更新日時</label>
</div>
<div class="form-group col-9">
<input type="text" value="{{ optional($setting->updated_at)->format('Y-m-d H:i:s') }}" class="form-control form-control-lg" readonly>
</div>
@endif
</div>
</div>
{{-- ===== 下部ボタン領域 ===== --}}
<div class="card-header">
@if(!empty($isInfo) && !empty($setting?->setting_id))
<a href="{{ route('settings_add') }}" class="btn btn-success btn-lg">新規登録</a>
<a href="{{ route('settings_edit', ['id' => $setting->setting_id]) }}" class="btn btn-warning btn-lg">編集</a>
@else
<button type="submit" class="btn btn-primary btn-lg">保存</button>
@endif
</div>