krgm.so-manager-dev.com/resources/views/admin/psection/_form.blade.php
kin.rinzen 2b8f80fe50
All checks were successful
Deploy main / deploy (push) Successful in 22s
「指摘対応」車種区分マスタ
2025-10-10 17:42:53 +09:00

77 lines
2.6 KiB
PHP
Raw 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::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>