@extends('layouts.app') @section('title', 'Ученики') @push('styles') @endpush @section('content')
| @endif | ФИО | Метки | Класс | Язык | Предметы | Баланс | Родитель | @if ($canManageStudents)@endif |
|---|---|---|---|---|---|---|---|---|
| @endif |
{{ trim(($unit->last_name ?? '').' '.($unit->first_name ?? '')) ?: 'Без имени' }}
@if (!empty($unit->phone))
{{ $unit->phone }} @endif |
@foreach ($studentTagsMap[$unit->id] ?? [] as $tag)
{{ $tag->name }}
@endforeach
@if ($canManageTags)
@endif
|
{{ $unit->class_name ?? '—' }} | {{ $unit->language_name ?? '—' }} | {{ $unit->disciplines ?? '—' }} |
@php
$unitBalance = (float) ($unit->total_paid ?? 0) - (float) ($unit->total_charged ?? 0);
$balanceClass = $unitBalance >= 0 ? 'text-success' : 'text-danger';
@endphp
{{ number_format($unitBalance, 0, ',', ' ') }} ₸
@if ($invoiceRequest = $openInvoiceRequests[$unit->id] ?? null)
@if ($invoiceRequest->status === 'approved') Родитель подтвердил @else Ждём ответа родителя @endif @endif |
@php
$agentName = trim(($unit->agent_last_name ?? '').' '.($unit->agent_first_name ?? ''));
$agentPhone = $unit->agent_phone_number ?? '';
@endphp
{{ $agentName ?: '—' }}
@if ($agentPhone)
{{ $agentPhone }} @endif |
@if ($canManageStudents)
|
@endif