2024-04-16 13:27:51 +04:00
|
|
|
@extends('layouts.app')
|
|
|
|
|
|
|
|
@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">
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-header">{{__('Новый класс')}}</div>
|
|
|
|
<div class="card-body">
|
|
|
|
<a href="{{ route('grades.create') }}" class="btn btn-success">Добавить</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="card mt-4">
|
|
|
|
<div class="card-header">{{__('Поиск класса')}}</div>
|
|
|
|
<div class="card-body">
|
|
|
|
<form action="{{ route('grades.index') }}" method="GET">
|
|
|
|
<div class="mb-3">
|
|
|
|
<label for="name" class="form-label">Название:</label>
|
|
|
|
<input type="text" id="name" name="name" class="form-control"
|
|
|
|
value="{{ request('name') ?? '' }}">
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<button type="submit" class="btn btn-primary">Фильтр</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@if (count($grades))
|
|
|
|
<div class="card mt-4">
|
|
|
|
<div class="card-header">{{__('Классы')}}</div>
|
|
|
|
<div class="card-body">
|
|
|
|
<table class="table table-striped">
|
|
|
|
<thead>
|
|
|
|
<th>Название</th>
|
|
|
|
<th> </th>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
@foreach ($grades as $grade)
|
|
|
|
<tr>
|
|
|
|
<td class="table-text">
|
|
|
|
<div>
|
|
|
|
<a href="{{ route('grades.show', $grade) }}"
|
|
|
|
class="btn btn-block col-8">{{ $grade->name }}</a>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<div>
|
|
|
|
<a href="{{ route('grades.edit', $grade) }}" class="btn btn-warning">Редактировать</a>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
{{-- <td>--}}
|
|
|
|
{{-- <div>--}}
|
|
|
|
{{-- <a href="{{ route('journals.index', $grade) }}" class="btn btn-primary">Журнал</a>--}}
|
|
|
|
{{-- </div>--}}
|
|
|
|
{{-- </td>--}}
|
|
|
|
<td>
|
|
|
|
<form action="{{ route('grades.destroy', $grade) }}" method="POST"
|
|
|
|
style="display: inline-block;">
|
|
|
|
@csrf
|
|
|
|
@method('DELETE')
|
|
|
|
<button type="submit" class="btn btn-danger">Удалить</button>
|
|
|
|
</form>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<div class="card-footer">{{ $grades->links() }}</div>
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endsection
|
|
|
|
|