krgm.so-manager-dev.com/resources/views/admin/psection/edit.blade.php

70 lines
3.0 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.

@extends('layouts.app')
@section('title', '車種区分マスタ 編集')
@section('content')
<div class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-lg-6">
<h1 class="m-0 text-dark">車種区分マスタ 編集</h1>
</div>
<div class="col-lg-6">
<ol class="breadcrumb float-sm-right text-sm">
<li class="breadcrumb-item"><a href="{{ route('home') }}">ホーム</a></li>
<li class="breadcrumb-item"><a href="{{ route('psection') }}">車種区分マスタ</a></li>
<li class="breadcrumb-item active">編集</li>
</ol>
</div>
</div>
</div>
</div>
<section class="content">
<div class="container-fluid">
<div class="card">
<form method="POST" action="{{ route('psection_edit', ['id' => $psection->psection_id]) }}">
@csrf
<div class="card-body">
{{-- 車種区分ID読み取り専用 --}}
<div class="form-group row">
<label class="col-3 col-form-label">車種区分ID</label>
<div class="col-9">
<input type="text" class="form-control" value="{{ $psection->psection_id }}" readonly>
</div>
</div>
{{-- 車種区分名 --}}
<div class="form-group row">
<label class="col-3 col-form-label required">車種区分名</label>
<div class="col-9">
<input type="text" name="psection_subject"
class="form-control @error('psection_subject') is-invalid @enderror"
value="{{ old('psection_subject', $psection->psection_subject) }}">
@error('psection_subject')
<div class="invalid-feedback">{{ $message }}</div>
@enderror
</div>
</div>
</div>
{{-- 下部ボタン --}}
<div class="text-left mb-3 ml-3">
{{-- 登録ボタン --}}
<button type="submit" class="btn btn-lg btn-success">登録</button>
{{-- 削除ボタン(同じ行に並べる) --}}
<form method="POST" action="{{ route('psection_delete', ['id' => $psection->psection_id]) }}" class="d-inline">
@csrf
@method('DELETE')
<button type="submit" class="btn btn-lg btn-danger"
onclick="return confirm('この車種区分を削除しますか?');">削除</button>
</form>
</div>
</form>
</div>
</div>
</section>
@endsection