@extends('layouts.app') @section('title', 'Departman Detayları') @section('content')
{{ $department->name }}
Departman Adı

{{ $department->name }}

Durum
@if($department->is_active) Aktif @else Pasif @endif
@if($department->description)
Açıklama

{{ $department->description }}

@endif @if($department->manager_name)
Müdür Bilgileri
{{ $department->manager_name }}
@if($department->manager_email)

{{ $department->manager_email }}

@endif
@endif

{{ $department->employees->count() }}

Toplam Personel

@if($department->employees->count() > 0)
Departman Personelleri
@foreach($department->employees as $employee) @endforeach
Personel Kodu Ad Soyad Pozisyon İşe Giriş Tarihi Durum İşlemler
{{ $employee->employee_code }} {{ $employee->user ? $employee->user->name : 'Bilinmeyen Personel' }}
{{ $employee->user ? $employee->user->email : 'Email bilgisi yok' }}
{{ $employee->position }} {{ $employee->hire_date ? $employee->hire_date->format('d.m.Y') : '-' }} @if($employee->status === 'active') Aktif @elseif($employee->status === 'inactive') Pasif @else İzinli @endif
@else

Bu departmanda henüz personel bulunmuyor.

@endif
@endsection