976 lines
42 KiB
PHP
976 lines
42 KiB
PHP
|
||
{{-- アラート(成功) --}}
|
||
@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>
|
||
@endif
|
||
|
||
{{-- アラート(エラー:Session) --}}
|
||
@if(Session::has('error'))
|
||
<div class="alert alert-danger alert-dismissible" role="alert">
|
||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||
{!! Session::get('error') !!}
|
||
</div>
|
||
@endif
|
||
|
||
{{-- アラート(任意エラー) --}}
|
||
@if(isset($errorMsg))
|
||
<div class="alert alert-danger alert-dismissible" role="alert">
|
||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||
@if(is_array($errorMsg))
|
||
<ul class="mb-0">
|
||
@foreach($errorMsg as $msg)
|
||
<li>{{ $msg }}</li>
|
||
@endforeach
|
||
</ul>
|
||
@else
|
||
{!! $errorMsg !!}
|
||
@endif
|
||
</div>
|
||
@endif
|
||
|
||
{{-- バリデーションエラー --}}
|
||
@if($errors->any())
|
||
<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>
|
||
<ul>
|
||
@foreach($errors->all() as $error)
|
||
<li>{{ $error }}</li>
|
||
@endforeach
|
||
</ul>
|
||
</div>
|
||
@endif
|
||
|
||
<div class="card-body">
|
||
<div class="row">
|
||
|
||
{{-- ▼ 駐輪場ID(編集時のみ表示) --}}
|
||
@if(!empty($isEdit))
|
||
<div class="form-group col-3">
|
||
<label>{{ __('駐輪場ID') }}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<div class="input-group">
|
||
<input type="text"
|
||
class="form-control form-control-lg bg-light"
|
||
value="{{ old('park_id', $record->park_id ?? '') }}"
|
||
readonly>
|
||
</div>
|
||
</div>
|
||
@endif
|
||
|
||
{{-- ▼ 市区 --}}
|
||
<div class="form-group col-3">
|
||
<label class="form-label required">{{ __('市区') }}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<div class="input-group">
|
||
<select class="form-control form-control-lg" name="city_id" required>
|
||
<option value="">{{ __('都市を選択') }}</option>
|
||
@foreach($cities as $city)
|
||
<option value="{{ $city->city_id }}"
|
||
@selected(old('city_id', $record->city_id ?? '') == $city->city_id)>
|
||
{{ $city->city_name }}
|
||
</option>
|
||
@endforeach
|
||
</select>
|
||
</div>
|
||
</div>
|
||
|
||
{{-- ▼ 駐輪場名 --}}
|
||
<div class="form-group col-3">
|
||
<label class="form-label required">{{ __('駐輪場名') }}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<div class="input-group">
|
||
<input type="text"
|
||
name="park_name"
|
||
class="form-control form-control-lg"
|
||
placeholder="{{ __('駐輪場名') }}"
|
||
value="{{ old('park_name', $record->park_name ?? '') }}"
|
||
required>
|
||
</div>
|
||
</div>
|
||
|
||
{{-- ▼ 駐輪場ふりがな --}}
|
||
<div class="form-group col-3">
|
||
<label>{{ __('駐輪場ふりがな') }}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<div class="input-group">
|
||
<input type="text"
|
||
name="park_ruby"
|
||
class="form-control form-control-lg"
|
||
placeholder="{{ __('駐輪場ふりがな') }}"
|
||
value="{{ old('park_ruby', $record->park_ruby ?? '') }}">
|
||
</div>
|
||
</div>
|
||
|
||
{{-- ▼ 駐輪場五十音 --}}
|
||
<div class="form-group col-3">
|
||
<label>{{ __('駐輪場五十音') }}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<div class="input-group">
|
||
<input type="text"
|
||
name="park_syllabary"
|
||
class="form-control form-control-lg"
|
||
placeholder="{{ __('駐輪場五十音') }}"
|
||
value="{{ old('park_syllabary', $record->park_syllabary ?? '') }}">
|
||
</div>
|
||
</div>
|
||
|
||
{{-- ▼ 住所 --}}
|
||
<div class="form-group col-3">
|
||
<label>{{ __('住所') }}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<div class="input-group">
|
||
<input type="text"
|
||
name="park_adrs"
|
||
class="form-control form-control-lg"
|
||
placeholder="{{ __('住所') }}"
|
||
value="{{ old('park_adrs', $record->park_adrs ?? '') }}">
|
||
</div>
|
||
</div>
|
||
|
||
{{-- ▼ 閉設フラグ --}}
|
||
<div class="form-group col-3">
|
||
<label>{{ __('閉設フラグ') }}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<div class="input-group d-flex align-items-center">
|
||
@foreach([0=>'開設',1=>'閉設',2=>'準備中'] as $v => $label)
|
||
<div class="form-check form-check-inline">
|
||
<input class="form-check-input"
|
||
type="radio"
|
||
name="park_close_flag"
|
||
id="park_close_flag_{{ $v }}"
|
||
value="{{ $v }}"
|
||
@checked(old('park_close_flag', $record->park_close_flag ?? 0) == $v)>
|
||
<label class="form-check-label" for="park_close_flag_{{ $v }}">{{ $label }}</label>
|
||
</div>
|
||
@endforeach
|
||
</div>
|
||
</div>
|
||
|
||
{{-- ▼ 閉設日 --}}
|
||
<div class="form-group col-3">
|
||
<label>{{ __('閉設日') }}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<div class="input-group">
|
||
<input type="date"
|
||
name="park_day"
|
||
class="form-control form-control-lg"
|
||
value="{{ old('park_day', $record->park_day ?? '') }}">
|
||
</div>
|
||
</div>
|
||
|
||
{{-- ▼ 価格メモ --}}
|
||
<div class="form-group col-3">
|
||
<label>{{ __('価格メモ') }}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<div class="input-group">
|
||
<textarea class="form-control form-control-lg"
|
||
placeholder="{{ __('価格メモ') }}"
|
||
rows="2"
|
||
name="price_memo">{{ old('price_memo', $record->price_memo ?? '') }}</textarea>
|
||
</div>
|
||
</div>
|
||
|
||
{{-- ▼ 逆利用フラグ(一般) --}}
|
||
<div class="form-group col-3">
|
||
<label>{{ __('逆利用(一般)') }}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<div class="input-group d-flex align-items-center">
|
||
{{-- 定義:0(or NULL)=OK / 1=NG --}}
|
||
@foreach([0=>'逆利用OK',1=>'逆利用NG'] as $v => $label)
|
||
<div class="form-check form-check-inline">
|
||
<input class="form-check-input"
|
||
type="radio"
|
||
name="inverse_use_flag1"
|
||
id="inverse_use_flag1_{{ $v }}"
|
||
value="{{ $v }}"
|
||
@checked(old('inverse_use_flag1', $record->inverse_use_flag1 ?? 0) == $v)>
|
||
<label class="form-check-label" for="inverse_use_flag1_{{ $v }}">{{ $label }}</label>
|
||
</div>
|
||
@endforeach
|
||
</div>
|
||
</div>
|
||
|
||
{{-- ▼ 逆利用フラグ(学生) --}}
|
||
<div class="form-group col-3">
|
||
<label>{{ __('逆利用フラグ(学生)') }}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<div class="input-group d-flex align-items-center">
|
||
@foreach([0=>'逆利用OK',1=>'逆利用NG'] as $v => $label)
|
||
<div class="form-check form-check-inline">
|
||
<input class="form-check-input"
|
||
type="radio"
|
||
name="inverse_use_flag2"
|
||
id="inverse_use_flag2_{{ $v }}"
|
||
value="{{ $v }}"
|
||
@checked(old('inverse_use_flag2', $record->inverse_use_flag2 ?? 0) == $v)>
|
||
<label class="form-check-label" for="inverse_use_flag2_{{ $v }}">{{ $label }}</label>
|
||
</div>
|
||
@endforeach
|
||
</div>
|
||
</div>
|
||
|
||
{{-- ▼ 駐輪規定フラグ --}}
|
||
<div class="form-group col-3">
|
||
<label>{{ __('駐輪規定フラグ') }}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<div class="input-group d-flex align-items-center">
|
||
{{-- 定義:0(or NULL)=使用しない / 1=使用する --}}
|
||
@foreach([1=>'使用する',0=>'使用しない'] as $v => $label)
|
||
<div class="form-check form-check-inline">
|
||
<input class="form-check-input"
|
||
type="radio"
|
||
name="parking_regulations_flag"
|
||
id="parking_regulations_flag_{{ $v }}"
|
||
value="{{ $v }}"
|
||
@checked(old('parking_regulations_flag', $record->parking_regulations_flag ?? 0) == $v)>
|
||
<label class="form-check-label" for="parking_regulations_flag_{{ $v }}">{{ $label }}</label>
|
||
</div>
|
||
@endforeach
|
||
</div>
|
||
</div>
|
||
|
||
{{-- ▼ 残警告チェックフラグ --}}
|
||
<div class="form-group col-3">
|
||
<label>{{ __('残警告チェックフラグ') }}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<div class="input-group">
|
||
<input type="number"
|
||
name="alert_flag"
|
||
class="form-control form-control-lg"
|
||
value="{{ old('alert_flag', $record->alert_flag ?? 0) }}">
|
||
</div>
|
||
</div>
|
||
|
||
{{-- ▼ 印字数 --}}
|
||
<div class="form-group col-3">
|
||
<label>{{ __('印字数') }}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<div class="input-group">
|
||
<input type="number"
|
||
name="print_number"
|
||
class="form-control form-control-lg"
|
||
value="{{ old('print_number', $record->print_number ?? 0) }}">
|
||
</div>
|
||
</div>
|
||
|
||
{{-- ▼ 最新キープアライブ --}}
|
||
<div class="form-group col-3">
|
||
<label>{{ __('最新キープアライブ') }}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<div class="input-group">
|
||
<input type="datetime-local"
|
||
name="keep_alive"
|
||
class="form-control form-control-lg"
|
||
value="{{ old('keep_alive', !empty($record?->keep_alive) ? date('Y-m-d\TH:i', strtotime($record->keep_alive)) : '') }}">
|
||
</div>
|
||
</div>
|
||
|
||
{{-- ▼ 更新期間開始日--}}
|
||
<div class="form-group col-3 ">
|
||
<label class="form-label required">{{ __('更新期間開始日') }}</label>
|
||
</div>
|
||
<div class="form-group col-9 ">
|
||
<div class="input-group" >
|
||
<input type="number"
|
||
name="update_grace_period_start_date"
|
||
class="form-control form-control-lg"
|
||
min="1" max="31"
|
||
placeholder="{{ __('更新期間開始日') }}"
|
||
value="{{ old('update_grace_period_start_date', $record->update_grace_period_start_date ?? '') }}">
|
||
</div>
|
||
</div>
|
||
|
||
{{-- ▼ 更新期間開始時(varchar(5) HH:MM) --}}
|
||
<div class="form-group col-3">
|
||
<label class="form-label required">{{ __('更新期間開始時') }}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<div class="input-group">
|
||
<input type="time"
|
||
name="update_grace_period_start_time"
|
||
class="form-control form-control-lg"
|
||
value="{{ old('update_grace_period_start_time', $record->update_grace_period_start_time ?? '') }}">
|
||
</div>
|
||
</div>
|
||
|
||
{{-- ▼ 更新期間終了日(varchar(2) = 日) --}}
|
||
<div class="form-group col-3">
|
||
<label class="form-label required">{{ __('更新期間終了日') }}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<div class="input-group">
|
||
<input type="number"
|
||
name="update_grace_period_end_date"
|
||
class="form-control form-control-lg"
|
||
min="1" max="31"
|
||
placeholder="{{ __('更新期間終了日') }}"
|
||
value="{{ old('update_grace_period_end_date', $record->update_grace_period_end_date ?? '') }}">
|
||
</div>
|
||
</div>
|
||
|
||
{{-- ▼ 更新期間終了時(varchar(5) HH:MM) --}}
|
||
<div class="form-group col-3">
|
||
<label class="form-label required">{{ __('更新期間終了時') }}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<div class="input-group">
|
||
<input type="time"
|
||
name="update_grace_period_end_time"
|
||
class="form-control form-control-lg"
|
||
value="{{ old('update_grace_period_end_time', $record->update_grace_period_end_time ?? '') }}">
|
||
</div>
|
||
</div>
|
||
|
||
{{-- ▼ 駐輪開始猶予期間(日) --}}
|
||
<div class="form-group col-3">
|
||
<label>{{ __('駐輪開始期間') }}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<div class="input-group">
|
||
<input type="number"
|
||
name="parking_start_grace_period"
|
||
class="form-control form-control-lg"
|
||
placeholder="{{ __('駐輪開始期間') }}"
|
||
min="0"
|
||
value="{{ old('parking_start_grace_period', $record->parking_start_grace_period ?? '') }}">
|
||
</div>
|
||
</div>
|
||
|
||
{{-- ▼ リマインダー種別(0=毎日,1=1日おき,2=2日おき) --}}
|
||
<div class="form-group col-3">
|
||
<label>{{ __('リマインダー種別') }}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<div class="input-group d-flex align-items-center">
|
||
@foreach([0=>'毎日',1=>'1日おき',2=>'2日おき'] as $v => $label)
|
||
<div class="form-check form-check-inline">
|
||
<input class="form-check-input"
|
||
type="radio"
|
||
name="reminder_type"
|
||
id="reminder_type_{{ $v }}"
|
||
value="{{ $v }}"
|
||
@checked((string)old('reminder_type', $record->reminder_type ?? '') === (string)$v)>
|
||
<label class="form-check-label" for="reminder_type_{{ $v }}">{{ $label }}</label>
|
||
</div>
|
||
@endforeach
|
||
</div>
|
||
</div>
|
||
|
||
{{-- ▼ リマインダー時間(varchar(5) HH:MM) --}}
|
||
<div class="form-group col-3">
|
||
<label>{{ __('リマインダー時間') }}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<div class="input-group">
|
||
<input type="time"
|
||
name="reminder_time"
|
||
class="form-control form-control-lg"
|
||
value="{{ old('reminder_time', $record->reminder_time ?? '') }}">
|
||
</div>
|
||
</div>
|
||
|
||
{{-- ▼ 契約後即利用許可 --}}
|
||
<div class="form-group col-3">
|
||
<label>{{ __('契約後即利用許可') }}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<div class="input-group d-flex align-items-center">
|
||
@foreach([1=>'許可する',0=>'許可しない'] as $v => $label)
|
||
<div class="form-check form-check-inline">
|
||
<input class="form-check-input"
|
||
type="radio"
|
||
name="immediate_use_permit"
|
||
id="immediate_use_permit_{{ $v }}"
|
||
value="{{ $v }}"
|
||
@checked((string)old('immediate_use_permit', $record->immediate_use_permit ?? '') === (string)$v)>
|
||
<label class="form-check-label" for="immediate_use_permit_{{ $v }}">{{ $label }}</label>
|
||
</div>
|
||
@endforeach
|
||
</div>
|
||
</div>
|
||
|
||
{{-- ▼ 項目表示設定:性別 --}}
|
||
<div class="form-group col-3">
|
||
<label>{{ __('項目表示設定:性別') }}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<div class="input-group d-flex align-items-center">
|
||
@foreach([0=>'表示しない',1=>'表示する'] as $v => $label)
|
||
<div class="form-check form-check-inline">
|
||
<input class="form-check-input"
|
||
type="radio"
|
||
name="gender_display_flag"
|
||
id="gender_display_flag_{{ $v }}"
|
||
value="{{ $v }}"
|
||
@checked((string)old('gender_display_flag', $record->gender_display_flag ?? '') === (string)$v)>
|
||
<label class="form-check-label" for="gender_display_flag_{{ $v }}">{{ $label }}</label>
|
||
</div>
|
||
@endforeach
|
||
</div>
|
||
</div>
|
||
|
||
{{-- ▼ 項目表示設定:生年月日 --}}
|
||
<div class="form-group col-3">
|
||
<label>{{ __('項目表示設定:生年月日') }}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<div class="input-group d-flex align-items-center">
|
||
@foreach([0=>'表示しない',1=>'表示する'] as $v => $label)
|
||
<div class="form-check form-check-inline">
|
||
<input class="form-check-input"
|
||
type="radio"
|
||
name="bd_display_flag"
|
||
id="bd_display_flag_{{ $v }}"
|
||
value="{{ $v }}"
|
||
@checked((string)old('bd_display_flag', $record->bd_display_flag ?? '') === (string)$v)>
|
||
<label class="form-check-label" for="bd_display_flag_{{ $v }}">{{ $label }}</label>
|
||
</div>
|
||
@endforeach
|
||
</div>
|
||
</div>
|
||
|
||
{{-- ▼ 項目表示設定:防犯登録番号 --}}
|
||
<div class="form-group col-3">
|
||
<label>{{ __('項目表示設定:防犯登録番号') }}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<div class="input-group d-flex align-items-center">
|
||
@foreach([0=>'表示しない',1=>'表示する'] as $v => $label)
|
||
<div class="form-check form-check-inline">
|
||
<input class="form-check-input"
|
||
type="radio"
|
||
name="securityreg_display_flag"
|
||
id="securityreg_display_flag_{{ $v }}"
|
||
value="{{ $v }}"
|
||
@checked((string)old('securityreg_display_flag', $record->securityreg_display_flag ?? '') === (string)$v)>
|
||
<label class="form-check-label" for="securityreg_display_flag_{{ $v }}">{{ $label }}</label>
|
||
</div>
|
||
@endforeach
|
||
</div>
|
||
</div>
|
||
|
||
{{-- ▼ 二点間距離 --}}
|
||
<div class="form-group col-3">
|
||
<label>{{ __('二点間距離') }}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<div class="input-group">
|
||
<input type="number"
|
||
name="distance_twopoints"
|
||
class="form-control form-control-lg"
|
||
placeholder="{{ __('二点間距離') }}"
|
||
min="0"
|
||
value="{{ old('distance_twopoints', $record->distance_twopoints ?? '') }}">
|
||
</div>
|
||
</div>
|
||
|
||
{{-- ▼ 駐車場座標(緯度) --}}
|
||
<div class="form-group col-3">
|
||
<label>{{ __('駐車場座標(緯度)') }}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<div class="input-group">
|
||
<input type="text"
|
||
name="park_latitude"
|
||
class="form-control form-control-lg"
|
||
placeholder="{{ __('駐車場座標(緯度)') }}"
|
||
value="{{ old('park_latitude', $record->park_latitude ?? '') }}">
|
||
</div>
|
||
</div>
|
||
|
||
{{-- ▼ 駐車場座標(経度) --}}
|
||
<div class="form-group col-3">
|
||
<label>{{ __('駐車場座標(経度)') }}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<div class="input-group">
|
||
<input type="text"
|
||
name="park_longitude"
|
||
class="form-control form-control-lg"
|
||
placeholder="{{ __('駐車場座標(経度)') }}"
|
||
value="{{ old('park_longitude', $record->park_longitude ?? '') }}">
|
||
</div>
|
||
</div>
|
||
|
||
{{-- ▼ 電話番号 --}}
|
||
<div class="form-group col-3">
|
||
<label>{{ __('電話番号') }}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<div class="input-group">
|
||
<input type="text"
|
||
name="park_tel"
|
||
class="form-control form-control-lg"
|
||
placeholder="{{ __('電話番号') }}"
|
||
value="{{ old('park_tel', $record->park_tel ?? '') }}">
|
||
</div>
|
||
</div>
|
||
|
||
{{-- ▼ 駐輪場契約形態(定期) --}}
|
||
<div class="form-group col-3">
|
||
<label>{{ __('駐輪場契約形態(定期)') }}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<div class="input-group d-flex align-items-center">
|
||
@foreach([1=>'定期利用可',0=>'定期利用不可'] as $v => $label)
|
||
<div class="form-check form-check-inline">
|
||
<input class="form-check-input"
|
||
type="radio"
|
||
name="park_fixed_contract"
|
||
id="park_fixed_contract_{{ $v }}"
|
||
value="{{ $v }}"
|
||
@checked((string)old('park_fixed_contract', $record->park_fixed_contract ?? '') === (string)$v)>
|
||
<label class="form-check-label" for="park_fixed_contract_{{ $v }}">{{ $label }}</label>
|
||
</div>
|
||
@endforeach
|
||
</div>
|
||
</div>
|
||
|
||
{{-- ▼ 駐輪場契約形態(一時利用) --}}
|
||
<div class="form-group col-3">
|
||
<label>{{ __('駐輪場契約形態(一時利用)') }}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<div class="input-group d-flex align-items-center">
|
||
@foreach([1=>'一時利用可',0=>'一時利用不可'] as $v => $label)
|
||
<div class="form-check form-check-inline">
|
||
<input class="form-check-input"
|
||
type="radio"
|
||
name="park_temporary_contract"
|
||
id="park_temporary_contract_{{ $v }}"
|
||
value="{{ $v }}"
|
||
@checked((string)old('park_temporary_contract', $record->park_temporary_contract ?? '') === (string)$v)>
|
||
<label class="form-check-label" for="park_temporary_contract_{{ $v }}">{{ $label }}</label>
|
||
</div>
|
||
@endforeach
|
||
</div>
|
||
</div>
|
||
|
||
{{-- ▼ 車種制限 --}}
|
||
<div class="form-group col-3">
|
||
<label>{{ __('車種制限') }}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<div class="input-group">
|
||
<input type="text"
|
||
name="park_restriction"
|
||
class="form-control form-control-lg"
|
||
placeholder="{{ __('車種制限') }}"
|
||
value="{{ old('park_restriction', $record->park_restriction ?? '') }}">
|
||
</div>
|
||
</div>
|
||
|
||
{{-- ▼ 手続方法 --}}
|
||
<div class="form-group col-3">
|
||
<label>{{ __('手続方法') }}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<div class="input-group">
|
||
<input type="text"
|
||
name="park_procedure"
|
||
class="form-control form-control-lg"
|
||
placeholder="{{ __('手続方法') }}"
|
||
value="{{ old('park_procedure', $record->park_procedure ?? '') }}">
|
||
</div>
|
||
</div>
|
||
|
||
{{-- ▼ 支払方法 --}}
|
||
<div class="form-group col-3">
|
||
<label>{{ __('支払方法') }}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<div class="input-group">
|
||
<input type="text"
|
||
name="park_payment"
|
||
class="form-control form-control-lg"
|
||
placeholder="{{ __('支払方法') }}"
|
||
value="{{ old('park_payment', $record->park_payment ?? '') }}">
|
||
</div>
|
||
</div>
|
||
|
||
{{-- ▼ 利用可能時間制限フラグ --}}
|
||
<div class="form-group col-3">
|
||
<label>{{ __('利用可能時間制限フラグ') }}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<div class="input-group d-flex align-items-center">
|
||
@foreach([1=>'制限あり',0=>'制限なし(24時間)'] as $v => $label)
|
||
<div class="form-check form-check-inline">
|
||
<input class="form-check-input"
|
||
type="radio"
|
||
name="park_available_time_flag"
|
||
id="park_available_time_flag_{{ $v }}"
|
||
value="{{ $v }}"
|
||
@checked((string)old('park_available_time_flag', $record->park_available_time_flag ?? '') === (string)$v)>
|
||
<label class="form-check-label" for="park_available_time_flag_{{ $v }}">{{ $label }}</label>
|
||
</div>
|
||
@endforeach
|
||
</div>
|
||
</div>
|
||
|
||
{{-- ▼ 利用可能時間(開始) --}}
|
||
<div class="form-group col-3">
|
||
<label>{{ __('利用可能時間(開始)') }}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<div class="input-group">
|
||
<input type="time"
|
||
name="park_available_time_from"
|
||
class="form-control form-control-lg"
|
||
value="{{ old('park_available_time_from', isset($record->park_available_time_from) ? substr($record->park_available_time_from, 0, 5) : '') }}">
|
||
</div>
|
||
</div>
|
||
|
||
{{-- ▼ 利用可能時間(終了) --}}
|
||
<div class="form-group col-3">
|
||
<label>{{ __('利用可能時間(終了)') }}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<div class="input-group">
|
||
<input type="time"
|
||
name="park_available_time_to"
|
||
class="form-control form-control-lg"
|
||
value="{{ old('park_available_time_to', isset($record->park_available_time_to) ? substr($record->park_available_time_to, 0, 5) : '') }}">
|
||
</div>
|
||
</div>
|
||
|
||
{{-- ▼ 常駐管理人フラグ --}}
|
||
<div class="form-group col-3">
|
||
<label>{{ __('常駐管理人フラグ') }}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<div class="input-group d-flex align-items-center">
|
||
@foreach([1=>'常駐',0=>'非常駐'] as $v => $label)
|
||
<div class="form-check form-check-inline">
|
||
<input class="form-check-input"
|
||
type="radio"
|
||
name="park_manager_flag"
|
||
id="park_manager_flag_{{ $v }}"
|
||
value="{{ $v }}"
|
||
@checked((string)old('park_manager_flag', $record->park_manager_flag ?? '') === (string)$v)>
|
||
<label class="form-check-label" for="park_manager_flag_{{ $v }}">{{ $label }}</label>
|
||
</div>
|
||
@endforeach
|
||
</div>
|
||
</div>
|
||
|
||
{{-- ▼ 常駐時間(開始) --}}
|
||
<div class="form-group col-3">
|
||
<label>{{ __('常駐時間(開始)') }}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<div class="input-group">
|
||
<input type="time"
|
||
name="park_manager_resident_from"
|
||
class="form-control form-control-lg"
|
||
value="{{ old('park_manager_resident_from', isset($record->park_manager_resident_from) ? substr($record->park_manager_resident_from, 0, 5) : '') }}">
|
||
</div>
|
||
</div>
|
||
|
||
{{-- ▼ 常駐時間(終了) --}}
|
||
<div class="form-group col-3">
|
||
<label>{{ __('常駐時間(終了)') }}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<div class="input-group">
|
||
<input type="time"
|
||
name="park_manager_resident_to"
|
||
class="form-control form-control-lg"
|
||
value="{{ old('park_manager_resident_to', isset($record->park_manager_resident_to) ? substr($record->park_manager_resident_to, 0, 5) : '') }}">
|
||
</div>
|
||
</div>
|
||
|
||
{{-- ▼ 屋根フラグ --}}
|
||
<div class="form-group col-3">
|
||
<label>{{ __('屋根フラグ') }}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<div class="input-group d-flex align-items-center">
|
||
@foreach([1=>'屋根あり',0=>'屋根なし'] as $v => $label)
|
||
<div class="form-check form-check-inline">
|
||
<input class="form-check-input"
|
||
type="radio"
|
||
name="park_roof_flag"
|
||
id="park_roof_flag_{{ $v }}"
|
||
value="{{ $v }}"
|
||
@checked((string)old('park_roof_flag', $record->park_roof_flag ?? '') === (string)$v)>
|
||
<label class="form-check-label" for="park_roof_flag_{{ $v }}">{{ $label }}</label>
|
||
</div>
|
||
@endforeach
|
||
</div>
|
||
</div>
|
||
|
||
{{-- ▼ シール発行機フラグ --}}
|
||
<div class="form-group col-3">
|
||
<label>{{ __('シール発行機フラグ') }}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<div class="input-group d-flex align-items-center">
|
||
@foreach([1=>'シール発行機あり',0=>'シール発行機なし'] as $v => $label)
|
||
<div class="form-check form-check-inline">
|
||
<input class="form-check-input"
|
||
type="radio"
|
||
name="park_issuing_machine_flag"
|
||
id="park_issuing_machine_flag_{{ $v }}"
|
||
value="{{ $v }}"
|
||
@checked((string)old('park_issuing_machine_flag', $record->park_issuing_machine_flag ?? '') === (string)$v)>
|
||
<label class="form-check-label" for="park_issuing_machine_flag_{{ $v }}">{{ $label }}</label>
|
||
</div>
|
||
@endforeach
|
||
</div>
|
||
</div>
|
||
|
||
{{-- ▼ 駐輪場利用方法 --}}
|
||
<div class="form-group col-3">
|
||
<label>{{ __('駐輪場利用方法') }}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<div class="input-group">
|
||
<textarea class="form-control form-control-lg"
|
||
placeholder="{{ __('駐輪場利用方法') }}"
|
||
rows="2"
|
||
name="park_using_method">{{ old('park_using_method', $record->park_using_method ?? '') }}</textarea>
|
||
</div>
|
||
</div>
|
||
|
||
{{-- ▼ 定期更新期間 --}}
|
||
<div class="form-group col-3">
|
||
<label>{{ __('定期更新期間') }}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<div class="input-group">
|
||
<input type="text"
|
||
name="park_contract_renewal_term"
|
||
class="form-control form-control-lg"
|
||
placeholder="{{ __('定期更新期間') }}"
|
||
value="{{ old('park_contract_renewal_term', $record->park_contract_renewal_term ?? '') }}">
|
||
</div>
|
||
</div>
|
||
|
||
{{-- ▼ 空き待ち予約 --}}
|
||
<div class="form-group col-3">
|
||
<label>{{ __('空き待ち予約') }}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<div class="input-group">
|
||
<input type="text"
|
||
name="park_reservation"
|
||
class="form-control form-control-lg"
|
||
placeholder="{{ __('空き待ち予約') }}"
|
||
value="{{ old('park_reservation', $record->park_reservation ?? '') }}">
|
||
</div>
|
||
</div>
|
||
|
||
{{-- ▼ 特記事項 --}}
|
||
<div class="form-group col-3">
|
||
<label>{{ __('特記事項') }}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<div class="input-group">
|
||
<textarea class="form-control form-control-lg"
|
||
placeholder="{{ __('特記事項') }}"
|
||
rows="2"
|
||
name="park_reference">{{ old('park_reference', $record->park_reference ?? '') }}</textarea>
|
||
</div>
|
||
</div>
|
||
|
||
{{-- ▼ 学生証確認種別(0=確認しない,1=年1回,2=毎更新時) --}}
|
||
<div class="form-group col-3">
|
||
<label>{{ __('学生証確認種別') }}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<div class="input-group d-flex align-items-center">
|
||
@foreach([0=>'確認しない',1=>'年1回',2=>'毎更新時'] as $v => $label)
|
||
<div class="form-check form-check-inline">
|
||
<input class="form-check-input"
|
||
type="radio"
|
||
name="student_id_confirm_type"
|
||
id="student_id_confirm_type_{{ $v }}"
|
||
value="{{ $v }}"
|
||
@checked((string)old('student_id_confirm_type', $record->student_id_confirm_type ?? '') === (string)$v)>
|
||
<label class="form-check-label" for="student_id_confirm_type_{{ $v }}">{{ $label }}</label>
|
||
</div>
|
||
@endforeach
|
||
</div>
|
||
</div>
|
||
|
||
{{-- ▼ 減免案内表示フラグ --}}
|
||
<div class="form-group col-3">
|
||
<label>{{ __('減免案内表示フラグ') }}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<div class="input-group d-flex align-items-center">
|
||
@foreach([0=>'表示しない',1=>'表示する'] as $v => $label)
|
||
<div class="form-check form-check-inline">
|
||
<input class="form-check-input"
|
||
type="radio"
|
||
name="reduction_guide_display_flag"
|
||
id="reduction_guide_display_flag_{{ $v }}"
|
||
value="{{ $v }}"
|
||
@checked((string)old('reduction_guide_display_flag', $record->reduction_guide_display_flag ?? '') === (string)$v)>
|
||
<label class="form-check-label" for="reduction_guide_display_flag_{{ $v }}">{{ $label }}</label>
|
||
</div>
|
||
@endforeach
|
||
</div>
|
||
</div>
|
||
|
||
{{-- ▼ 減免対象年齢 --}}
|
||
<div class="form-group col-3">
|
||
<label>{{ __('減免対象年齢') }}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<div class="input-group">
|
||
<input type="number"
|
||
name="reduction_age"
|
||
class="form-control form-control-lg"
|
||
placeholder="{{ __('減免対象年齢') }}"
|
||
min="0"
|
||
value="{{ old('reduction_age', $record->reduction_age ?? '') }}">
|
||
</div>
|
||
</div>
|
||
|
||
{{-- ▼ 減免案内表示開始月数 --}}
|
||
<div class="form-group col-3">
|
||
<label>{{ __('減免案内表示開始月数') }}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<div class="input-group">
|
||
<input type="number"
|
||
name="reduction_guide_display_start_month"
|
||
class="form-control form-control-lg"
|
||
placeholder="{{ __('減免案内表示開始月数') }}"
|
||
min="0"
|
||
value="{{ old('reduction_guide_display_start_month', $record->reduction_guide_display_start_month ?? '') }}">
|
||
</div>
|
||
</div>
|
||
|
||
{{-- ▼ 年跨ぎ許容フラグ --}}
|
||
<div class="form-group col-3">
|
||
<label>{{ __('年跨ぎ') }}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<div class="input-group d-flex align-items-center">
|
||
@foreach([0=>'なし',1=>'あり'] as $v => $label)
|
||
<div class="form-check form-check-inline">
|
||
<input class="form-check-input"
|
||
type="radio"
|
||
name="overyear_flag"
|
||
id="overyear_flag_{{ $v }}"
|
||
value="{{ $v }}"
|
||
@checked((string)old('overyear_flag', $record->overyear_flag ?? 0) === (string)$v)>
|
||
<label class="form-check-label" for="overyear_flag_{{ $v }}">{{ $label }}</label>
|
||
</div>
|
||
@endforeach
|
||
</div>
|
||
</div>
|
||
|
||
{{-- ▼ 駐輪場画像1 --}}
|
||
<div class="form-group col-3">
|
||
<label>{{ __('駐輪場画像1') }}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<input type="file" name="parking_image1">
|
||
|
||
@if(!empty($record?->parking_image1_url))
|
||
<div class="mt-2">
|
||
<img src="{{ $record->parking_image1_url }}"
|
||
class="img-thumbnail"
|
||
style="max-width:180px;">
|
||
</div>
|
||
@endif
|
||
</div>
|
||
|
||
|
||
{{-- ▼ 駐輪場画像2 --}}
|
||
<div class="form-group col-3">
|
||
<label>{{ __('駐輪場画像2') }}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<input type="file" name="parking_image2">
|
||
|
||
@if(!empty($record?->parking_image2_url))
|
||
<div class="mt-2">
|
||
<img src="{{ $record->parking_image2_url }}"
|
||
class="img-thumbnail"
|
||
style="max-width:180px;">
|
||
</div>
|
||
@endif
|
||
</div>
|
||
|
||
</div>
|
||
|
||
{{-- ▼ 下部ボタン --}}
|
||
<div class="row mt-4">
|
||
<div class="form-group col-md-10 d-flex align-items-center gap-2 justify-content-start">
|
||
|
||
{{-- 登録/更新ボタン --}}
|
||
@if(!empty($isEdit))
|
||
<button type="button" id="register_edit" class="btn btn-lg btn-success mr-2">
|
||
{{ __('登録') }}
|
||
</button>
|
||
@else
|
||
<button type="button" id="register" class="btn btn-lg btn-success mr-2 register">
|
||
{{ __('登録') }}
|
||
</button>
|
||
@endif
|
||
|
||
{{-- 削除ボタン(編集時のみ表示) --}}
|
||
@if(!empty($isEdit))
|
||
<button type="button" id="delete_edit" class="btn btn-lg btn-danger js-inline-delete mr-2">
|
||
{{ __('削除') }}
|
||
</button>
|
||
@endif
|
||
|
||
{{-- 戻るボタン(一覧状態保持) --}}
|
||
<button type="button"
|
||
id="btn_back"
|
||
class="btn btn-lg btn-secondary mr-2"
|
||
data-back-url="{{ request('back') }}">
|
||
{{ __('戻る') }}
|
||
</button>
|
||
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
|
||
{{-- ▼ 駐車場名(フリガナ)から駐車場名(カタカナ)自動入力スクリプト --}}
|
||
<script>
|
||
document.addEventListener('DOMContentLoaded', () => {
|
||
const rubyInput = document.querySelector('input[name="park_ruby"]');
|
||
const syllabaryInput = document.querySelector('input[name="park_syllabary"]');
|
||
|
||
if (!rubyInput || !syllabaryInput) return;
|
||
|
||
rubyInput.addEventListener('input', () => {
|
||
const value = rubyInput.value.trim();
|
||
|
||
if (!value) {
|
||
syllabaryInput.value = '';
|
||
return;
|
||
}
|
||
|
||
syllabaryInput.value = value.charAt(0);
|
||
});
|
||
});
|
||
</script>
|