@extends('layouts.app') @section('title', 'Detail Guru') @section('content') @php $showPlotting = $plotting->count() > 0; $showWali = $guru->waliClasses->count() > 0; $showPrioritas = $prioritySubjects->count() > 0; $showTugas = $guru->teacherRoles->count() > 0; $showTahfidz = (bool) $isTahfidzTeacher; $rightVisible = $showWali || $showPrioritas || $showTugas || $showTahfidz; $needsSetup = ! ($showPlotting && $showWali && $showPrioritas && $showTugas && $showTahfidz); @endphp ← Kembali ke daftar guru
{{ strtoupper(mb_substr($guru->name, 0, 1)) }}

{{ $guru->name }}

{{ $guru->email }}@if ($guru->phone) · {{ $guru->phone }}@endif

@if ($guru->gender === 'L') Laki-laki @elseif ($guru->gender === 'P') Perempuan @endif @if ($guru->position) {{ $guru->position }} @endif @if ($guru->createdBy) Ditambahkan oleh {{ $guru->createdBy->name }} @endif
@if ($guru->waliClasses->count() > 0) Wali Kelas ({{ $guru->waliClasses->count() }}) @endif @if ($plotting->count() > 0) Guru Mapel ({{ $plotting->count() }}) @endif @if ($guru->isQuranTeacher()) Guru Al-Quran @endif @if ($needsSetup) @endif
@endsection @push('scripts') @endpush