PageSourceSearch

https://nefes21.com/assets/CompanyAdminDashboard-DhWNSwGr.js

js nefes21.com collected 2026-09-27 08:33:51 UTC 6,646 bytes, 6 lines download raw bytes

1import{c as h,p as x,j as e,h as r,U as d,aq as o,T as p,a6 as b,aw as i,H as m}from"./index-fv-DcFj2.js";/**
2 * @license lucide-react v0.453.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const g=h("ChartNoAxesColumn",[["line",{x1:"18",x2:"18",y1:"20",y2:"10",key:"1xfpm4"}],["line",{x1:"12",x2:"12",y1:"20",y2:"4",key:"be30l9"}],["line",{x1:"6",x2:"6",y1:"20",y2:"14",key:"1r4le6"}]]);function u(){const s=localStorage.getItem("corporate_token"),{data:a,isLoading:l,error:j}=x({queryKey:["/api/corporate/dashboard/company/stats"],queryFn:async()=>{const t=await fetch("/api/corporate/dashboard/company/stats",{headers:{Authorization:`Bearer ${s}`,"Content-Type":"application/json"}});if(!t.ok)throw new Error("İstatistikler alınamadı");return t.json()},enabled:!!s}),{data:n}=x({queryKey:["/api/corporate/dashboard/company/activities"],queryFn:async()=>{const t=await fetch("/api/corporate/dashboard/company/activities",{headers:{Authorization:`Bearer ${s}`,"Content-Type":"application/json"}});if(!t.ok)throw new Error("Aktiviteler alınamadı");return t.json()},enabled:!!s});return e.jsx("div",{className:"min-h-screen bg-gray-50 dark:bg-slate-900",children:e.jsxs("div",{className:"container mx-auto px-4 py-8",children:[e.jsxs("div",{className:"mb-8",children:[e.jsx("h1",{className:"text-4xl font-bold text-gray-900 dark:text-white mb-2",children:"Şirket Yönetim Paneli"}),e.jsx("p",{className:"text-gray-600 dark:text-gray-400",children:"Şirketinizin eğitim ve gelişim aktivitelerini yönetin"})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8",children:[e.jsx(r,{className:"p-6 bg-white dark:bg-slate-800 border-blue-200 dark:border-blue-800",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400 mb-1",children:"Toplam Çalışan"}),e.jsx("p",{className:"text-3xl font-bold text-blue-600 dark:text-blue-400",children:l?"...":(a==null?void 0:a.totalEmployees)||0})]}),e.jsx(d,{className:"w-12 h-12 text-blue-600 dark:text-blue-400 opacity-80"})]})}),e.jsx(r,{className:"p-6 bg-white dark:bg-slate-800 border-green-200 dark:border-green-800",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400 mb-1",children:"Aktif Eğitimler"}),e.jsx("p",{className:"text-3xl font-bold text-green-600 dark:text-green-400",children:l?"...":(a==null?void 0:a.activeTrainings)||0})]}),e.jsx(o,{className:"w-12 h-12 text-green-600 dark:text-green-400 opacity-80"})]})}),e.jsx(r,{className:"p-6 bg-white dark:bg-slate-800 border-purple-200 dark:border-purple-800",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400 mb-1",children:"Tamamlanma Oranı"}),e.jsxs("p",{className:"text-3xl font-bold text-purple-600 dark:text-purple-400",children:[l?"...":(a==null?void 0:a.completionRate)||0,"%"]})]}),e.jsx(p,{className:"w-12 h-12 text-purple-600 dark:text-purple-400 opacity-80"})]})}),e.jsx(r,{className:"p-6 bg-white dark:bg-slate-800 border-amber-200 dark:border-amber-800",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400 mb-1",children:"Verilen Sertifika"}),e.jsx("p",{className:"text-3xl font-bold text-amber-600 dark:text-amber-400",children:l?"...":(a==null?void 0:a.certificatesIssued)||0})]}),e.jsx(b,{className:"w-12 h-12 text-amber-600 dark:text-amber-400 opacity-80"})]})})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6 mb-8",children:[e.jsx(i,{href:"/company-admin/departmanlar",children:e.jsxs(r,{className:"p-6 bg-gradient-to-br from-blue-500 to-blue-600 text-white cursor-pointer hover:shadow-lg transition-all",children:[e.jsx(d,{className:"w-8 h-8 mb-3"}),e.jsx("h3",{className:"text-xl font-bold mb-2",children:"Departman Yönetimi"}),e.jsx("p",{className:"text-blue-100",children:"Departmanları ve çalışanları organize edin"})]})}),e.jsx(i,{href:"/company-admin/egitimler",children:e.jsxs(r,{className:"p-6 bg-gradient-to-br from-green-500 to-green-600 text-white cursor-pointer hover:shadow-lg transition-all",children:[e.jsx(o,{className:"w-8 h-8 mb-3"}),e.jsx("h3",{className:"text-xl font-bold mb-2",children:"Eğitim Programları"}),e.jsx("p",{className:"text-green-100",children:"Eğitimleri planlayın ve takip edin"})]})}),e.jsx(i,{href:"/company-admin/anketler",children:e.jsxs(r,{className:"p-6 bg-gradient-to-br from-purple-500 to-purple-600 text-white cursor-pointer hover:shadow-lg transition-all",children:[e.jsx(m,{className:"w-8 h-8 mb-3"}),e.jsx("h3",{className:"text-xl font-bold mb-2",children:"Anket Yönetimi"}),e.jsx("p",{className:"text-purple-100",children:"Çalışan geri bildirimlerini toplayın"})]})}),e.jsx(i,{href:"/company-admin/analizler",children:e.jsxs(r,{className:"p-6 bg-gradient-to-br from-amber-500 to-amber-600 text-white cursor-pointer hover:shadow-lg transition-all",children:[e.jsx(g,{className:"w-8 h-8 mb-3"}),e.jsx("h3",{className:"text-xl font-bold mb-2",children:"Analizler & ROI"}),e.jsx("p",{className:"text-amber-100",children:"Detaylı raporlar ve yatırım getirisi"})]})})]}),e.jsxs(r,{className:"p-6 bg-white dark:bg-slate-800",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 dark:text-white mb-6",children:"Son Aktiviteler"}),n&&n.length>0?e.jsx("div",{className:"space-y-4",children:n.slice(0,5).map((t,c)=>e.jsxs("div",{className:"flex items-center justify-between p-4 bg-gray-50 dark:bg-slate-700 rounded-lg","data-testid":`activity-${c}`,children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 bg-blue-100 dar
6k:bg-blue-900 rounded-full flex items-center justify-center",children:e.jsx(d,{className:"w-5 h-5 text-blue-600 dark:text-blue-400"})}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-gray-900 dark:text-white",children:t.title}),e.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:t.description})]})]}),e.jsx("span",{className:"text-sm text-gray-500 dark:text-gray-400",children:t.timestamp})]},c))}):e.jsxs("div",{className:"text-center py-12 text-gray-500 dark:text-gray-400",children:[e.jsx(m,{className:"w-16 h-16 mx-auto mb-4 opacity-50"}),e.jsx("p",{className:"text-lg",children:"Henüz aktivite bulunmuyor"})]})]})]})})}export{u as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.