77 lines
2.6 KiB
PHP
77 lines
2.6 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
|
||
|
||
@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">
|
||
{{-- ▼ 車種区分ID(編集時のみ表示) --}}
|
||
@if($isEdit && isset($record))
|
||
<div class="form-group row">
|
||
<div class="col-3">
|
||
<label>{{ __('車種区分ID') }}</label>
|
||
</div>
|
||
<div class="col-9">
|
||
<input type="text"
|
||
name="psection_id"
|
||
value="{{ $record->psection_id }}"
|
||
class="form-control form-control-lg"
|
||
readonly>
|
||
</div>
|
||
</div>
|
||
@endif
|
||
|
||
{{-- ▼ 車種区分名 --}}
|
||
<div class="form-group row">
|
||
<div class="col-3">
|
||
<label class="required">{{ __('車種区分名') }}</label>
|
||
</div>
|
||
<div class="col-9">
|
||
<input type="text"
|
||
name="psection_subject"
|
||
value="{{ old('psection_subject', $record->psection_subject ?? '') }}"
|
||
class="form-control form-control-lg"
|
||
placeholder="{{ __('validation.attributes.psection_subject') }}">
|
||
</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($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($isEdit)
|
||
<button type="button" id="delete_edit" class="btn btn-lg btn-danger">
|
||
{{ __('削除') }}
|
||
</button>
|
||
@endif
|
||
|
||
</div>
|
||
</div>
|
||
|
||
|
||
</div> |