@extends('admin.layouts.admin')
@section('title', 'Dashboard')
@section('page-title', 'Dashboard')
@section('content')
{{-- Stats Grid --}}
{{-- Total Students --}}
Toplam Ogrenci
{{ number_format($stats['total_students']) }}
{{-- Active Contracts --}}
Aktif Sozlesme
{{ number_format($stats['active_contracts']) }}
{{-- Occupancy Rate --}}
Doluluk Orani
%{{ $stats['occupancy_rate'] }}
{{-- Last 24h Logins --}}
Son 24s Giris
{{ number_format($stats['logins_24h']) }}
{{-- Second row --}}
{{-- Buildings --}}
Bina
{{ $stats['total_buildings'] }}
{{-- Rooms --}}
Oda
{{ $stats['total_rooms'] }}
{{-- Beds --}}
Yatak (Dolu / Toplam)
{{ $stats['occupied_beds'] }} / {{ $stats['total_beds'] }}
{{-- Open Tickets --}}
Acik Destek Talepleri
{{ $stats['open_tickets'] }}
{{-- Third row: Integrations + Recent Syncs --}}
{{-- Integrations summary --}}
Entegrasyonlar
{{ $stats['sms_providers'] }}
{{ $stats['pos_providers'] }}
{{ $stats['active_maintenance'] }}
{{-- Recent Syncs --}}
@if($recentSyncs->isEmpty())
Henuz senkronizasyon yapilmamis.
@else
@foreach($recentSyncs as $sync)
{{ strtoupper($sync->direction) }}
{{ $sync->status === 'success' ? 'Basarili' : 'Hata' }}
{{ $sync->created_at->diffForHumans() }}
@endforeach
@endif
@endsection