@extends('adminlte::page') @section('title', __('adminlte.dashboard')) @section('content_header')

{{ __('adminlte.dashboard') }}

@stop @section('content') {{-- Real, data-driven stat boxes --}}
{{-- Projects by status --}}
@forelse ($projectsByStatus as $status => $total) @php($pct = $stats['projects'] > 0 ? round($total / $stats['projects'] * 100) : 0)
{{ __('adminlte.status_'.$status) }} {{ $total }}
@empty

{{ __('adminlte.no_projects') }}

@endforelse
{{-- Recent activity --}}
@forelse ($recentActivity as $entry)
{{ $entry->event }}{{ $entry->description }} {{ \Illuminate\Support\Carbon::parse($entry->created_at)->diffForHumans() }}
{{ $entry->user_name ?? __('adminlte.system') }}
@empty
{{ __('adminlte.no_recent_activity') }}
@endforelse
@stop