"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[6460],{72695:(e,t,a)=>{a.r(t),a.d(t,{default:()=>o});const s={data:function(){return{logs:[],totalRows:0,isLoading:!0,perPage:10,currentPage:1,columns:[{label:this.$t("Context"),field:"context",sortable:!0},{label:this.$t("Message"),field:"message",sortable:!1},{label:this.$t("Details"),field:"details",sortable:!1},{label:this.$t("Occurred_At"),field:"occurred_at",sortable:!0}]}},mounted:function(){this.fetchLogs()},methods:{fetchLogs:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.isLoading=!0,axios.get("/error-logs",{params:{page:t,per_page:this.perPage}}).then(function(t){e.logs=t.data.logs,e.totalRows=t.data.total}).catch(function(e){}).finally(function(){e.isLoading=!1})},onPageChange:function(e){this.currentPage=e.currentPage,this.fetchLogs(this.currentPage)},onPerPageChange:function(e){this.perPage=e.currentPerPage,this.fetchLogs(this.currentPage)}}};const o=(0,a(14486).A)(s,function(){var e=this,t=e._self._c;return t("div",{staticClass:"main-content"},[t("breadcumb",{attrs:{page:e.$t("Error_Logs"),folder:e.$t("Reports")}}),e._v(" "),e.isLoading?t("div",{staticClass:"loading_page spinner spinner-primary mr-3"}):e._e(),e._v(" "),e.isLoading?e._e():t("vue-good-table",{attrs:{mode:"remote",columns:e.columns,totalRows:e.totalRows,rows:e.logs,"pagination-options":{enabled:!0,mode:"records",perPage:e.perPage,nextLabel:"Next",prevLabel:"Prev"},styleClass:"table-hover tableOne vgt-table"},on:{"on-page-change":e.onPageChange,"on-per-page-change":e.onPerPageChange},scopedSlots:e._u([{key:"table-row",fn:function(a){return["details"===a.column.field?t("div",[t("pre",{staticStyle:{"max-height":"100px","overflow-y":"auto","white-space":"pre-wrap"}},[e._v(e._s(a.row.details))])]):e._e()]}}],null,!1,245573088)},[t("div",{staticClass:"mt-2 mb-3",attrs:{slot:"table-actions"},slot:"table-actions"})])],1)},[],!1,null,null,null).exports}}]);