39 lines
1.9 KiB
PHP
39 lines
1.9 KiB
PHP
@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
|