add poker planing for students

This commit is contained in:
2025-11-15 11:11:04 +03:00
parent a78b63ea2d
commit cf635f81dd
14 changed files with 2799 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
@extends('layouts.app')
@section('content')
<div class="space-y-6">
<div class="flex justify-between items-center">
<h1 class="text-2xl font-bold text-gray-800">Сессии оценки</h1>
<a href="{{ route('admin.session.create') }}"
class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg text-sm font-medium">
+ Новая сессия
</a>
</div>
@if ($sessions->isEmpty())
<div class="text-center py-10 text-gray-500">Нет созданных сессий</div>
@else
<div class="space-y-4">
@foreach($sessions as $s)
<div class="bg-white p-5 rounded-xl shadow-sm border border-gray-100">
<div class="flex justify-between items-start">
<div>
<h3 class="font-medium text-gray-800">Сессия #{{ $s->id }}</h3>
<p class="text-sm text-gray-600">
Оценки: 1{{ $s->max_score }} | Участников: {{ $s->votes_count }} / {{ $s->max_voters }}
</p>
</div>
<a href="/admin/sessions/{{ $s->id }}"
class="text-blue-600 hover:underline text-sm font-medium">Просмотр</a>
</div>
<div class="mt-3 p-3 bg-gray-50 rounded text-sm font-mono break-all">
<strong>Ссылка:</strong> <a href="/s/{{ $s->token }}" target="_blank"
class="text-blue-600 hover:underline">{{ url('/s/' . $s->token) }}</a>
</div>
</div>
@endforeach
</div>
@endif
</div>
@endsection