import{h as i}from"./moment-a9aaa855.js";import{_ as c}from"./NoDataFound-bc81d7fa.js";import{_ as u}from"./Paginate-f61b79b2.js";import{s as d,c as o,a as r,b as t,t as a,F as p,r as m,i as h,g as b,o as l,e as f,u as _}from"./app-13978987.js";import{_ as y}from"./AdminLayout-bd13ff9d.js";import{_ as k}from"./PageHeader-8c638686.js";import"./dropdown-45d66330.js";const g={class:"container p-4 sm:p-6"},v={class:"space-y-6"},A={class:"flex justify-between"},j={class:"mb-0 pb-0"},w={class:"table-responsive whitespace-nowrap rounded-primary"},B={class:"table"},E={key:0},N=["href"],V=b({layout:y}),O=Object.assign(V,{__name:"Applications",props:["applications","job","buttons","segments"],setup(e){return d(),(s,$)=>(l(),o("main",g,[r(k,{title:"Job Applications",buttons:e.buttons},null,8,["buttons"]),t("div",v,[t("div",A,[t("h6",j,a(s.trans("Job"))+": "+a(e.job.title),1),t("h6",null,a(s.trans("Total Applications"))+": "+a(e.applications.total),1)]),t("div",w,[t("table",B,[t("thead",null,[t("tr",null,[t("th",null,a(s.trans("Name")),1),t("th",null,a(s.trans("Email")),1),t("th",null,a(s.trans("Phone")),1),t("th",null,a(s.trans("Address")),1),t("th",null,a(s.trans("Experience")),1),t("th",null,a(s.trans("Salary Expect")),1),t("th",null,a(s.trans("Resume")),1),t("th",null,a(s.trans("Submitted At")),1)])]),e.applications.total?(l(),o("tbody",E,[(l(!0),o(p,null,m(e.applications.data,n=>(l(),o("tr",{key:n.id},[t("td",null,a(n.name),1),t("td",null,a(n.email),1),t("td",null,a(n.phone),1),t("td",null,a(n.address),1),t("td",null,a(n.experience),1),t("td",null,a(n.expected_salary),1),t("td",null,[n.cv?(l(),o("a",{key:0,target:"_blank",class:"btn btn-primary btn-sm",href:n.cv},a(s.trans("View")),9,N)):f("",!0)]),t("td",null,a(_(i)(n.created_at).format("D-MMM-Y")),1)]))),128))])):(l(),h(c,{key:1,"for-table":"true"}))])]),r(u,{links:e.applications.links},null,8,["links"])])]))}});export{O as default};
