2024-06-16 00:41:31 +04:00
|
|
|
|
@extends('layouts.application')
|
2024-04-16 13:27:51 +04:00
|
|
|
|
|
|
|
|
|
@section('content')
|
2024-05-03 12:42:37 +04:00
|
|
|
|
<div class="container col-md-6">
|
2024-04-16 13:27:51 +04:00
|
|
|
|
<div class="row justify-content-center">
|
2024-05-03 12:42:37 +04:00
|
|
|
|
<div class="card">
|
|
|
|
|
<div class="card-header">{{ ('Класс') }}</div>
|
|
|
|
|
<div class="card-body">
|
|
|
|
|
<div class="mb-3">
|
|
|
|
|
<h5><strong>Название: </strong>{{ $grade->name }}</h5>
|
2024-04-16 13:27:51 +04:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2024-05-03 12:42:37 +04:00
|
|
|
|
<div class="card-footer">
|
|
|
|
|
<a href="{{ route('grades.edit', $grade) }}" class="btn btn-primary">Редактировать</a>
|
|
|
|
|
</div>
|
2024-04-16 13:27:51 +04:00
|
|
|
|
</div>
|
2024-05-07 12:14:18 +04:00
|
|
|
|
<div class="card mt-4">
|
|
|
|
|
<div class="card-header">
|
|
|
|
|
{{__('Журнал предметов')}}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="card-body">
|
|
|
|
|
@if(count($subjects))
|
|
|
|
|
<table class="table table-striped">
|
|
|
|
|
<thead>
|
|
|
|
|
<th>Название</th>
|
|
|
|
|
<th> </th>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
@foreach ($subjects as $subject)
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="table-text">
|
|
|
|
|
<div>
|
|
|
|
|
{{ $subject->name }}
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<div>
|
|
|
|
|
<a href="{{ route('grades.subjects.edit', [$grade, $subject]) }}" class="btn btn-warning">Редактировать</a>
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<form action="{{ route('grades.subjects.destroy', [$grade, $subject]) }}" method="POST" style="display: inline-block;">
|
|
|
|
|
@csrf
|
|
|
|
|
@method('DELETE')
|
|
|
|
|
<button type="submit" class="btn btn-danger">Удалить</button>
|
|
|
|
|
</form>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
@endforeach
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
@else
|
|
|
|
|
<p>У класса отсутствуют предметы</p>
|
|
|
|
|
@endif
|
|
|
|
|
</div>
|
|
|
|
|
<div class="card-footer">
|
|
|
|
|
<a href="{{ route('grades.subjects.create', $grade) }}" class="btn btn-success">Добавить</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2024-04-16 13:27:51 +04:00
|
|
|
|
</div>
|
2024-05-03 12:42:37 +04:00
|
|
|
|
</div>
|
2024-04-16 13:27:51 +04:00
|
|
|
|
@endsection
|
|
|
|
|
|
2024-05-03 12:42:37 +04:00
|
|
|
|
|