PageSourceSearch

https://eduall-vue.netlify.app/assets/StudentReviews-ocZIdgQL.js

js eduall-vue.netlify.app collected 2026-10-03 10:41:41 UTC 6,878 bytes, 1 lines download raw bytes

1import{F as y,H as _}from"./Footer4-DHe5vSKf.js";import{S as k,_ as S}from"./StudentSidebar-Dm6GC6aW.js";import{_ as P,c as a,b as e,e as g,l as h,n as w,F as v,f,t as x,o as l,d as c,r as p}from"./index-BnxObZXq.js";import"./shape6-H-JIteTK.js";import"./logo-white-GPMyqlIo.js";import"./testimonials-three-img1-CZ8x9ZwE.js";import"./reviewer-img1-DzKN___C.js";import"./instructor-details-thumb-DmUWUlcZ.js";import"./shape5-CVN100N7.js";import"./shape4-q8UrSedO.js";const A={data(){return{courses:[{id:1,name:"Automation System",reviews:3},{id:2,name:"Laboratory Expansion",reviews:3},{id:3,name:"Cleanroom Upgrade",reviews:3},{id:4,name:"Quality Control",reviews:3},{id:5,name:"Analytical Equipment",reviews:3},{id:6,name:"Vaccine Development",reviews:3},{id:7,name:"Packaging Line",reviews:3},{id:8,name:"IT Infrastructure",reviews:3},{id:9,name:"Clinical Trials",reviews:3},{id:10,name:"Cold Chain",reviews:3},{id:11,name:"Quality Control",reviews:3},{id:12,name:"Analytical Equipment",reviews:3},{id:13,name:"Vaccine Development",reviews:3},{id:14,name:"Packaging Line",reviews:3}],currentPage:1,rowsPerPage:10,sortColumn:"name",sortAsc:!0}},computed:{sortedCourses(){return[...this.courses].sort((s,t)=>{let r=s[this.sortColumn],i=t[this.sortColumn];return this.sortColumn==="name"?(r=r.toLowerCase(),i=i.toLowerCase(),r<i?this.sortAsc?-1:1:r>i?this.sortAsc?1:-1:0):this.sortAsc?r-i:i-r})},paginatedCourses(){const s=(this.currentPage-1)*this.rowsPerPage,t=s+this.rowsPerPage;return this.sortedCourses.slice(s,t)},paginationLabel(){const s=(this.currentPage-1)*this.rowsPerPage+1,t=Math.min(this.currentPage*this.rowsPerPage,this.courses.length);return`${s}-${t} of ${this.courses.length}`},totalPages(){return Math.ceil(this.courses.length/this.rowsPerPage)}},methods:{sortBy(s){this.sortColumn===s?this.sortAsc=!this.sortAsc:(this.sortColumn=s,this.sortAsc=!0),this.currentPage=1},editCourse(s){console.log("Editing course:",s)},deleteCourse(s){console.log("Deleting course:",s)},goToPrevPage(){this.currentPage>1&&this.currentPage--},goToNextPage(){this.currentPage<this.totalPages&&this.currentPage++},changeRowsPerPage(s){this.rowsPerPage=parseInt(s.target.value),this.currentPage=1}}},B={class:"w-100"},D={class:"px-24 py-24 bg-white rounded-10"},R={class:"mb-24"},T={class:"overflow-y-auto"},L={id:"example-five",class:"display min-w-max w-100"},F={class:"bg-main-25 border-bottom border-neutral-30"},N={class:"py-28 px-20 shadow-none"},V={class:"fw-normal text-12 text-neutral-500"},E={class:"text-14 fw-normal py-28 px-20 shadow-none"},H={class:"d-flex align-items-center gap-6"},j={class:"py-28 px-20 shadow-none"},I={class:"py-28 px-20 shadow-none"},$={class:"d-flex align-items-center gap-12 justify-content-end"},q=["onClick"],z=["onClick"],M={class:"d-flex align-items-center gap-24 justify-content-between flex-wrap"},Q={class:"d-flex align-items-center gap-40 flex-wrap"},U={class:"d-flex align-items-center gap-16"},G={class:"d-flex align-items-center gap-16"},J={class:"fw-normal text-14 text-neutral-500"},K={class:"d-flex align-items-center gpa-8"};function O(s,t,r,i,d,o){return l(),a("div",B,[e("div",D,[t[19]||(t[19]=e("div",{class:"d-flex align-items-center justify-content-between"},[e("h6",{class:"mb-0 fw-medium"},"Reviews")],-1)),e("div",R,[e("div",T,[e("table",L,[e("thead",null,[e("tr",F,[e("th",{class:"text-12 fw-medium text-neutral-500 py-16 px-20 cursor-pointer",onClick:t[0]||(t[0]=n=>o.sortBy("name"))},[t[6]||(t[6]=g(" Course ")),d.sortColumn==="name"?(l(),a("i",{key:0,class:w(d.sortAsc?"ph ph-caret-up":"ph ph-caret-down")},null,2)):h("",!0)]),e("th",{class:"text-12 fw-medium text-neutral-500 py-16 px-20 cursor-pointer",onClick:t[1]||(t[1]=n=>o.sortBy("reviews"))},[t[7]||(t[7]=g(" Reviews ")),d.sortColumn==="reviews"?(l(),a("i",{key:0,class:w(d.sortAsc?"ph ph-caret-up":"ph ph-caret-down")},null,2)):h("",!0)]),e("th",{class:"text-12 fw-medium text-neutral-500 py-16 px-20 cursor-pointer",onClick:t[2]||(t[2]=n=>o.sortBy("reviews"))},[t[8]||(t[8]=g(" Feedback ")),d.sortColumn==="reviews"?(l(),a("i",{key:0,class:w(d.sortAsc?"ph ph-caret-up":"ph ph-caret-down")},null,2)):h("",!0)]),t[9]||(t[9]=e("th",{class:"text-12 fw-medium text-neutral-500 py-16 px-20"},"Action",-1))])]),e("tbody",null,[(l(!0),a(v,null,f(o.paginatedCourses,(n,m)=>(l(),a("tr",{key:m,class:"hover-bg-neutral-20 border-bottom transition-03"},[e("td",N,[e("span",V,x(n.name),1)]),e("td",E,[e("div",null,[e("ul",H,[(l(),a(v,null,f(4,u=>e("li",{key:u,class:"text-20 text-warning-600"},t[10]||(t[10]=[e("i",{class:"ph-fill ph-star"},null,-1)]))),64)),t[11]||(t[11]=e("li",{class:"text-20 text-warning-600"},[e("i",{class:"ph-fill ph-star-half"})],-1))])])]),e("td",j,"("+x(n.reviews)+" Reviews)",1),e("td",I,[e("div",$,[e("button",{type:"button",class:"text-24 text-neutral-500 hover-text-main-600 transition-03",onClick:u=>
1o.editCourse(n.id)},t[12]||(t[12]=[e("i",{class:"ph-bold ph-pencil-simple-line"},null,-1)]),8,q),e("button",{type:"button",class:"text-24 text-neutral-500 hover-text-main-600 transition-03",onClick:u=>o.deleteCourse(n.id)},t[13]||(t[13]=[e("i",{class:"ph-bold ph-trash"},null,-1)]),8,z)])])]))),128))])])])]),e("div",M,[t[18]||(t[18]=e("div",{class:"form-check form-switch"},[e("input",{class:"form-check-input focus-box-shadow",type:"checkbox",role:"switch",id:"flexSwitchCheckDefault"}),e("label",{class:"form-check-label text-14 fw-normal text-neutral-500",for:"flexSwitchCheckDefault"}," Dense ")],-1)),e("div",Q,[e("div",U,[t[15]||(t[15]=e("span",{class:"fw-normal text-14 text-neutral-500"},"Rows per page:",-1)),e("select",{class:"form-select w-auto pe-32 text-14 fw-normal text-neutral-500 bg-transparent border-0",onChange:t[3]||(t[3]=(...n)=>o.changeRowsPerPage&&o.changeRowsPerPage(...n))},t[14]||(t[14]=[e("option",{value:"5"},"5",-1),e("option",{value:"10"},"10",-1),e("option",{value:"15"},"15",-1)]),32)]),e("div",G,[e("span",J,x(o.paginationLabel),1),e("div",K,[e("span",{class:"text-20 text-neutral-500",onClick:t[4]||(t[4]=(...n)=>o.goToPrevPage&&o.goToPrevPage(...n))},t[16]||(t[16]=[e("i",{class:"ph-bold ph-caret-left"},null,-1)])),e("span",{class:"text-20 text-neutral-500",onClick:t[5]||(t[5]=(...n)=>o.goToNextPage&&o.goToNextPage(...n))},t[17]||(t[17]=[e("i",{class:"ph-bold ph-caret-right"},null,-1)]))])])])])])])}const W=P(A,[["render",O]]),X={name:"StudentReviews",components:{Header4:_,Banner:S,StudentSidebar:k,DashbordSection:W,Footer4:y}},Y={class:"bg-main-25 pb-80 w-100 h-100"},Z={class:"container container--lg"},ee={class:"d-flex gap-24 mt--120 z-2 position-relative"};function te(s,t,r,i,d,o){const n=p("Header4"),m=p("Banner"),u=p("StudentSidebar"),b=p("DashbordSection"),C=p("Footer4");return l(),a("div",null,[c(n),c(m),e("section",Y,[e("div",Z,[e("div",ee,[t[0]||(t[0]=e("div",{class:"student-overlay-sidebar"},null,-1)),c(u),c(b)])])]),c(C)])}const pe=P(X,[["render",te]]);export{pe 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.