import{X as a,j as e}from"./app-CMiQTz2u.js";import{T as p,a as h,b as i,c as t,d as j,e as s}from"./table-BxLJR_ra.js";import{u as g,T as u,a as b}from"./useDebouncedSearch-C7wnneNg.js";import{B as f}from"./button-BKa6JAU1.js";import{E as T}from"./eye-BSdmeMxl.js";import"./utils-CytzSlOG.js";import"./createLucideIcon-BqIOMQrm.js";import"./chevron-left-DkAK3VAU.js";import"./chevron-right-Bvd5gVTp.js";import"./input-eEomd6CF.js";import"./select-PVqw3c10.js";import"./index-BS-hOUYW.js";import"./Combination-C39nFUTw.js";import"./index-0hj2xNmJ.js";import"./index-70j02KqN.js";import"./index-DqpqBwaF.js";import"./index-BExA_BBv.js";function q(){a().props.auth.user;const{filters:o}=a().props,c=a().props.datatable,{data:n,links:d}=a().props.datatable,{params:l,setParams:m,setTimeDebounce:x}=g(route(`${route().current()}`),o);return e.jsxs("div",{className:"space-y-4",children:[e.jsx(u,{placeholder:"Cari tugas",search:l.search,params:l,setParams:m,setTimeDebounce:x}),e.jsx("div",{className:"",children:e.jsxs(p,{children:[e.jsx(h,{children:e.jsxs(i,{children:[e.jsx(t,{children:"Nama Tugas"}),e.jsx(t,{children:"Tanggal Akhir"}),e.jsx(t,{children:"Status"}),e.jsx(t,{children:"Action"})]})}),e.jsx(j,{children:n.length>0?n.map(r=>e.jsxs(i,{className:"bg-white",children:[e.jsx(s,{children:r.materi_tugas.name}),e.jsx(s,{children:r.materi_tugas.due_date}),e.jsx(s,{children:r.status=="pending"?e.jsx("span",{className:"inline-flex items-center rounded bg-orange-50 px-2 py-0.5 text-xs font-medium text-orange-500 ring-1 ring-inset ring-orange-600/20",children:"Pending"}):r.status=="reject"?e.jsx("span",{className:"inline-flex items-center rounded bg-red-50 px-2 py-0.5 text-xs font-medium text-red-700 ring-1 ring-inset ring-red-600/10",children:"Reject"}):e.jsx("span",{className:"inline-flex items-center rounded bg-green-50 px-2 py-0.5 text-xs font-medium text-green-700 ring-1 ring-inset ring-green-600/20",children:"Approve"})}),e.jsx(s,{children:e.jsx("div",{className:"flex items-center gap-2",children:e.jsx("a",{href:r.file?route("storage.file",{path:r.file}):r.link,target:"_blank",children:e.jsx(f,{variant:"outline",children:e.jsx(T,{className:"w-4 h-4 text-blue-500"})})})})})]},r.id)):e.jsx(i,{children:e.jsx(s,{colSpan:6,className:"h-24 text-center bg-white",children:"No results found."})})})]})}),e.jsx(b,{links:d,meta:c})]})}export{q as default};
Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]