@php $tenant = \App\Support\Facades\Tenancy::get(); $brandStyle = $tenant->brand_primary_color ? ":root { --color-brand-600: {$tenant->brand_primary_color}; } .dark { --color-brand-600: {$tenant->brand_primary_color}; }" : null; $statusColors = ['active' => 'green', 'inactive' => 'amber', 'graduated' => 'brand', 'transferred' => 'slate', 'expelled' => 'red']; @endphp
Back to list

Contact Details

Phone
{{ $guardian->phone }}
Email
{{ $guardian->email ?? '—' }}
Occupation
{{ $guardian->occupation ?? '—' }}
Address
{{ $guardian->address ?? '—' }}
user) x-data="{ revealed: false, password: null, loading: false, reveal() { if (this.revealed) { this.revealed = false; return; } if (this.password) { this.revealed = true; return; } this.loading = true; fetch('{{ route('tenant.admin.guardians.reveal-password', $guardian) }}', { headers: { 'Accept': 'application/json' } }) .then(r => r.json()) .then(data => { this.password = data.password; this.revealed = true; this.loading = false; }) .catch(() => { this.loading = false; }); } }" @endif>

Portal Login

@if($guardian->user && $guardian->user->is_active) Active @elseif($guardian->user) Deactivated @else No Login @endif
@if($guardian->user)
Email:
{{ $guardian->user->email }}
Password:
@csrf @method('PUT') @if($guardian->user->is_active) @else @endif
@else

This guardian doesn't have a portal login yet.

@endif

Children ({{ $guardian->students->count() }})

@forelse($guardian->students as $student)

{{ $student->fullName() }} @if($student->pivot->is_primary)Primary@endif

{{ $student->student_code }} · {{ $student->section?->schoolClass?->name ?? '—' }} @if($student->section?->name) ({{ $student->section->name }}) @endif · {{ $student->branch->name }} · Roll {{ $student->roll_number ?? '—' }} · {{ $student->academicSession->name }}

{{ ucfirst($student->status) }}
@empty

No children linked yet.

@endforelse
@csrf

@if($guardian->user) A new random password will be generated and shown once. The guardian's login email stays unless you change it here. @elseif($guardian->email) Defaults to the guardian's contact email. You can edit it if you prefer a different login address. @else No contact email on file — auto-generated as a unique institutional address. You can edit it if you prefer. @endif

@error('email')

{{ $message }}

@enderror