@include('tenant.banner')

Opiekunowie Ucznia

Uczeń: {{ $student->first_name }} {{ $student->last_name }} (Klasa: {{ $student->schoolClass->name ?? '-' }})

@if($guardians->isNotEmpty()) @endif
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif

Dodaj Upoważnienie

@csrf

Lista Upoważnionych Osób

@if($guardians->isEmpty())

Brak upoważnionych opiekunów.

@else
@foreach($student->guardians as $guardian)

{{ $guardian->first_name }} {{ $guardian->last_name }}

PESEL: *** {{ $guardian->pesel_tail }}
📞 {{ $guardian->phone_prefix }} {{ $guardian->phone_number ?? 'Brak' }}
@if($guardian->description)
Uwagi: {{ $guardian->description }}
@endif
@if($guardian->students->count() > 1) @php $linkedNames = $guardian->students->map(function($s) { return "• " . $s->first_name . " " . $s->last_name . " (" . ($s->schoolClass->name ?? "-") . ")"; })->implode('
'); @endphp @endif
@php $hasPhone = !empty($guardian->phone_number); $tenant = app('currentTenant'); $hasSmsApi = !empty($tenant->settings['sms_api_key']) || env('GLOBAL_SMS_API_KEY'); @endphp @if($hasPhone && $hasSmsApi) @endif
@endforeach
@endif
@if(session('duplicate_guardian'))

Znaleziono w bazie!

{!! session('duplicate_guardian')['message'] !!}

@csrf
@endif