@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