@extends('layouts.app') @section('title', 'Özet') @section('content') @if ($cronWarning) @endif @php $tiles = [ ['Aktif lisans', $stats['active_licenses'], route('licenses.index', ['status' => 'aktif']), 'ti-key', null], ['Bu ay bitecek', $stats['expiring_this_month'], route('licenses.index', ['expiring' => 30]), 'ti-calendar-due', $stats['expiring_this_month'] > 0 ? 'warning' : null], ['Son 30 günde süresi dolan', $stats['expired_30'], route('licenses.index', ['status' => 'suresi_doldu']), 'ti-calendar-x', null], ['Başarısız doğrulama (24 sa)', $stats['failed_checks_24h'], null, 'ti-shield-x', $stats['failed_checks_24h'] > 100 ? 'warning' : null], ['Bana açık görev', $stats['open_tasks'], route('tasks.index'), 'ti-checklist', null], ['Açık destek talebi', $stats['open_tickets'], route('tickets.index'), 'ti-lifebuoy', null], ['30 günde biten hizmet', $stats['services_ending_30'], null, 'ti-tools', null], ['Geciken ödeme', $stats['overdue_payments'], route('payments.index', ['status' => 'overdue']), 'ti-cash-off', $stats['overdue_payments'] > 0 ? 'danger' : null], ]; @endphp
@foreach ($tiles as [$label, $value, $href, $icon, $state])
@if ($href){{ number_format($value, 0, ',', '.') }}@else{{ number_format($value, 0, ',', '.') }}@endif
{{ $label }}
@endforeach
@if ($overdueByCurrency->isNotEmpty())
Geciken alacak: @foreach ($overdueByCurrency as $currency => $amount) {{ \App\Enums\Currency::from($currency)->format($amount) }} @endforeach
@endif

Bugün yapılacaklar

@forelse ($todayTasks as $task)
{{ $task->title }}
{{ $task->due_at->timezone(config('app.display_timezone'))->format('d.m.Y H:i') }} @if ($task->customer) · {{ $task->customer->title }} @endif
@csrf
@empty
Bugün için görev yok.
@endforelse

30 gün içinde bitecek lisanslar

@forelse ($expiringSoon as $license) @empty @endforelse
{{ $license->customer->title }} {{ $license->product->name }} {{ $license->expires_at->timezone(config('app.display_timezone'))->format('d.m.Y') }}
Yok.

Son aktivasyonlar

@forelse ($recentActivations as $activation) @empty @endforelse
{{ $activation->license->customer->title }} {{ $activation->device_name ?? $activation->domain ?? '—' }} {{ $activation->first_seen_at->timezone(config('app.display_timezone'))->format('d.m.Y H:i') }}
Henüz aktivasyon yok.
@if (auth()->user()->isAdmin())

Son kritik olaylar

@foreach ($autoSuspensions as $event)
Otomatik askı {{ $event->license->customer->title }}
{{ $event->note }}
@endforeach @forelse ($criticalEvents as $event)
{{ __('audit.'.$event->event) }} · {{ $event->user?->name ?? 'Sistem' }} {{ $event->created_at->timezone(config('app.display_timezone'))->format('d.m.Y H:i') }}
@empty @if ($autoSuspensions->isEmpty())
Kritik olay yok.
@endif @endforelse
@endif
@endsection