155 lines
5.7 KiB
PHP
155 lines
5.7 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('city_id', $record->city_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">
|
||
<input type="text"
|
||
name="city_name"
|
||
class="form-control form-control-lg"
|
||
placeholder="{{ __('市区名') }}"
|
||
value="{{ old('city_name', $record->city_name ?? ($city_name ?? '')) }}">
|
||
</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="print_layout"
|
||
class="form-control form-control-lg"
|
||
placeholder="{{ __('印字レイアウトファイル') }}"
|
||
value="{{ old('print_layout', $record->print_layout ?? ($print_layout ?? '')) }}">
|
||
</div>
|
||
</div>
|
||
|
||
<!-- {{-- ▼ 顧客M入力不要フィールドID --}}
|
||
<div class="form-group col-3">
|
||
<label class="form-label required">{{ __('顧客M入力不要フィールドID') }}</label>
|
||
</div>
|
||
<div class="form-group col-9">
|
||
<div class="input-group">
|
||
<input type="text"
|
||
name="city_user"
|
||
class="form-control form-control-lg"
|
||
placeholder="{{ __('顧客M入力不要フィールドID') }}"
|
||
value="{{ old('city_user', $record->city_user ?? ($city_user ?? '')) }}">
|
||
</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"
|
||
rows="5"
|
||
placeholder="{{ __('備考') }}"
|
||
name="city_remarks">{{ old('city_remarks', $record->city_remarks ?? ($city_remarks ?? '')) }}</textarea>
|
||
</div>
|
||
</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>
|