@extends('layouts.app') @section('title', 'Панель преподавателя') {{-- Ports app/Views/adviser/students/index.php (legacy) — see the Phase 44 plan. The "Добавить" (add student) modal posts to the shared /add_student.php endpoint. This used to be a confirmed dead/broken feature: the endpoint (StudentProfileController::store(), guarded by guardCanCreateStudent()) required an admin/manager role and a `password` field the modal didn't submit, so submitting as an adviser always failed with a "no permission" flash. Per the user's explicit request, advisers are now allowed through the guard and the modal has `password`/`iin` fields added to match the admin/manager form in students/index.blade.php. The "Формат обучения" (education_type) filter is also a confirmed no-op — never wired into the controller's query — preserved, not fixed. --}} @push('styles') @endpush @section('content')
| ФИО | Класс | Формат обучения | Язык | Предметы | Родитель | Баланс |
|---|---|---|---|---|---|---|
|
{{ ($unit['first_name'] ?? 'Без имени').' '.($unit['last_name'] ?? 'Без фамилии') }}
@if (! empty($unit['phone']))
{{ $unit['phone'] }} @endif |
{{ $unit['class_name'] ?? '-' }} | {{ $unit['learning_type'] ?? '-' }} | {{ $unit['language_name'] ?? '-' }} | {{ $unit['disciplines'] ?? '-' }} |
@php
$agentName = trim(($unit['agent_last_name'] ?? '').' '.($unit['agent_first_name'] ?? ''));
$agentPhone = $unit['agent_phone_number'] ?? '';
@endphp
{{ $agentName ?: '-' }}
@if (! empty($agentPhone))
{{ $agentPhone }} @endif |
{{ $unit['total_lessons'] ?? '-' }} |