@extends('layouts.app') @section('title','Reports') @section('content')<div class="space-y-6"><h1 class="text-2xl font-black">Reports & Analytics</h1><div class="grid gap-4 sm:grid-cols-2 xl:grid-cols-5">@foreach($stats as $k=>$v)<div class="card p-5"><div class="text-xs uppercase text-slate-500">{{ str_replace('_',' ',$k) }}</div><div class="mt-2 text-2xl font-black">{{ $v }}</div></div>@endforeach</div><div class="card p-5"><h2 class="font-bold">Exports</h2><div class="mt-4 flex flex-wrap gap-2">@foreach(['employees','interns','attendance','expenses'] as $x)<a class="btn btn-soft" href="{{ route('reports.csv',$x) }}">{{ ucfirst($x) }} CSV</a>@endforeach<a class="btn btn-primary" href="{{ route('reports.pdf','summary') }}">Summary PDF</a></div></div></div>@endsection