2 lines
49 KiB
JavaScript
2 lines
49 KiB
JavaScript
(function(t){function e(e){for(var i,o,r=e[0],l=e[1],c=e[2],d=0,p=[];d<r.length;d++)o=r[d],Object.prototype.hasOwnProperty.call(n,o)&&n[o]&&p.push(n[o][0]),n[o]=0;for(i in l)Object.prototype.hasOwnProperty.call(l,i)&&(t[i]=l[i]);u&&u(e);while(p.length)p.shift()();return s.push.apply(s,c||[]),a()}function a(){for(var t,e=0;e<s.length;e++){for(var a=s[e],i=!0,r=1;r<a.length;r++){var l=a[r];0!==n[l]&&(i=!1)}i&&(s.splice(e--,1),t=o(o.s=a[0]))}return t}var i={},n={app:0},s=[];function o(e){if(i[e])return i[e].exports;var a=i[e]={i:e,l:!1,exports:{}};return t[e].call(a.exports,a,a.exports,o),a.l=!0,a.exports}o.m=t,o.c=i,o.d=function(t,e,a){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},o.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(o.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)o.d(a,i,function(e){return t[e]}.bind(null,i));return a},o.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="/";var r=window["webpackJsonp"]=window["webpackJsonp"]||[],l=r.push.bind(r);r.push=e,r=r.slice();for(var c=0;c<r.length;c++)e(r[c]);var u=l;s.push([0,"chunk-vendors"]),a()})({0:function(t,e,a){t.exports=a("56d7")},"034f":function(t,e,a){"use strict";var i=a("85ec"),n=a.n(i);n.a},"146c":function(t,e,a){"use strict";var i=a("dd50"),n=a.n(i);n.a},"2edf":function(t,e,a){t.exports=a.p+"img/HeaderLogo.19873bf2.png"},"56d7":function(t,e,a){"use strict";a.r(e);a("e260"),a("e6cf"),a("cca6"),a("a79d");var i=a("2b0e"),n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("router-view")],1)},s=[],o=a("bc3a"),r=a.n(o),l=r.a.create({baseURL:"http://localhost:8081/api/index.php/training"}),c=l,u={mounted:function(){var t=this;c.get("/getAllCountry").then((function(e){var a=e.data;t.$store.commit("setCountries",a)})),c.get("/getAllCity").then((function(e){var a=e.data;t.$store.commit("setCities",a)}))}},d=u,p=(a("034f"),a("2877")),m=Object(p["a"])(d,n,s,!1,null,null,null),v=m.exports,f=a("8c4f"),_=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"page"},[i("header",[i("div",{staticClass:"logo"},[i("router-link",{attrs:{to:"/"}},[i("img",{attrs:{src:a("2edf")}})])],1),i("div",{staticClass:"sublogo"},[t._v(" Careers ")]),i("nav",{staticClass:"nav"},[i("div",{staticClass:"nav-item"},[i("router-link",{staticClass:"nav-link",attrs:{to:"/jobs"}},[t._v("Jobs")])],1),i("div",{staticClass:"nav-item"},[i("router-link",{staticClass:"nav-link",attrs:{to:"/bookmarks"}},[t._v("Bookmarks")])],1),i("div",{staticClass:"nav-item"},[i("router-link",{staticClass:"nav-link",attrs:{to:"/about"}},[t._v("About Us")])],1)]),i("div",{staticClass:"selectors"},[i("select",{staticClass:"bluefire-selector",attrs:{id:"selHeaderCountry"},domProps:{value:t.countryId},on:{change:t.changeCountry}},[i("option",{attrs:{value:"0"}},[t._v("All Countries")]),t._l(t.$store.state.countries,(function(e){return i("option",{key:e.CountryID,domProps:{value:e.CountryID}},[t._v(t._s(e.CountryName))])}))],2),i("select",{staticClass:"bluefire-selector",attrs:{id:"selHeaderCity"},domProps:{value:t.cityId},on:{change:t.changeCity}},[i("option",{attrs:{value:"0"}},[t._v("All Cities")]),t._l(t.$store.state.cities,(function(e){return i("option",{key:e.CityID,domProps:{value:e.CityID}},[t._v(t._s(e.CityName))])}))],2)]),t._m(0),i("div",{staticClass:"account nav"},[i("div",{staticClass:"nav-item"},[i("router-link",{staticClass:"nav-link",attrs:{to:"/login"}},[t._v("Sign In")])],1)])]),i("div",[i("router-view")],1),t._m(1)])},b=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"search"},[i("input",{staticClass:"header-search",attrs:{type:"text",id:"txtSearch",placeholder:"Search for position"}}),i("a",{staticClass:"button-search",attrs:{href:"#"}},[i("img",{attrs:{src:a("9c4d"),alt:"Search"}})])])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("footer",[i("div",{staticClass:"main-footer"},[i("div",{staticClass:"logo"},[i("img",{attrs:{src:a("2edf")}})]),i("div",{staticClass:"sublogo"},[t._v(" Careers ")]),i("div",{staticClass:"contact"},[i("p",[t._v("Contact Us at +62888123123")]),i("p",[t._v("Leave a Message")])])]),i("div",{staticClass:"copyright"},[t._v(" 2020. All Rights Reserved. ")])])}],C=a("2f62"),h={computed:Object(C["b"])(["countryId","cityId"]),methods:{changeCountry:function(t){this.$store.commit("setCountryId",t.target.value)},changeCity:function(t){this.$store.commit("setCityId",t.target.value)}}},y=h,g=Object(p["a"])(y,_,b,!1,null,null,null),w=g.exports,A=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"page"},[i("header",[i("div",{staticClass:"logo"},[i("router-link",{attrs:{to:"/"}},[i("img",{attrs:{src:a("2edf")}})])],1),i("div",{staticClass:"sublogo"},[t._v(" Careers ")]),i("nav",{staticClass:"nav"},[i("div",{staticClass:"nav-item"},[i("router-link",{staticClass:"nav-link",attrs:{to:"/admin/jobs"}},[t._v("Jobs")])],1),i("div",{staticClass:"nav-item"},[i("router-link",{staticClass:"nav-link",attrs:{to:"/admin/applicants"}},[t._v("See Applicants")])],1)]),i("div",{staticClass:"selectors"}),i("div",{staticClass:"account nav"},[i("div",{staticClass:"nav-item"},[i("router-link",{staticClass:"nav-link",attrs:{to:"/logout"}},[t._v("Sign Out")])],1)])]),i("div",[i("router-view")],1),t._m(0)])},V=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("footer",[i("div",{staticClass:"main-footer"},[i("div",{staticClass:"logo"},[i("img",{attrs:{src:a("2edf")}})]),i("div",{staticClass:"sublogo"},[t._v(" Careers ")]),i("div",{staticClass:"contact"},[i("p",[t._v("Contact Us at +62888123123")]),i("p",[t._v("Leave a Message")])])]),i("div",{staticClass:"copyright"},[t._v(" 2020. All Rights Reserved. ")])])}],j={mounted:function(){0==this.$store.state.adminApiKey&&this.$router.push("/")}},X=j,Z=Object(p["a"])(X,A,V,!1,null,null,null),x=Z.exports,D=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("main",{staticClass:"container"},[t._m(0),a("div",{staticClass:"main-content"},[t._m(1),a("div",{staticClass:"section-content"},[a("JobListing")],1)])])},k=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"index-banner"},[i("h1",[t._v("Start your career now.")]),i("img",{staticClass:"index-image",attrs:{src:a("98a8")}}),i("p",{staticClass:"subheading"},[t._v("Take a look at our popular positions")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"section-heading"},[a("h1",[t._v("Ranked Job List")])])}],P=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"job-listing"},[i("div",{staticClass:"categories"},[i("div",{staticClass:"category"},[i("label",[t._v("Countries")]),i("select",{staticClass:"bluefire-selector",attrs:{id:"selHeaderCountry"},domProps:{value:t.countryId},on:{change:t.changeCountry}},[i("option",{attrs:{value:"0"}},[t._v("All Countries")]),t._l(t.$store.state.countries,(function(e){return i("option",{key:e.CountryID,domProps:{value:e.CountryID}},[t._v(t._s(e.CountryName))])}))],2)]),i("div",{staticClass:"category"},[i("label",[t._v("Cities")]),i("select",{staticClass:"bluefire-selector",attrs:{id:"selHeaderCity"},domProps:{value:t.cityId},on:{change:t.changeCity}},[i("option",{attrs:{value:"0"}},[t._v("All Cities")]),t._l(t.$store.state.cities,(function(e){return i("option",{key:e.CityID,domProps:{value:e.CityID}},[t._v(t._s(e.CityName))])}))],2)])]),i("div",{staticClass:"listing"},t._l(t.jobs,(function(e,n){return i("div",{key:e.JobID,staticClass:"job-item"},[i("span",{staticClass:"job-no"},[t._v(t._s(n+1))]),i("h2",{staticClass:"job-title"},[i("router-link",{attrs:{to:"/job/"+e.JobID}},[t._v(t._s(e.JobName))])],1),i("div",{staticClass:"job-location"},[i("div",{staticClass:"country"},[i("h2",[t._v("Country")]),i("p",[t._v(t._s(e.CountryName))])]),i("div",{staticClass:"city"},[i("h2",[t._v("City")]),i("p",[t._v(t._s(e.CityName))])]),!1!==t.admin?i("div",{staticClass:"status"},[i("h2",[t._v("Status")]),i("p",[t._v(t._s(1==e.IsOpen?"Open":"Closed"))])]):t._e()]),!1===t.admin?i("a",{staticClass:"button plain bookmark",on:{click:function(a){return t.bookmarkJob(e)}}},[i("img",{attrs:{src:a("fedd")}})]):t._e(),!1!==t.admin?i("div",{staticClass:"row"},[i("a",{staticClass:"button plain",on:{click:function(a){return t.editJob(e)}}},[i("span",{staticClass:"material-icons"},[t._v("edit")])]),i("a",{staticClass:"button plain"},[i("span",{staticClass:"material-icons",on:{click:function(a){return t.deleteJob(e)}}},[t._v("delete")])])]):t._e()])})),0)])},N=[],I=(a("a4d3"),a("4de4"),a("4160"),a("e439"),a("dbb4"),a("b64b"),a("159b"),a("ade3"));function J(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,i)}return a}function E(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?J(Object(a),!0).forEach((function(e){Object(I["a"])(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):J(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}var $={props:{paginate:{default:!1},admin:{default:!1},bookmark:{default:!1}},data:function(){return{jobs_orig:[]}},computed:E({},Object(C["b"])(["countryId","cityId"]),{jobs:function(){var t=this,e=this.jobs_orig;return 0!=this.countryId&&(e=e.filter((function(e){return e.CountryID==t.countryId}))),0!=this.cityId&&(e=e.filter((function(e){return e.CityID==t.cityId}))),e}}),methods:{changeCountry:function(t){this.$store.commit("setCountryId",t.target.value)},changeCity:function(t){this.$store.commit("setCityId",t.target.value)},editJob:function(t){this.$router.push({name:"admin-job-edit",params:{id:t.JobID}})},deleteJob:function(t){var e=this;if(0!=t.ApplicantCount){var a=new FormData;a.append("id",t.JobID),c.post("/deleteJob",a,{headers:{"Content-Type":"multipart/form-data"}}).then((function(){e.jobs_orig=e.jobs.filter((function(e){return e.JobID!=t.JobID}))}))}},bookmarkJob:function(t){var e=this;if(!1===this.bookmark){var a=new FormData;a.append("id",t.JobID),a.append("userId",this.$store.state.apiKey),c.post("/insertBookmark",a,{headers:{"Content-Type":"multipart/form-data"}})}else{var i=new FormData;i.append("id",t.BookmarkID),c.post("/deleteBookmark",i,{headers:{"Content-Type":"multipart/form-data"}}).then((function(){e.jobs_orig=e.jobs_orig.filter((function(e){return e.JobID!=t.JobID}))})).catch((function(t){return console.log(t)}))}}},mounted:function(){var t=this,e=null;if(!1!==this.bookmark){var a=new FormData;a.append("id",this.$store.state.apiKey),e=c.post("/getBookmark",a,{headers:{"Content-Type":"multipart/form-data"}})}else e=c.get("/getListJob");null!=e&&e.then((function(e){t.jobs_orig=e.data}))}},O=$,L=(a("5890"),Object(p["a"])(O,P,N,!1,null,null,null)),U=L.exports,R={name:"index",components:{JobListing:U}},S=R,F=Object(p["a"])(S,D,k,!1,null,null,null),T=F.exports,B=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"login-container"},[a("div",{staticClass:"container inner"},[a("div",{staticClass:"login-box box-container"},[a("router-link",{staticClass:"admin-login",attrs:{to:"/admin"}},[t._v("Login as Admin")]),a("form",{staticClass:"login-form"},[a("div",{staticClass:"form-input"},[a("label",{attrs:{for:"Username"}},[t._v("Username")]),a("input",{directives:[{name:"model",rawName:"v-model",value:t.username,expression:"username"}],attrs:{type:"text",name:"username",id:"Username"},domProps:{value:t.username},on:{input:function(e){e.target.composing||(t.username=e.target.value)}}})]),a("div",{staticClass:"form-input"},[a("label",{attrs:{for:"Password"}},[t._v("Password")]),a("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],attrs:{type:"password",name:"password",id:"Password"},domProps:{value:t.password},on:{input:function(e){e.target.composing||(t.password=e.target.value)}}})]),a("div",{staticClass:"form-input"},[a("button",{staticClass:"button w-100 large",on:{click:t.login}},[t._v("Sign In")])])]),a("p",{staticClass:"text-center text-small"},[t._v("Don't have an account yet?")]),a("p",{staticClass:"text-center register-link"},[a("router-link",{attrs:{to:"/register"}},[t._v("Register")])],1)],1),t._m(0)])])},z=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"login-banner"},[a("p",{staticClass:"large"},[t._v("Sign In")]),a("p",[t._v("or")]),a("p",{staticClass:"large"},[t._v("Register")])])}],M=a("53ca"),W={data:function(){return{username:"",password:"",notice:""}},mounted:function(){0!=this.$store.state.apiKey&&this.$router.push("/")},methods:{login:function(t){var e=this;t.preventDefault();var a=new FormData;a.append("Name",this.username),a.append("Password",this.password),c.post("/loginUser",a,{headers:{"Content-Type":"application/json"}}).then((function(t){var a=t.data;"object"==Object(M["a"])(a)&&(e.$store.commit("login",a[0]),e.$router.push({name:"index"}))}))}}},K=W,Y=Object(p["a"])(K,B,z,!1,null,null,null),q=Y.exports,H=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"login-container"},[a("div",{staticClass:"container inner flex-center"},[a("div",{staticClass:"login-box box-container"},[a("form",{staticClass:"login-form",attrs:{method:"POST"}},[a("div",{staticClass:"form-input"},[a("label",{attrs:{for:"Username"}},[t._v("Username")]),a("input",{directives:[{name:"model",rawName:"v-model",value:t.username,expression:"username"}],attrs:{type:"text",name:"username",id:"Username"},domProps:{value:t.username},on:{input:function(e){e.target.composing||(t.username=e.target.value)}}})]),a("div",{staticClass:"form-input"},[a("label",{attrs:{for:"Password"}},[t._v("Password")]),a("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],attrs:{type:"password",name:"password",id:"Password"},domProps:{value:t.password},on:{input:function(e){e.target.composing||(t.password=e.target.value)}}})]),a("div",{staticClass:"form-input"},[a("button",{staticClass:"button w-100 large",on:{click:t.login}},[t._v("Login as Admin")])])])])])])},G=[],Q={data:function(){return{username:"",password:""}},methods:{login:function(t){var e=this;t.preventDefault();var a=new FormData;a.append("Name",this.username),a.append("Password",this.password),c.post("/loginAdmin",a,{headers:{"Content-Type":"application/json"}}).then((function(t){var a=t.data;"object"==Object(M["a"])(a)&&(e.$store.commit("adminLogin",a[0].AdminID),e.$router.push({name:"admin-index"}))}))}}},tt=Q,et=Object(p["a"])(tt,H,G,!1,null,null,null),at=et.exports,it=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"login-container"},[a("div",{staticClass:"container inner flex-center"},[a("div",{staticClass:"box-container"},[a("form",{staticClass:"register-form",attrs:{method:"POST"}},[a("div",{staticClass:"form-input"},[a("label",{attrs:{for:"Name"}},[t._v("Name")]),a("input",{directives:[{name:"model",rawName:"v-model",value:t.name,expression:"name"}],attrs:{type:"text",name:"name",id:"Name"},domProps:{value:t.name},on:{input:function(e){e.target.composing||(t.name=e.target.value)}}})]),a("div",{staticClass:"form-input"},[a("label",{attrs:{for:"email"}},[t._v("Email")]),a("input",{directives:[{name:"model",rawName:"v-model",value:t.email,expression:"email"}],attrs:{type:"text",name:"email",id:"Email"},domProps:{value:t.email},on:{input:function(e){e.target.composing||(t.email=e.target.value)}}})]),a("div",{staticClass:"form-input"},[a("label",{attrs:{for:"Password"}},[t._v("Password")]),a("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],attrs:{type:"password",name:"password",id:"Password"},domProps:{value:t.password},on:{input:function(e){e.target.composing||(t.password=e.target.value)}}})]),a("div",{staticClass:"form-input"},[a("label",{attrs:{for:"ConfirmPassword"}},[t._v("Confirm Password")]),a("input",{directives:[{name:"model",rawName:"v-model",value:t.confirm_password,expression:"confirm_password"}],attrs:{type:"password",name:"confirm_password",id:"ConfirmPassword"},domProps:{value:t.confirm_password},on:{input:function(e){e.target.composing||(t.confirm_password=e.target.value)}}})]),a("div",{staticClass:"form-input"},[a("label",[t._v("Date of Birth")]),a("div",{staticClass:"row"},[a("select",{directives:[{name:"model",rawName:"v-model",value:t.day,expression:"day"}],staticClass:"w-33 bluefire-selector",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.day=e.target.multiple?a:a[0]}}},[a("option",{attrs:{value:"0"}},[t._v("Day")]),t._l(31,(function(e){return a("option",{key:e},[t._v(t._s(e))])}))],2),a("select",{directives:[{name:"model",rawName:"v-model",value:t.month,expression:"month"}],staticClass:"w-33 bluefire-selector",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.month=e.target.multiple?a:a[0]}}},[a("option",{attrs:{value:"0"}},[t._v("Month")]),t._l(12,(function(e){return a("option",{key:e},[t._v(t._s(e))])}))],2),a("select",{directives:[{name:"model",rawName:"v-model",value:t.year,expression:"year"}],staticClass:"w-33 bluefire-selector",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.year=e.target.multiple?a:a[0]}}},[a("option",{attrs:{value:"0"}},[t._v("Year")]),t._l(95,(function(e,i){return a("option",{key:e},[t._v(t._s(2020-i))])}))],2)])]),a("div",{staticClass:"form-input"},[a("label",[t._v("Gender")]),a("div",{staticClass:"row"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.gender,expression:"gender"}],attrs:{type:"radio",name:"gender",id:"Male",value:"Male"},domProps:{checked:t._q(t.gender,"Male")},on:{change:function(e){t.gender="Male"}}}),t._v(" Male "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.gender,expression:"gender"}],attrs:{type:"radio",name:"gender",id:"Female",value:"Female"},domProps:{checked:t._q(t.gender,"Female")},on:{change:function(e){t.gender="Female"}}}),t._v(" Female ")])]),a("div",{staticClass:"form-input"},[a("label",{attrs:{for:"Address"}},[t._v("Address")]),a("textarea",{directives:[{name:"model",rawName:"v-model",value:t.address,expression:"address"}],staticClass:"noresize",attrs:{id:"Address"},domProps:{value:t.address},on:{input:function(e){e.target.composing||(t.address=e.target.value)}}})]),a("div",{staticClass:"form-input"},[a("label",{attrs:{for:"PhoneNumber"}},[t._v("Phone Number")]),a("input",{directives:[{name:"model",rawName:"v-model",value:t.phone_number,expression:"phone_number"}],attrs:{type:"text",name:"phone_number",id:"PhoneNumber"},domProps:{value:t.phone_number},on:{input:function(e){e.target.composing||(t.phone_number=e.target.value)}}})]),a("div",{staticClass:"form-input flex-center"},[a("button",{staticClass:"button w-50 medium",on:{click:t.submitRegister}},[t._v("Register")])])])])])])},nt=[],st=(a("b0c0"),{data:function(){return{name:"",email:"",password:"",confirm_password:"",day:0,month:0,year:0,gender:"",address:"",phone_number:""}},mounted:function(){0!=this.$store.state.apiKey&&this.$router.push("/")},methods:{submitRegister:function(t){var e=this;t.preventDefault();var a=new FormData;a.append("password",this.password),a.append("name",this.name),a.append("DOB",this.year+"-"+this.month+"-"+this.day),a.append("gender",this.gender),a.append("address",this.address),a.append("phone",this.phone_number),a.append("email",this.email),c.post("/insertUser",a,{headers:{"Content-Type":"multipart/form-data"}}).then((function(){e.$router.push({name:"login"})}))}}}),ot=st,rt=Object(p["a"])(ot,it,nt,!1,null,null,null),lt=rt.exports,ct=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},ut=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("main",{staticClass:"about-background"},[a("div",{staticClass:"about-container"},[a("h1",[t._v("ABOUT US")]),a("p",{staticClass:"about-bottom-space"},[t._v("Welcome to BlueFire, your number one source for recruitment info. We're dedicated to giving you the very best of information, with a focus on giving the best experience.")]),a("p",{staticClass:"about-bottom-space"},[t._v("Founded in 2020 by IT Division, Bluefire has come a long way from its beginnings in Binus University. When IT Division first started out, their passion for excellence drove him to start making this website, and gave him the impetus to turn hard work and inspiration into to a recruitment website. We now serve potential recruit, and are thrilled to be a part of the wing of the recruitment industry.")]),a("p",{staticClass:"about-bottom-space"},[t._v("We hope you enjoy our service as much as we enjoy offering them to you. If you have any questions or comments, please don't hesitate to contact us.")]),a("p",[t._v("Sincerely,")]),a("p",{staticClass:"about-bottom-space"},[t._v("BlueFire.")])])])}],dt={name:"about-us"},pt=dt,mt=Object(p["a"])(pt,ct,ut,!1,null,null,null),vt=mt.exports,ft=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t._m(0),a("div",{staticClass:"container"},[a("div",{staticClass:"position-container"},[a("div",{staticClass:"position"},[a("div",{staticClass:"position-overview"},[a("div",{staticClass:"position-title"},[a("div",{staticClass:"title-bar"}),a("h1",[t._v(t._s(t.job.JobName))])]),a("div",{staticClass:"position-location"},[a("div",{staticClass:"region"},[t._v(" "+t._s(t.job.CityName)+", "+t._s(t.job.CountryName)+" ")]),a("div",{staticClass:"address"},[t._v(" "+t._s(t.job.AddressDetail)+" ")])]),a("div",{staticClass:"position-detail"},[a("div",{staticClass:"detail-item"},[a("h2",[t._v("Job Level")]),a("p",[t._v(t._s(t.job.JobLevel))])]),a("div",{staticClass:"detail-item"},[a("h2",[t._v("Application Deadline")]),a("p",[t._v(t._s(t.deadlineFormat))])]),a("div",{staticClass:"detail-item"},[a("h2",[t._v("Status")]),a("p",[t._v(t._s(t.openStatus))])])])]),a("div",{staticClass:"position-description"},[a("div",{staticClass:"description"},[t._v(" "+t._s(t.job.JobDescription)+" ")]),a("div",{staticClass:"flex-center"},[a("button",{staticClass:"button medium w-50",on:{click:t.applyJob}},[t._v("Apply")])])])])])])])},_t=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"page-banner"},[a("div",{staticClass:"page-banner-inner"})])}],bt={data:function(){return{job:{}}},computed:{openStatus:function(){if(this.job.Deadline){var t=new Date(this.job.Deadline),e=new Date;return t<e?"Closed":"Open"}return"Unknown"},deadlineFormat:function(){var t=new Date(this.job.Deadline);return t.toLocaleDateString("en-GB",{day:"numeric",month:"long",year:"numeric"})}},methods:{applyJob:function(t){t.preventDefault(),this.$router.push({name:"job-apply",params:{id:this.$route.params.id}})}},mounted:function(){var t=this,e=this.$route.params.id;c.get("/getJob?jobId="+e).then((function(e){var a=e.data;t.job=a[0]}))}},Ct=bt,ht=Object(p["a"])(Ct,ft,_t,!1,null,null,null),yt=ht.exports,gt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t._m(0),a("div",{staticClass:"container"},[a("div",{staticClass:"main-content list-container"},[a("div",{staticClass:"line-separator"}),a("JobListing")],1)])])},wt=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"page-banner"},[a("div",{staticClass:"page-banner-inner"},[a("div",{staticClass:"page-banner-title"},[a("h1",[t._v("Job List")])])])])}],At={components:{JobListing:U}},Vt=At,jt=Object(p["a"])(Vt,gt,wt,!1,null,null,null),Xt=jt.exports,Zt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t._m(0),a("div",{staticClass:"container"},[a("div",{staticClass:"main-content list-container"},[a("div",{staticClass:"line-separator"}),a("JobListing",{attrs:{bookmark:""}})],1)])])},xt=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"page-banner"},[a("div",{staticClass:"page-banner-inner"},[a("div",{staticClass:"page-banner-title"},[a("h1",[t._v("Bookmarked Jobs")])])])])}],Dt={components:{JobListing:U},mounted:function(){0==this.$store.state.apiKey&&this.$router.push("/login")}},kt=Dt,Pt=Object(p["a"])(kt,Zt,xt,!1,null,null,null),Nt=Pt.exports,It=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"container"},[a("div",{staticClass:"narrow-container"},[a("h1",{staticClass:"uppercase normal-heading apply-title"},[t._v("Submit your Application")]),a("form",{staticClass:"normal-form",attrs:{method:"POST"}},[a("div",{staticClass:"form-group apply"},[a("div",{staticClass:"form-input horizontal"},[a("label",{staticClass:"required",attrs:{for:"FullName"}},[t._v("Full Name")]),a("input",{directives:[{name:"model",rawName:"v-model",value:t.full_name,expression:"full_name"}],attrs:{type:"text",name:"full_name",id:"FullName",readonly:""},domProps:{value:t.full_name},on:{input:function(e){e.target.composing||(t.full_name=e.target.value)}}})]),a("div",{staticClass:"form-input horizontal"},[a("label",{staticClass:"required",attrs:{for:"Email"}},[t._v("Email")]),a("input",{directives:[{name:"model",rawName:"v-model",value:t.name,expression:"name"}],attrs:{type:"text",name:"name",id:"Name",readonly:""},domProps:{value:t.name},on:{input:function(e){e.target.composing||(t.name=e.target.value)}}})]),a("div",{staticClass:"form-input horizontal"},[a("label",{staticClass:"required",attrs:{for:"PhoneNumber"}},[t._v("Phone Number")]),a("input",{directives:[{name:"model",rawName:"v-model",value:t.phone_number,expression:"phone_number"}],attrs:{type:"text",name:"phone_number",id:"PhoneNumber",readonly:""},domProps:{value:t.phone_number},on:{input:function(e){e.target.composing||(t.phone_number=e.target.value)}}})])]),a("div",{staticClass:"form-space"}),a("div",{staticClass:"form-group apply"},[a("div",{staticClass:"form-input horizontal"},[a("label",{attrs:{for:"PreviousCompanyName"}},[t._v("Previous Company Name")]),a("input",{directives:[{name:"model",rawName:"v-model",value:t.previous_company_name,expression:"previous_company_name"}],attrs:{type:"text",name:"[revious_company_name",id:"PreviousCompanyName"},domProps:{value:t.previous_company_name},on:{input:function(e){e.target.composing||(t.previous_company_name=e.target.value)}}})]),a("div",{staticClass:"form-input horizontal"},[a("label",{attrs:{for:"PreviousCompanyPosition"}},[t._v("Previous Position")]),a("input",{directives:[{name:"model",rawName:"v-model",value:t.previous_company_position,expression:"previous_company_position"}],attrs:{type:"text",name:"previous_company_position",id:"PreviousCompanyPosition"},domProps:{value:t.previous_company_position},on:{input:function(e){e.target.composing||(t.previous_company_position=e.target.value)}}})]),a("div",{staticClass:"form-input horizontal"},[a("label",{staticClass:"required",attrs:{for:"UniversityName"}},[t._v("University Name")]),a("input",{directives:[{name:"model",rawName:"v-model",value:t.university_name,expression:"university_name"}],attrs:{type:"text",name:"university_name",id:"UniversityName"},domProps:{value:t.university_name},on:{input:function(e){e.target.composing||(t.university_name=e.target.value)}}})])]),a("div",{staticClass:"form-space"}),a("div",{staticClass:"form-group apply"},[a("div",{staticClass:"form-input horizontal"},[a("label",{staticClass:"required",attrs:{for:"CVURL"}},[t._v("CV URL")]),a("input",{attrs:{type:"file",name:"cv_file",id:"CVURL"},on:{change:t.uploadCV}})]),a("div",{staticClass:"form-input horizontal"},[a("label",{staticClass:"required",attrs:{for:"PortfolioURL"}},[t._v("Portfolio URL")]),a("input",{attrs:{type:"file",name:"portfolio_file",id:"PortfolioURL"},on:{change:t.uploadPortfolio}})])]),a("div",{staticClass:"form-notice"},[a("p",{staticClass:"required-notice"},[t._v("*Must be filled")]),a("p",{staticClass:"required-notice"},[t._v(t._s(t.notice))])]),a("div",{staticClass:"flex-center"},[a("button",{staticClass:"button large w-50 uppercase",attrs:{type:"submit"},on:{click:t.applyJob}},[t._v("Submit Application")])])])])])])},Jt=[],Et={data:function(){return{full_name:this.$store.state.user.UserName,name:this.$store.state.user.Email,phone_number:this.$store.state.user.Phone,previous_company_name:"",previous_company_position:"",university_name:"",cv_url:"",cv_file:[],portfolio_file:[],portfolio_url:"",notice:""}},mounted:function(){0==this.$store.state.apiKey&&this.$router.push({name:"login"})},methods:{uploadCV:function(t){var e=this,a=new FormData;a.append("file",t.target.files[0]),t.target.files,c.post("/uploadFile",a,{headers:{"Content-Type":"multipart/form-data"}}).then((function(t){var a=t.data;e.cv_url="/storage/"+a}))},uploadPortfolio:function(t){var e=this,a=new FormData;a.append("file",t.target.files[0]),t.target.files,c.post("/uploadFile",a,{headers:{"Content-Type":"multipart/form-data"}}).then((function(t){var a=t.data;e.portfolio_url="/storage/"+a}))},applyJob:function(t){var e=this;if(t.preventDefault(),this.notice="",""!=this.university_name)if(""!=this.cv_url)if(""!=this.portfolio_url){var a=new FormData;a.append("userId",this.$store.state.user.UserID),a.append("jobId",this.$route.params.id),a.append("email",this.name),a.append("company",this.previous_company_name),a.append("position",this.previous_company_position),a.append("university",this.university_name),a.append("cv",this.cv_url),a.append("portofolio",this.portfolio_url),c.post("/submitApplication",a,{headers:{"Content-Type":"multipart/form-data"}}).then((function(){e.$router.push({name:"job-detail",params:e.$route.params})}))}else this.notice="Please upload your Portfolio";else this.notice="Please upload your CV";else this.notice="University name must not be empty"}}},$t=Et,Ot=Object(p["a"])($t,It,Jt,!1,null,null,null),Lt=Ot.exports,Ut=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"container"},[a("div",{staticClass:"admin-container"},[t._m(0),a("div",{staticClass:"section-heading"},[a("h1",[t._v("Job List")]),a("div",{staticClass:"right w-25"},[a("button",{staticClass:"button medium w-100",on:{click:function(e){return t.$router.push("/admin/job/new")}}},[t._v("Add Jobs")])])]),a("div",{staticClass:"section-content"},[a("JobListing",{attrs:{admin:""}})],1),t._m(1),a("div",{staticClass:"section-content"},[a("ApplicantListing")],1)])])},Rt=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"admin-heading"},[a("h1",[t._v("Welcome back, Yuika Mitsumine")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"section-heading"},[a("h1",[t._v("Applicant List")])])}],St=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"job-listing"},[t._m(0),a("div",{staticClass:"listing"},t._l(t.jobs,(function(e,i){return a("div",{key:e.JobID,staticClass:"job-item"},[a("span",{staticClass:"job-no"},[t._v(t._s(i+1))]),a("h2",{staticClass:"job-title"},[t._v(t._s(e.JobName))]),a("div",{staticClass:"job-location"},[a("div",{staticClass:"applicants"},[a("h2",[t._v("Applicants")]),a("p",[t._v(t._s(e.ApplicantCount))])])]),a("div",{staticClass:"see-detail"},[a("router-link",{attrs:{to:"/admin/applicants/"+e.JobID}},[t._v("See Detail...")])],1)])})),0)])},Ft=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"categories"},[a("div",{staticClass:"category"},[a("label",[t._v("Countries")]),a("select",{staticClass:"bluefire-selector",attrs:{id:"selHeaderCountry"}},[a("option",{attrs:{value:""}},[t._v("All Countries")])])]),a("div",{staticClass:"category"},[a("label",[t._v("Cities")]),a("select",{staticClass:"bluefire-selector",attrs:{id:"selHeaderCity"}},[a("option",{attrs:{value:""}},[t._v("All Cities")])])])])}],Tt={computed:Object(C["b"])(["countryId","cityId"]),props:{paginate:{default:!1},admin:{default:!1}},data:function(){return{jobs:[]}},methods:{changeCountry:function(t){this.$store.commit("setCountryId",t.target.value)},changeCity:function(t){this.$store.commit("setCityId",t.target.value)}},mounted:function(){var t=this,e=null;e=c.get("/getListJob"),null!=e&&e.then((function(e){t.jobs=e.data}))}},Bt=Tt,zt=(a("146c"),Object(p["a"])(Bt,St,Ft,!1,null,null,null)),Mt=zt.exports,Wt={components:{JobListing:U,ApplicantListing:Mt},mounted:function(){}},Kt=Wt,Yt=Object(p["a"])(Kt,Ut,Rt,!1,null,null,null),qt=Yt.exports,Ht=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"container"},[a("div",{staticClass:"narrow-container"},[a("div",{staticClass:"normal-form rounded"},[a("form",[a("div",{staticClass:"title-bar"}),a("h1",{staticClass:"normal-heading uppercase"},[t._v("Add Job Details")]),a("div",{staticClass:"form-space"}),a("div",{staticClass:"form-input horizontal"},[a("label",{attrs:{for:"JobName"}},[t._v("Job Name")]),a("input",{directives:[{name:"model",rawName:"v-model",value:t.job_name,expression:"job_name"}],attrs:{type:"text",name:"job_name",id:"JobName"},domProps:{value:t.job_name},on:{input:function(e){e.target.composing||(t.job_name=e.target.value)}}})]),a("div",{staticClass:"form-input horizontal"},[a("label",{attrs:{for:"Country"}},[t._v("Country")]),a("select",{directives:[{name:"model",rawName:"v-model",value:t.country,expression:"country"}],staticClass:"w-100 bluefire-selector",attrs:{id:"Country",name:"country"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.country=e.target.multiple?a:a[0]}}},[a("option",{attrs:{value:"0"}},[t._v("Country")]),t._l(t.$store.state.countries,(function(e){return a("option",{key:e.CountryID,domProps:{value:e.CountryID}},[t._v(t._s(e.CountryName))])}))],2)]),a("div",{staticClass:"form-input horizontal"},[a("label",{attrs:{for:"City"}},[t._v("City")]),a("select",{directives:[{name:"model",rawName:"v-model",value:t.city,expression:"city"}],staticClass:"w-100 bluefire-selector",attrs:{id:"City",name:"city"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.city=e.target.multiple?a:a[0]}}},[a("option",{attrs:{value:"0"}},[t._v("City")]),t._l(t.$store.state.cities,(function(e){return a("option",{key:e.CityID,domProps:{value:e.CityID}},[t._v(t._s(e.CityName))])}))],2)]),a("div",{staticClass:"form-input horizontal"},[a("label",{attrs:{for:"JobLevel"}},[t._v("Job Level")]),a("input",{directives:[{name:"model",rawName:"v-model",value:t.job_level,expression:"job_level"}],attrs:{type:"text",name:"job_level",id:"JobLevel"},domProps:{value:t.job_level},on:{input:function(e){e.target.composing||(t.job_level=e.target.value)}}})]),a("div",{staticClass:"form-input horizontal"},[a("label",[t._v("Deadline")]),a("div",{staticClass:"row w-100"},[a("select",{directives:[{name:"model",rawName:"v-model",value:t.day,expression:"day"}],staticClass:"w-25 bluefire-selector",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.day=e.target.multiple?a:a[0]}}},[a("option",{attrs:{value:"0"}},[t._v("Day")]),t._l(31,(function(e){return a("option",{key:e},[t._v(t._s(e))])}))],2),a("select",{directives:[{name:"model",rawName:"v-model",value:t.month,expression:"month"}],staticClass:"w-50 bluefire-selector",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.month=e.target.multiple?a:a[0]}}},[a("option",{attrs:{value:"0"}},[t._v("Month")]),t._l(12,(function(e){return a("option",{key:e},[t._v(t._s(e))])}))],2),a("select",{directives:[{name:"model",rawName:"v-model",value:t.year,expression:"year"}],staticClass:"w-25 bluefire-selector",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.year=e.target.multiple?a:a[0]}}},[a("option",{attrs:{value:"0"}},[t._v("Year")]),t._l(95,(function(e,i){return a("option",{key:e},[t._v(t._s(2020-i))])}))],2)])]),a("div",{staticClass:"form-input horizontal"},[a("label",{attrs:{for:"JobDescription"}},[t._v("Job Description")]),a("textarea",{directives:[{name:"model",rawName:"v-model",value:t.job_description,expression:"job_description"}],staticClass:"noresize",attrs:{id:"JobDescription"},domProps:{value:t.job_description},on:{input:function(e){e.target.composing||(t.job_description=e.target.value)}}})]),a("div",{staticClass:"form-input flex-center"},[a("button",{staticClass:"button w-50 medium",on:{click:t.insertJob}},[t._v("Post Job")])])])])])])},Gt=[],Qt={data:function(){return{job_name:"",country:0,city:0,job_level:"",day:0,month:0,year:0,job_description:""}},mounted:function(){},methods:{insertJob:function(t){var e=this;t.preventDefault();var a=new FormData;a.append("jobName",this.job_name),a.append("cityId",this.city),a.append("deadline",this.year+"-"+this.month+"-"+this.day),a.append("jobLevel",this.job_level),a.append("jobDesc",this.job_description),c.post("/insertJob",a,{headers:{"Content-Type":"multipart/form-data"}}).then((function(){e.$router.push("/admin")}))}}},te=Qt,ee=Object(p["a"])(te,Ht,Gt,!1,null,null,null),ae=ee.exports,ie=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"container"},[a("div",{staticClass:"narrow-container"},[a("div",{staticClass:"normal-form rounded"},[a("form",[a("div",{staticClass:"title-bar"}),a("h1",{staticClass:"normal-heading uppercase"},[t._v("Edit Job Details")]),a("div",{staticClass:"form-space"}),a("div",{staticClass:"form-input horizontal"},[a("label",{attrs:{for:"JobName"}},[t._v("Job Name")]),a("input",{directives:[{name:"model",rawName:"v-model",value:t.job_name,expression:"job_name"}],attrs:{type:"text",name:"job_name",id:"JobName"},domProps:{value:t.job_name},on:{input:function(e){e.target.composing||(t.job_name=e.target.value)}}})]),a("div",{staticClass:"form-input horizontal"},[a("label",{attrs:{for:"Country"}},[t._v("Country")]),a("select",{directives:[{name:"model",rawName:"v-model",value:t.country,expression:"country"}],staticClass:"w-100 bluefire-selector",attrs:{id:"Country",name:"country"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.country=e.target.multiple?a:a[0]}}},[a("option",{attrs:{value:"0"}},[t._v("Country")]),t._l(t.$store.state.countries,(function(e){return a("option",{key:e.CountryID,domProps:{value:e.CountryID}},[t._v(t._s(e.CountryName))])}))],2)]),a("div",{staticClass:"form-input horizontal"},[a("label",{attrs:{for:"City"}},[t._v("City")]),a("select",{directives:[{name:"model",rawName:"v-model",value:t.city,expression:"city"}],staticClass:"w-100 bluefire-selector",attrs:{id:"City",name:"city"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.city=e.target.multiple?a:a[0]}}},[a("option",{attrs:{value:"0"}},[t._v("City")]),t._l(t.$store.state.cities,(function(e){return a("option",{key:e.CityID,domProps:{value:e.CityID}},[t._v(t._s(e.CityName))])}))],2)]),a("div",{staticClass:"form-input horizontal"},[a("label",{attrs:{for:"JobLevel"}},[t._v("Job Level")]),a("input",{directives:[{name:"model",rawName:"v-model",value:t.job_level,expression:"job_level"}],attrs:{type:"text",name:"job_level",id:"JobLevel"},domProps:{value:t.job_level},on:{input:function(e){e.target.composing||(t.job_level=e.target.value)}}})]),a("div",{staticClass:"form-input horizontal"},[a("label",[t._v("Deadline")]),a("div",{staticClass:"row w-100"},[a("select",{directives:[{name:"model",rawName:"v-model",value:t.day,expression:"day"}],staticClass:"w-25 bluefire-selector",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.day=e.target.multiple?a:a[0]}}},[a("option",{attrs:{value:"0"}},[t._v("Day")]),t._l(31,(function(e){return a("option",{key:e},[t._v(t._s(e))])}))],2),a("select",{directives:[{name:"model",rawName:"v-model",value:t.month,expression:"month"}],staticClass:"w-50 bluefire-selector",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.month=e.target.multiple?a:a[0]}}},[a("option",{attrs:{value:"0"}},[t._v("Month")]),t._l(12,(function(e){return a("option",{key:e},[t._v(t._s(e))])}))],2),a("select",{directives:[{name:"model",rawName:"v-model",value:t.year,expression:"year"}],staticClass:"w-25 bluefire-selector",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.year=e.target.multiple?a:a[0]}}},[a("option",{attrs:{value:"0"}},[t._v("Year")]),t._l(95,(function(e,i){return a("option",{key:e},[t._v(t._s(2020-i))])}))],2)])]),a("div",{staticClass:"form-input horizontal"},[a("label",{attrs:{for:"JobDescription"}},[t._v("Job Description")]),a("textarea",{directives:[{name:"model",rawName:"v-model",value:t.job_description,expression:"job_description"}],staticClass:"noresize",attrs:{id:"JobDescription"},domProps:{value:t.job_description},on:{input:function(e){e.target.composing||(t.job_description=e.target.value)}}})]),a("div",{staticClass:"form-input flex-center"},[a("button",{staticClass:"button w-50 medium",on:{click:t.insertJob}},[t._v("Post Job")])])])])])])},ne=[],se={data:function(){return{job_name:"",country:0,city:0,job_level:"",day:0,month:0,year:0,job_description:""}},mounted:function(){var t=this;c.get("/getJob?jobId="+this.$route.params.id).then((function(e){var a=e.data,i=a[0];t.job_name=i.JobName,t.country=i.CountryID,t.city=i.CityID,t.job_level=i.JobLevel,t.day=new Date(i.Deadline).getDate(),t.month=1+new Date(i.Deadline).getMonth(),t.year=new Date(i.Deadline).getFullYear(),t.job_description=i.JobDescription}))},methods:{insertJob:function(t){var e=this;t.preventDefault();var a=new FormData;a.append("jobId",this.$route.params.id),a.append("jobName",this.job_name),a.append("cityId",this.city),a.append("deadline",this.year+"-"+this.month+"-"+this.day),a.append("jobLevel",this.job_level),a.append("jobDesc",this.job_description),c.post("/updateJob",a,{headers:{"Content-Type":"multipart/form-data"}}).then((function(){e.$router.push("/admin")}))}}},oe=se,re=Object(p["a"])(oe,ie,ne,!1,null,null,null),le=re.exports,ce=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"container"},[a("div",{staticClass:"narrow-container"},[a("div",{staticClass:"normal-box rounded"},[a("div",{staticClass:"position"},[a("div",{staticClass:"position-overview"},[a("div",{staticClass:"position-title"},[a("div",{staticClass:"title-bar"}),a("h1",[t._v(t._s(t.job.JobName))])]),a("div",{staticClass:"position-location"},[a("div",{staticClass:"region"},[t._v(" "+t._s(t.job.CityName)+", "+t._s(t.job.CountryName)+" ")]),a("div",{staticClass:"address"},[t._v(" "+t._s(t.job.AddressDetail)+" ")])])]),a("div",{staticClass:"position-status"},[a("h2",[t._v("Number of Applicants")]),a("p",{staticClass:"applicant-amount"},[t._v(t._s(t.job.ApplicantCount))])])]),a("div",{staticClass:"applicants"},t._l(t.entries,(function(e,i){return a("div",{key:e.EntryID,staticClass:"normal-box applicant row"},[a("div",{staticClass:"applicant-no"},[t._v(" "+t._s(i+1)+" ")]),a("div",{staticClass:"applicant-detail"},[a("div",{staticClass:"applicant-name"},[a("h1",[t._v(t._s(e.UserName))])]),a("div",{staticClass:"applicant-data row"},[a("div",{staticClass:"w-50"},[a("div",{staticClass:"detail-item"},[a("h2",[t._v("Email")]),a("p",[t._v(t._s(e.Email))])]),a("div",{staticClass:"detail-item"},[a("h2",[t._v("Phone")]),a("p",[t._v(t._s(e.Phone)+" ")])])]),a("div",{staticClass:"w-50"},[a("div",{staticClass:"detail-item"},[a("h2",[t._v("Previous Company Name")]),a("p",[t._v(t._s(e.PrevCompanyName))])]),a("div",{staticClass:"detail-item"},[a("h2",[t._v("Previous Position")]),a("p",[t._v(t._s(e.PrevPosition))])]),a("div",{staticClass:"detail-item"},[a("h2",[t._v("University Name")]),a("p",[t._v(t._s(e.UniversityName))])])])]),a("div",{staticClass:"applicant-data"},[a("div",{staticClass:"detail-item"},[a("h2",[t._v("CV URL")]),a("p",[t._v(t._s(e.CvLink))])]),a("div",{staticClass:"detail-item"},[a("h2",[t._v("Portfolio URL")]),a("p",[t._v(t._s(e.PortofolioLink))])])]),a("div",{staticClass:"applicant-fate"},[a("button",{staticClass:"button plain medium w-25",on:{click:function(a){return t.rejectEntry(e)}}},[t._v(" Reject Applicant ")]),a("button",{staticClass:"button medium w-25",on:{click:function(a){return t.acceptEntry(e)}}},[t._v(" Approve ")])])])])})),0)])])])},ue=[],de=(a("d3b7"),a("ddb0"),{data:function(){return{job:{},entries:[]}},mounted:function(){var t=this,e=this.$route.params.id;c.get("/getJob?jobId="+e).then((function(e){var a=e.data;t.job=a[0]})),c.get("/getEntries").then((function(a){var i=a.data;t.entries=i.filter((function(t){return t.JobID==e&&"pending"==t.StatusEntry}))}))},methods:{rejectEntry:function(t){var e=this,a=new FormData;a.append("id",t.EntryID),c.post("/denyEntry",a,{headers:{"Content-Type":"multipart/form-data"}}).then((function(){e.entries=e.entries.filter((function(e){return e.EntryID!=t.EntryID}))}))},acceptEntry:function(t){var e=this,a=new FormData;a.append("id",t.EntryID),c.post("/acceptEntry",a,{headers:{"Content-Type":"multipart/form-data"}}).then((function(){e.entries=e.entries.filter((function(e){return e.EntryID!=t.EntryID}))}))}}}),pe=de,me=Object(p["a"])(pe,ce,ue,!1,null,null,null),ve=me.exports;i["a"].use(f["a"]);var fe=[{path:"/",component:w,children:[{name:"index",path:"",component:T},{name:"login",path:"/login",component:q},{name:"admin-login",path:"/admin/login",component:at},{name:"register",path:"/register",component:lt},{name:"about-us",path:"about",component:vt},{name:"job-detail",path:"/job/:id",component:yt},{name:"job-apply",path:"/job/apply/:id",component:Lt},{name:"job-list",path:"/jobs",component:Xt},{name:"bookmark-list",path:"/bookmarks",component:Nt}]},{path:"/admin",component:x,children:[{name:"admin-index",path:"",component:qt},{name:"admin-job-new",path:"job/new",component:ae},{name:"admin-job-edit",path:"job/edit/:id",component:le},{name:"admin-job-applicants",path:"applicants/:id",component:ve}]}],_e=new f["a"]({mode:"history",base:"/",routes:fe}),be=_e;i["a"].use(C["a"]);var Ce=new C["a"].Store({state:{apiKey:0,user:{},adminApiKey:0,admin:{},countryId:0,cityId:0,countries:[],cities:[]},mutations:{login:function(t,e){t.apiKey=e.UserID,t.user=e},logout:function(t){t.apiKey=0,t.user={}},adminLogin:function(t,e){t.adminApiKey=e.AdminID,t.admin=e},adminLogout:function(t){t.adminApiKey=0,t.admin={}},setCountryId:function(t,e){t.countryId=e},setCityId:function(t,e){t.cityId=e},setCountries:function(t,e){t.countries=e},setCities:function(t,e){t.cities=e}},actions:{},modules:{}});i["a"].config.productionTip=!1,new i["a"]({router:be,store:Ce,render:function(t){return t(v)}}).$mount("#app")},5890:function(t,e,a){"use strict";var i=a("b048"),n=a.n(i);n.a},"85ec":function(t,e,a){},"98a8":function(t,e,a){t.exports=a.p+"img/1.55c09292.jpg"},"9c4d":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAB11BMVEUAAABWVlVXV1ZVVVNSUlJUVFNWVlRWVlZISEhMTEhXV1VYWFhXV1dVVVVZWVhYWFddXVxWVlVXV1ZXV1ZXV1ZXV1ZXV1ZWVlVXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1VXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZVVVNXV1ZXV1ZVVVRXV1ZXV1ZWVlNXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZWVlVXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZWVlVXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1VXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1ZXV1b///+GrkSlAAAAm3RSTlMAAAAAAAAAAAAAAAAAAAAAAAMTIykiEQEZYKfR5enjzZ5UEghi0P36w1ADFZrzggqm+/j8jAeI/syBUkRWi9dqQ/DxfRYfkt8qBqr1aIOKLuqYBA621mPsNPdFwAsa2gGgogHBfwG/2Wtk6zJOL5YMs6z0BInveByOWMh7TEBRhtTdT/YCF2f5jWXV5+ZZJy0lA+61xSbHlT0YmQBcu5QAAAABYktHRJxxvMInAAAAB3RJTUUH5AIBCA0dW8aEHQAAAflJREFUOMuFlPlfEmEQxnefNHIlEVCzIDM1xZMgiw4VNVPBPBITbyPRErss006PlO601NLin232fZd9N8RP8wufeebLzDvzzruSxE1G0mQpjclHAKvNnpdfcEJlDoRJKzx5yuE8XXSm+GwJeRmp8dKyc+UJbhWuyiog0xA/ClTXVCSE1da5/6kCFJznEY/3Avstr79oIEywXlJV3+UrV681NDaxMn7AJBI0t5DWer2NNXmj3UteR6dIgUCQlK6bx5ClmCAj0K3W6ckWQG8fCbf6+V8ygdAA+bcLBTBIfnhITwlUUpHhEX0WqCdgdEyfsIzxCVL8MGvC5B1yI3fFDcA9RUoUxzV/+n8AKzHjNpa4R8p9vQRmyY3NGQ75IOWQD2NEPLJygi7m8RO1zXHDoOZJeDqbA4uSQYN6FlUHtZAjAIy0kvJ80cZGvfRimDzvS7E2Mqoa2RW+ev3m7fLKKr/YtXcWw6lKgtqurHv0pYgNbiTXk8YfL/YkUq12kZZCYYQCuN+v+rSAxxX5wPN9DCUJdWmXPs1//hL+6oh8s5VG1xnhi8SThETtob9tc+u7jSrjh3+bZ9uxi72RzfrDAXIbijix+/PAG+F9obmJEwtm6RBi7hcD9ixSekKGXd085z7SA2rrv/84HcsWRTqcCNjjaR6ybtr3QPoL2Hy9fWKEgTsAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjAtMDItMDFUMDg6MTE6MjArMDA6MDDgKpF8AAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIwLTAyLTAxVDA4OjExOjIwKzAwOjAwkXcpwAAAAABJRU5ErkJggg=="},b048:function(t,e,a){},dd50:function(t,e,a){},fedd:function(t,e,a){t.exports=a.p+"img/bookmark.4088066a.svg"}});
|
|
//# sourceMappingURL=app.fa5962da.js.map
|