Changed views

This commit is contained in:
m.zargarov 2024-05-03 12:42:37 +04:00
parent 3ed3475e6a
commit b63b97e54d
8 changed files with 28 additions and 24 deletions

View File

@ -2,6 +2,7 @@
namespace App\Providers;
use Illuminate\Pagination\Paginator;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
@ -19,6 +20,6 @@ class AppServiceProvider extends ServiceProvider
*/
public function boot(): void
{
//
Paginator::useBootstrap();
}
}

View File

@ -11,7 +11,7 @@ class TeacherService implements ServiceInterface
{
public function getAll(): LengthAwarePaginator
{
return Teacher::filter()->paginate(10)->withQueryString();
return Teacher::filter()->paginate(2)->withQueryString();
}
public function create(array $data): Teacher

View File

@ -1,7 +1,7 @@
@extends('layouts.app')
@section('content')
<div class="container col-md-7">
<div class="container col-md-6">
<div class="row justify-content-center">
<div class="card">
<div class="card-header">{{__('Новый класс')}}</div>

View File

@ -1,20 +1,21 @@
@extends('layouts.app')
@section('content')
<div class="container col-md-5">
<div class="container col-md-6">
<div class="row justify-content-center">
<div class="card mt-4">
<div class="card-header" {{ __('Класс') }}}>
<div class="card-body">
<div class="mb-3">
<h4><strong>Название:</strong> {{ $grade->name }}</h4>
</div>
<div>
<a href="{{ route('grades.edit', $grade) }}" class="btn btn-warning">Редактировать</a>
</div>
<div class="card">
<div class="card-header">{{ ('Класс') }}</div>
<div class="card-body">
<div class="mb-3">
<h5><strong>Название: </strong>{{ $grade->name }}</h5>
</div>
</div>
<div class="card-footer">
<a href="{{ route('grades.edit', $grade) }}" class="btn btn-primary">Редактировать</a>
</div>
</div>
</div>
</div>
@endsection

View File

@ -1,9 +1,10 @@
<div class="container">
<footer class="footer py-3 my-4">
<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('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>
<p class="text-center text-muted">&copy; 2024 EduDiary</p>
</footer>

View File

@ -29,7 +29,7 @@
<div class="card-body">
<table class="table table-striped">
<thead>
<th>Ученик</th>
<th>ФИО</th>
<th>&nbsp;</th>
</thead>
<tbody>

View File

@ -1,17 +1,18 @@
@extends('layouts.app')
@section('content')
<div class="row justify-content-center">
<div class="card mt-4 col-4">
<div class="card-header" {{ __('Предмет') }}>
<div class="container col-md-6">
<div class="row justify-content-center">
<div class="card">
<div class="card-header">{{ ('Предмет') }}</div>
<div class="card-body">
<div class="mb-3">
<h4><strong>Название:</strong> {{ $subject->name }}</h4>
</div>
<div>
<a href="{{ route('subjects.edit', $subject) }}" class="btn btn-warning">Редактировать</a>
<h5><strong>Название: </strong>{{ $subject->name }}</h5>
</div>
</div>
<div class="card-footer">
<a href="{{ route('subjects.edit', $subject) }}" class="btn btn-primary">Редактировать</a>
</div>
</div>
</div>
</div>

View File

@ -29,7 +29,7 @@
<div class="card-body">
<table class="table table-striped">
<thead>
<th>Ученик</th>
<th>ФИО</th>
<th>&nbsp;</th>
</thead>
<tbody>