CourseWork/resources/views/grades/form.blade.php
2024-04-16 13:27:51 +04:00

20 lines
796 B
PHP

<div class="container col-md-5">
<div class="row justify-content-center">
<div class="card mt-4">
<div class="card-body">
<form action="{{ $route }}" method="POST">
@csrf
@method($method)
<div class="mb-3">
<label for="name" class="form-label">Название:</label>
<input type="text" id="name" name="name" class="form-control" value="{{ isset($grade) ? $grade->name : '' }}" required>
</div>
<div>
<button type="submit" class="btn btn-success">Подтвердить</button>
</div>
</form>
</div>
</div>
</div>
</div>