Changed views
This commit is contained in:
parent
3ed3475e6a
commit
b63b97e54d
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
namespace App\Providers;
|
namespace App\Providers;
|
||||||
|
|
||||||
|
use Illuminate\Pagination\Paginator;
|
||||||
use Illuminate\Support\ServiceProvider;
|
use Illuminate\Support\ServiceProvider;
|
||||||
|
|
||||||
class AppServiceProvider extends ServiceProvider
|
class AppServiceProvider extends ServiceProvider
|
||||||
@ -19,6 +20,6 @@ class AppServiceProvider extends ServiceProvider
|
|||||||
*/
|
*/
|
||||||
public function boot(): void
|
public function boot(): void
|
||||||
{
|
{
|
||||||
//
|
Paginator::useBootstrap();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,7 @@ class TeacherService implements ServiceInterface
|
|||||||
{
|
{
|
||||||
public function getAll(): LengthAwarePaginator
|
public function getAll(): LengthAwarePaginator
|
||||||
{
|
{
|
||||||
return Teacher::filter()->paginate(10)->withQueryString();
|
return Teacher::filter()->paginate(2)->withQueryString();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function create(array $data): Teacher
|
public function create(array $data): Teacher
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
@extends('layouts.app')
|
@extends('layouts.app')
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<div class="container col-md-7">
|
<div class="container col-md-6">
|
||||||
<div class="row justify-content-center">
|
<div class="row justify-content-center">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="card-header">{{__('Новый класс')}}</div>
|
<div class="card-header">{{__('Новый класс')}}</div>
|
||||||
|
@ -1,20 +1,21 @@
|
|||||||
@extends('layouts.app')
|
@extends('layouts.app')
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<div class="container col-md-5">
|
<div class="container col-md-6">
|
||||||
<div class="row justify-content-center">
|
<div class="row justify-content-center">
|
||||||
<div class="card mt-4">
|
<div class="card">
|
||||||
<div class="card-header" {{ __('Класс') }}}>
|
<div class="card-header">{{ ('Класс') }}</div>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<h4><strong>Название:</strong> {{ $grade->name }}</h4>
|
<h5><strong>Название: </strong>{{ $grade->name }}</h5>
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<a href="{{ route('grades.edit', $grade) }}" class="btn btn-warning">Редактировать</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="card-footer">
|
||||||
|
<a href="{{ route('grades.edit', $grade) }}" class="btn btn-primary">Редактировать</a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
<div class="container">
|
<div class="container">
|
||||||
<footer class="footer py-3 my-4">
|
<footer class="footer py-3 my-4">
|
||||||
<ul class="nav justify-content-center pb-3 mb-3">
|
<ul class="nav justify-content-center pb-3 mb-3">
|
||||||
<li class="nav-item"><a href="{{ route('grades.index') }}" class="nav-link px-2 text-muted">Группы</a></li>
|
<li class="nav-item"><a href="{{ route('grades.index') }}" class="nav-link px-2 text-muted">Классы</a></li>
|
||||||
<li class="nav-item"><a href="{{ route('subjects.index') }}" class="nav-link px-2 text-muted">Предметы</a></li>
|
<li class="nav-item"><a href="{{ route('subjects.index') }}" class="nav-link px-2 text-muted">Предметы</a></li>
|
||||||
{{-- <li class="nav-item"><a href="{{ route('users.index') }}" class="nav-link px-2 text-muted">Студенты</a></li>--}}
|
<li class="nav-item"><a href="{{ route('students.index') }}" class="nav-link px-2 text-muted">Студенты</a></li>
|
||||||
|
<li class="nav-item"><a href="{{ route('teachers.index') }}" class="nav-link px-2 text-muted">Учителя</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
<p class="text-center text-muted">© 2024 EduDiary</p>
|
<p class="text-center text-muted">© 2024 EduDiary</p>
|
||||||
</footer>
|
</footer>
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<table class="table table-striped">
|
<table class="table table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
<th>Ученик</th>
|
<th>ФИО</th>
|
||||||
<th> </th>
|
<th> </th>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
@ -1,17 +1,18 @@
|
|||||||
@extends('layouts.app')
|
@extends('layouts.app')
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<div class="row justify-content-center">
|
<div class="container col-md-6">
|
||||||
<div class="card mt-4 col-4">
|
<div class="row justify-content-center">
|
||||||
<div class="card-header" {{ __('Предмет') }}>
|
<div class="card">
|
||||||
|
<div class="card-header">{{ ('Предмет') }}</div>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<h4><strong>Название:</strong> {{ $subject->name }}</h4>
|
<h5><strong>Название: </strong>{{ $subject->name }}</h5>
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<a href="{{ route('subjects.edit', $subject) }}" class="btn btn-warning">Редактировать</a>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="card-footer">
|
||||||
|
<a href="{{ route('subjects.edit', $subject) }}" class="btn btn-primary">Редактировать</a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<table class="table table-striped">
|
<table class="table table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
<th>Ученик</th>
|
<th>ФИО</th>
|
||||||
<th> </th>
|
<th> </th>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
Loading…
Reference in New Issue
Block a user