text: (function(t){function a(a){for(var s,n,o=a[0],l=a[1],c=a[2],u=0,p=[];u<o.length;u++)n=o[u],i[n]&&p.push(i[n][0]),i[n]=0;for(s in l)Object.prototype.hasOwnProperty.call(l,s)&&(t[s]=l[s]);d&&d(a);while(p.length)p.shift()();return r.push.apply(r,c||[]),e()}function e(){for(var t,a=0;a<r.length;a++){for(var e=r[a],s=!0,o=1;o<e.length;o++){var l=e[o];0!==i[l]&&(s=!1)}s&&(r.splice(a--,1),t=n(n.s=e[0]))}return t}var s={},i={app:0},r=[];function n(a){if(s[a])return s[a].exports;var e=s[a]={i:a,l:!1,exports:{}};return t[a].call(e.exports,e,e.exports,n),e.l=!0,e.exports}n.m=t,n.c=s,n.d=function(t,a,e){n.o(t,a)||Object.defineProperty(t,a,{enumerable:!0,get:e})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,a){if(1&a&&(t=n(t)),8&a)return t;if(4&a&&"object"===typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(n.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&a&&"string"!=typeof t)for(var s in t)n.d(e,s,function(a){return t[a]}.bind(null,s));return e},n.n=function(t){var a=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(a,"a",a),a},n.o=function(t,a){return Object.prototype.hasOwnProperty.call(t,a)},n.p="/";var o=window["webpackJsonp"]=window["webpackJsonp"]||[],l=o.push.bind(o);o.push=a,o=o.slice();for(var c=0;c<o.length;c++)a(o[c]);var d=l;r.push([0,"chunk-vendors"]),e()})({0:function(t,a,e){t.exports=e("56d7")},4678:function(t,a,e){var s={"./af":"2bfb","./af.js":"2bfb","./ar":"8e73","./ar-dz":"a356","./ar-dz.js":"a356","./ar-kw":"423e","./ar-kw.js":"423e","./ar-ly":"1cfd","./ar-ly.js":"1cfd","./ar-ma":"0a84","./ar-ma.js":"0a84","./ar-sa":"8230","./ar-sa.js":"8230","./ar-tn":"6d83","./ar-tn.js":"6d83","./ar.js":"8e73","./az":"485c","./az.js":"485c","./be":"1fc1","./be.js":"1fc1","./bg":"84aa","./bg.js":"84aa","./bm":"a7fa","./bm.js":"a7fa","./bn":"9043","./bn.js":"9043","./bo":"d26a","./bo.js":"d26a","./br":"6887","./br.js":"6887","./bs":"2554","./bs.js":"2554","./ca":"d716","./ca.js":"d716","./cs":"3c0d","./cs.js":"3c0d","./cv":"03ec","./cv.js":"03ec","./cy":"9797","./cy.js":"9797","./da":"0f14","./da.js":"0f14","./de":"b469","./de-at":"b3eb","./de-at.js":"b3eb","./de-ch":"bb71","./de-ch.js":"bb71","./de.js":"b469","./dv":"598a","./dv.js":"598a","./el":"8d47","./el.js":"8d47","./en-SG":"cdab","./en-SG.js":"cdab","./en-au":"0e6b","./en-au.js":"0e6b","./en-ca":"3886","./en-ca.js":"3886","./en-gb":"39a6","./en-gb.js":"39a6","./en-ie":"e1d3","./en-ie.js":"e1d3","./en-il":"7333","./en-il.js":"7333","./en-nz":"6f50","./en-nz.js":"6f50","./eo":"65db","./eo.js":"65db","./es":"898b","./es-do":"0a3c","./es-do.js":"0a3c","./es-us":"55c9","./es-us.js":"55c9","./es.js":"898b","./et":"ec18","./et.js":"ec18","./eu":"0ff2","./eu.js":"0ff2","./fa":"8df4","./fa.js":"8df4","./fi":"81e9","./fi.js":"81e9","./fo":"0721","./fo.js":"0721","./fr":"9f26","./fr-ca":"d9f8","./fr-ca.js":"d9f8","./fr-ch":"0e49","./fr-ch.js":"0e49","./fr.js":"9f26","./fy":"7118","./fy.js":"7118","./ga":"5120","./ga.js":"5120","./gd":"f6b4","./gd.js":"f6b4","./gl":"8840","./gl.js":"8840","./gom-latn":"0caa","./gom-latn.js":"0caa","./gu":"e0c5","./gu.js":"e0c5","./he":"c7aa","./he.js":"c7aa","./hi":"dc4d","./hi.js":"dc4d","./hr":"4ba9","./hr.js":"4ba9","./hu":"5b14","./hu.js":"5b14","./hy-am":"d6b6","./hy-am.js":"d6b6","./id":"5038","./id.js":"5038","./is":"0558","./is.js":"0558","./it":"6e98","./it-ch":"6f12","./it-ch.js":"6f12","./it.js":"6e98","./ja":"079e","./ja.js":"079e","./jv":"b540","./jv.js":"b540","./ka":"201b","./ka.js":"201b","./kk":"6d79","./kk.js":"6d79","./km":"e81d","./km.js":"e81d","./kn":"3e92","./kn.js":"3e92","./ko":"22f8","./ko.js":"22f8","./ku":"2421","./ku.js":"2421","./ky":"9609","./ky.js":"9609","./lb":"440c","./lb.js":"440c","./lo":"b29d","./lo.js":"b29d","./lt":"26f9","./lt.js":"26f9","./lv":"b97c","./lv.js":"b97c","./me":"293c","./me.js":"293c","./mi":"688b","./mi.js":"688b","./mk":"6909","./mk.js":"6909","./ml":"02fb","./ml.js":"02fb","./mn":"958b","./mn.js":"958b","./mr":"39bd","./mr.js":"39bd","./ms":"ebe4","./ms-my":"6403","./ms-my.js":"6403","./ms.js":"ebe4","./mt":"1b45","./mt.js":"1b45","./my":"8689","./my.js":"8689","./nb":"6ce3","./nb.js":"6ce3","./ne":"3a39","./ne.js":"3a39","./nl":"facd","./nl-be":"db29","./nl-be.js":"db29","./nl.js":"facd","./nn":"b84c","./nn.js":"b84c","./pa-in":"f3ff","./pa-in.js":"f3ff","./pl":"8d57","./pl.js":"8d57","./pt":"f260","./pt-br":"d2d4","./pt-br.js":"d2d4","./pt.js":"f260","./ro":"972c","./ro.js":"972c","./ru":"957c","./ru.js":"957c","./sd":"6784","./sd.js":"6784","./se":"ffff","./se.js":"ffff","./si":"eda5","./si.js":"eda5","./sk":"7be6","./sk.js":"7be6","./sl":"8155","./sl.js":"8155","./sq":"c8f3","./sq.js":"c8f3","./sr":"cf1e","./sr-cyrl":"13e9","./sr-cyrl.js":"13e9","./sr.js":"cf1e","./ss":"52bd","./ss.js":"52bd","./sv":"5fbd","./sv.js":"5fbd","./sw":"74dc","./sw.js":"74dc","./ta":"3de5","./ta.js":"3de5","./te":"5cbb","./te.js":"5cbb","./tet":"576c","./tet.js":"576c","./tg":"3b1b","./tg.js":"3b1b","./th":"10e8","./th.js":"10e8","./tl-ph":"0f38","./tl-ph.js":"0f38","./tlh":"cf75","./tlh.js":"cf75","./tr":"0e81","./tr.js":"0e81","./tzl":"cf51","./tzl.js":"cf51","./tzm":"c109","./tzm-latn":"b53d","./tzm-latn.js":"b53d","./tzm.js":"c109","./ug-cn":"6117","./ug-cn.js":"6117","./uk":"ada2","./uk.js":"ada2","./ur":"5294","./ur.js":"5294","./uz":"2e8c","./uz-latn":"010e","./uz-latn.js":"010e","./uz.js":"2e8c","./vi":"2921","./vi.js":"2921","./x-pseudo":"fd7e","./x-pseudo.js":"fd7e","./yo":"7f33","./yo.js":"7f33","./zh-cn":"5c3a","./zh-cn.js":"5c3a","./zh-hk":"49ab","./zh-hk.js":"49ab","./zh-tw":"90ea","./zh-tw.js":"90ea"};function i(t){var a=r(t);return e(a)}function r(t){var a=s[t];if(!(a+1)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return a}i.keys=function(){return Object.keys(s)},i.resolve=r,t.exports=i,i.id="4678"},"56d7":function(t,a,e){"use strict";e.r(a);e("cadf"),e("551c"),e("f751"),e("097d");var s,i,r,n,o=e("2b0e"),l=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{attrs:{id:"app"}},[e("Header"),e("Sidebar"),e("router-view")],1)},c=[],d=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"sidebar"},[e("div",{staticClass:"sidebar-wrapper"},[t._m(0),e("ul",{staticClass:"nav"},[e("li",[e("router-link",{attrs:{tag:"a",to:"/dashboard"}},[e("i",{staticClass:"tim-icons icon-chart-bar-32"}),e("p",[t._v("Dashboard")])])],1),e("li",[e("router-link",{attrs:{tag:"a",to:"/adduser"}},[e("i",{staticClass:"tim-icons icon-single-02"}),e("p",[t._v("Kullanıcı Ayarları")])])],1),e("li",[e("router-link",{attrs:{tag:"a",to:"/kurye"}},[e("i",{staticClass:"tim-icons icon-simple-add"}),e("p",[t._v("Kurye Ekleme ")])])],1),e("li",[e("router-link",{attrs:{tag:"a",to:"/addproduct"}},[e("i",{staticClass:"tim-icons icon-simple-add"}),e("p",[t._v("Ürün Ekleme ")])])],1),e("li",[e("router-link",{attrs:{tag:"a",to:"/addcategory"}},[e("i",{staticClass:"tim-icons icon-simple-add"}),e("p",[t._v("Kategori Ekleme ")])])],1),e("li",[e("router-link",{attrs:{tag:"a",to:"/products"}},[e("i",{staticClass:"tim-icons icon-cart"}),e("p",[t._v("Ürünler ")])])],1),e("li",[e("router-link",{attrs:{tag:"a",to:"/categorys"}},[e("i",{staticClass:"tim-icons icon-bullet-list-67"}),e("p",[t._v("Kategoriler ")])])],1),e("li",[e("router-link",{attrs:{tag:"a",to:"/rezervasyon"}},[e("i",{staticClass:"tim-icons icon-align-center"}),e("p",[t._v("Rezervasyon")])])],1),e("li",[e("router-link",{attrs:{tag:"a",to:"/satistakip"}},[e("i",{staticClass:"tim-icons icon-basket-simple"}),e("p",[t._v("Satış Takip")])])],1)])])])},u=[function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"logo"},[e("a",{staticClass:"simple-text logo-mini",attrs:{href:"javascript:void(0)"}},[t._v("\n            ZU\n          ")]),e("a",{staticClass:"simple-text logo-normal",attrs:{href:"javascript:void(0)"}},[t._v("\n            Zeki Usta \n          ")])])}],p={data:function(){return{}},methods:{}},m=p,v=e("2877"),f=Object(v["a"])(m,d,u,!1,null,null,null),b=f.exports,h=function(){var t=this,a=t.$createElement;t._self._c;return t._m(0)},g=[function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",[e("nav",{staticClass:"navbar navbar-expand-lg navbar-absolute navbar-transparent"},[e("div",{staticClass:"container-fluid"},[e("div",{staticClass:"navbar-wrapper"},[e("div",{staticClass:"navbar-toggle d-inline"},[e("button",{staticClass:"navbar-toggler",attrs:{type:"button"}},[e("span",{staticClass:"navbar-toggler-bar bar1"}),e("span",{staticClass:"navbar-toggler-bar bar2"}),e("span",{staticClass:"navbar-toggler-bar bar3"})])]),e("h3",{staticClass:"navbar-brand ",attrs:{href:"javascript:void(0)"}},[t._v("Ay-SOFT Software ")])]),e("button",{staticClass:"navbar-toggler",attrs:{type:"button","data-toggle":"collapse","data-target":"#navigation","aria-expanded":"false","aria-label":"Toggle navigation"}},[e("span",{staticClass:"navbar-toggler-bar navbar-kebab"}),e("span",{staticClass:"navbar-toggler-bar navbar-kebab"}),e("span",{staticClass:"navbar-toggler-bar navbar-kebab"})]),e("div",{staticClass:"collapse navbar-collapse",attrs:{id:"navigation"}},[e("ul",{staticClass:"navbar-nav ml-auto"},[e("li",{staticClass:"search-bar input-group"},[e("button",{staticClass:"btn btn-link",attrs:{id:"search-button","data-toggle":"modal","data-target":"#searchModal"}},[e("i",{staticClass:"tim-icons icon-zoom-split"}),e("span",{staticClass:"d-lg-none d-md-block"},[t._v("Arama")])])]),e("li",{staticClass:"dropdown nav-item"},[e("a",{staticClass:"dropdown-toggle nav-link",attrs:{href:"#","data-toggle":"dropdown"}},[e("div",{staticClass:"photo"},[e("img",{attrs:{src:"https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/aa/aab235cb15ac75b5ad3479623cb9c263c2c78ec9.jpg",alt:"Profile Photo"}})]),e("b",{staticClass:"caret d-none d-lg-block d-xl-block"}),e("p",{staticClass:"d-lg-none"},[t._v("\n                  Log out\n                ")])]),e("ul",{staticClass:"dropdown-menu dropdown-navbar"},[e("li",{staticClass:"nav-link"},[e("a",{staticClass:"nav-item dropdown-item",attrs:{href:"javascript:void(0)"}},[t._v("Profil")])]),e("li",{staticClass:"nav-link"},[e("a",{staticClass:"nav-item dropdown-item",attrs:{href:"javascript:void(0)"}},[t._v("Ayarlar")])]),e("li",{staticClass:"dropdown-divider"}),e("li",{staticClass:"nav-link"},[e("a",{staticClass:"nav-item dropdown-item",attrs:{href:"javascript:void(0)"}},[t._v("Çıkış Yap")])])])]),e("li",{staticClass:"separator d-lg-none"})])])])])])}],y={},C=y,k=Object(v["a"])(C,h,g,!1,null,null,null),_=k.exports,j={name:"app",components:{Sidebar:b,Header:_}},x=j,w=Object(v["a"])(x,l,c,!1,null,null,null),S=w.exports,E=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",[e("Dashboard")],1)},z=[],D=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"main-panel"},[t._m(0),e("div",{staticClass:"content"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("div",{staticClass:"card card-chart"},[t._m(1),e("div",{staticClass:"card-body"},[e("div",{staticClass:"chart-area"},[t.loaded?e("Chart",{staticStyle:{height:"100%"},attrs:{chartdata:t.chartdata2,options:t.options}}):t._e()],1)])])])]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-lg-3 col-md-6"},[e("div",{staticClass:"card"},[e("div",{staticClass:"card-content"},[e("div",{staticClass:"row",staticStyle:{"padding-top":"10px"}},[t._m(2),e("div",{staticClass:"col-7"},[e("div",{staticStyle:{float:"right"}},[e("p",{staticClass:"cart-category"},[t._v("Aylık Sipariş Tutarı ")]),e("h3",{staticClass:"card-title"},[t._v("\n                    "+t._s(t.aylikToplamSatis)+" TL\n                  ")])])])])]),t._m(3)])]),e("div",{staticClass:"col-lg-3 col-md-6"},[e("div",{staticClass:"card"},[e("div",{staticClass:"card-content"},[e("div",{staticClass:"row",staticStyle:{"padding-top":"10px"}},[t._m(4),e("div",{staticClass:"col-7"},[e("div",{staticStyle:{float:"right"}},[e("p",{staticClass:"cart-category"},[t._v("Günlük Sipariş Tutarı ")]),e("h3",{staticClass:"card-title"},[t._v("\n                    "+t._s(t.günlükToplamSatis)+" TL\n\n                  ")])])])])]),t._m(5)])]),e("div",{staticClass:"col-lg-3 col-md-6"},[e("div",{staticClass:"card"},[e("div",{staticClass:"card-content"},[e("div",{staticClass:"row",staticStyle:{"padding-top":"10px"}},[t._m(6),e("div",{staticClass:"col-7"},[e("div",{staticStyle:{float:"right"}},[e("p",{staticClass:"cart-category"},[t._v("İptal Olan Siparişler ")]),e("h3",{staticClass:"card-title"},[t._v("\n                   "+t._s(t.iptalSiparisData)+"\n\n                  ")])])])])]),t._m(7)])]),e("div",{staticClass:"col-lg-3 col-md-6"},[e("div",{staticClass:"card"},[e("div",{staticClass:"card-content"},[e("div",{staticClass:"row",staticStyle:{"padding-top":"10px"}},[t._m(8),e("div",{staticClass:"col-7"},[e("div",{staticStyle:{float:"right"}},[e("p",{staticClass:"cart-category"},[t._v("Kayıtlı Kullanıcı Sayısı ")]),e("h3",{staticClass:"card-title"},[t._v("\n                   "+t._s(t.userCount.count)+"\n\n                  ")])])])])]),t._m(9)])])]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-md-4"},[e("div",{staticClass:"card card-chart"},[e("div",{staticClass:"card-header"},[e("h5",{staticClass:"card-category"},[t._v("Kuryelerin Aylık Sipariş Teslim Sayısı")]),e("h3",{staticClass:"card-title"},[e("i",{staticClass:"tim-icons icon-bell-55 text-primary"}),t._v(" "+t._s(t.kuryeToplamSiparis)+" Adet")])]),e("div",{staticClass:"card-body"},[e("div",{staticClass:"chart-area"},[t.aylikLoaded?e("AylikChart",{staticStyle:{height:"100%"},attrs:{chartdata:t.chartdata1,options:t.Aylikoptions}}):t._e()],1)])])]),e("div",{staticClass:"col-lg-4"},[e("div",{staticClass:"card card-chart"},[e("div",{staticClass:"card-header"},[e("h5",{staticClass:"card-category"},[t._v("Aylık  Sipariş Sayısı")]),e("h3",{staticClass:"card-title"},[e("i",{staticClass:"tim-icons icon-delivery-fast text-info"}),t._v(" "+t._s(t.aylikSiparisSayisi)+" Adet")])]),e("div",{staticClass:"card-body"},[e("div",{staticClass:"chart-area"},[t.aylikLoaded?e("AylikChart",{staticStyle:{height:"100%"},attrs:{chartdata:t.chartdataAylik,options:t.Aylikoptions}}):t._e()],1)])])]),e("div",{staticClass:"col-lg-4"},[e("div",{staticClass:"card card-chart"},[e("div",{staticClass:"card-header"},[e("h5",{staticClass:"card-category"},[t._v("Günlük Tamamlanan Sipariş Sayısı")]),e("h3",{staticClass:"card-title"},[e("i",{staticClass:"tim-icons icon-send text-success"}),t._v(t._s(t.günlükSiparisSayisi)+" Adet")])]),e("div",{staticClass:"card-body"},[e("div",{staticClass:"chart-area"},[t.loaded?e("Chart",{staticStyle:{height:"100%"},attrs:{chartdata:t.chartdata,options:t.options}}):t._e()],1)])])])])])])},R=[function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"modal modal-search fade",attrs:{id:"searchModal",tabindex:"-1",role:"dialog","aria-labelledby":"searchModal","aria-hidden":"true"}},[e("div",{staticClass:"modal-dialog",attrs:{role:"document"}},[e("div",{staticClass:"modal-content"},[e("div",{staticClass:"modal-header"},[e("input",{staticClass:"form-control",attrs:{type:"text",id:"inlineFormInputGroup",placeholder:"SEARCH"}}),e("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-label":"Close"}},[e("i",{staticClass:"tim-icons icon-simple-remove"})])])])])])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"card-header "},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-sm-6 text-left"},[e("h2",{staticClass:"card-title text-right"},[t._v("İş Zekası ve Karar Destek")]),e("h5",{staticClass:"card-category"},[t._v("Toplam Siparişler")])])])])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"col-5"},[e("div",{staticClass:"icon-big text-center icon-warning"},[e("i",{staticClass:"tim-icons icon-chat-33"})])])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"card-footer"},[e("hr"),e("div",{staticClass:"card-stats"},[e("i",{staticClass:"tim-icons icon-refresh-01"}),t._v(" Aylık \n            ")])])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"col-5"},[e("div",{staticClass:"icon-big icon-success text-center"},[e("i",{staticClass:"tim-icons  icon-molecule-40 "})])])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"card-footer"},[e("hr"),e("div",{staticClass:"card-stats"},[e("i",{staticClass:"tim-icons icon-sound-wave"}),t._v(" Bugün\n            ")])])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"col-5"},[e("div",{staticClass:"icon-big icon-danger text-center"},[e("i",{staticClass:"tim-icons icon-shape-star"})])])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"card-footer"},[e("hr"),e("div",{staticClass:"card-stats"},[e("i",{staticClass:"tim-icons icon-trophy"}),t._v(" Son Bir Kaç Saat İçerisinde\n            ")])])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"col-5"},[e("div",{staticClass:"icon-big icon-danger text-center"},[e("i",{staticClass:"tim-icons icon-single-02 "})])])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"card-footer"},[e("hr"),e("div",{staticClass:"card-stats"},[e("i",{staticClass:"tim-icons icon-trophy"}),t._v(" Son Bir Kaç Saat İçerisinde\n            ")])])}],K=(e("96cf"),e("3b8d")),A=e("bc3a"),B=e.n(A),$=e("2f62"),O=e("1fca"),L={extends:O["b"],props:{chartdata:{type:Object,default:null},options:{type:Object,default:null}},mounted:function(){this.renderChart(this.chartdata,this.options)}},P=L,T=Object(v["a"])(P,s,i,!1,null,null,null),N=T.exports,H={extends:O["a"],props:{chartdata:{type:Object,default:null},options:{type:Object,default:null}},mounted:function(){this.renderChart(this.chartdata,this.options)}},W=H,M=Object(v["a"])(W,r,n,!1,null,null,null),F=M.exports,U={components:{Chart:N,AylikChart:F},data:function(){return{loaded:!1,aylikLoaded:!1,chartdata:null,chartdata1:null,chartdata2:null,chartdataAylik:null,options:null,Aylikoptions:null,nakitData:0,krediData:0,kapidaData:0,"günlükToplamSatis":0,aylikNakitData:0,aylikKrediData:0,aylikKapidaData:0,aylikToplamSatis:0,iptalSiparisData:0,"günlükSiparisSayisi":0,aylikSiparisSayisi:0,userCount:0,kuryeToplamSiparis:0,"kuryeİsim":[],kuryeSiparis:[]}},computed:Object($["b"])(["allDatas"]),methods:{},mounted:function(){var t=Object(K["a"])(regeneratorRuntime.mark(function t(){var a=this;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,B.a.get("admin/api/iptalorder").then(function(t){a.iptalSiparisData=t.data.iptalCount});case 2:return t.next=4,B.a.get("admin/api/allKurye").then(function(t){for(var e=0;e<t.data.length;e++)a.kuryeİsim.push(t.data[e].firstname+" "+t.data[e].lastname);for(var s=0;s<t.data.length;s++)a.kuryeSiparis.push(t.data[s].siparis);console.log(a.kuryeSiparis);for(var i=[],r=0;r<t.data.length;r++)i[r]=parseInt(t.data.siparis[r]);function n(t,a){return t+a}a.kuryeToplamSiparis=i.reduce(n)});case 4:return t.next=6,B.a.get("admin/api/thisdayorder").then(function(t){function e(t,a){return t+a}a.nakitData=t.data.status[0],a.krediData=t.data.status[1],a.kapidaData=t.data.status[2],a.günlükToplamSatis=t.data.orderAmount,console.log(numbers),a.günlükSiparisSayisi=numbers.reduce(e),a.chartdata={labels:["Nakit","Kredi Kartı","Kapıda Ödeme"],datasets:[{backgroundColor:["rgba(66,134,121,0.15)"],borderColor:"#1f8ef1",borderWidth:2,borderDash:[],borderDashOffset:0,pointBackgroundColor:"#00d6b4",pointBorderColor:"rgba(255,255,255,0)",pointHoverBackgroundColor:"#00d6b4",pointBorderWidth:10,pointHoverRadius:4,pointHoverBorderWidth:15,pointRadius:4,label:"Ödeme Tipleri",data:[a.nakitData,a.kapidaData,a.krediData]}]},a.chartdata2={labels:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran"],datasets:[{backgroundColor:["rgba(66,134,121,0.15)"],borderColor:"#1f8ef1",borderWidth:2,borderDash:[],borderDashOffset:0,pointBackgroundColor:"#00d6b4",pointBorderColor:"rgba(255,255,255,0)",pointHoverBackgroundColor:"#00d6b4",pointBorderWidth:10,pointHoverRadius:4,pointHoverBorderWidth:15,pointRadius:4,label:"Ödeme Tipleri",data:[10,60,30,0,100,200]}]},a.chartdata1={labels:a.kuryeİsim,datasets:[{backgroundColor:["rgba(66,134,121,0.15)"],borderColor:"#1f8ef1",borderWidth:2,borderDash:[],borderDashOffset:0,pointBackgroundColor:"#00d6b4",pointBorderColor:"rgba(255,255,255,0)",pointHoverBackgroundColor:"#00d6b4",pointBorderWidth:10,pointHoverRadius:4,pointHoverBorderWidth:15,pointRadius:4,label:"Götürülen Sipariş Sayısı",data:a.kuryeSiparis}]},a.options={maintainAspectRatio:!1,legend:{display:!1},responsive:!0,tooltips:{backgroundColor:"#f5f5f5",titleFontColor:"#333",bodyFontColor:"#666",bodySpacing:4,xPadding:12,mode:"nearest",intersect:0,position:"nearest"},scales:{yAxes:[{gridLines:{drawBorder:!1,color:"rgba(29,140,248,0.1)",zeroLineColor:"transparent"},ticks:{suggestedMin:0,suggestedMax:5,fontColor:"#9e9e9e"}}],xAxes:[{gridLines:{drawBorder:!1,color:"rgba(29,140,248,0.1)",zeroLineColor:"transparent"},ticks:{padding:20,fontColor:"#9e9e9e"}}]}},a.loaded=!0});case 6:return t.next=8,B.a.get("admin/api/thismonthorder").then(function(t){a.aylikLoaded=!1,a.aylikNakitData=t.data.status[0],a.aylikKrediData=t.data.status[1],a.aylikKapidaData=t.data.status[2],a.aylikToplamSatis=t.data.orderAmount;var e=t.data.status;function s(t,a){return t+a}a.aylikSiparisSayisi=e.reduce(s),a.chartdataAylik={labels:["Nakit","Kredi Kartı","Kapıda Ödeme"],datasets:[{backgroundColor:["rgba(66,134,121,0.15)"],borderColor:"#1f8ef1",borderWidth:2,borderDash:[],borderDashOffset:0,label:"Aylık Ödeme Tipleri",data:[a.aylikNakitData,a.aylikKrediData,a.aylikKapidaData]}]},a.Aylikoptions={maintainAspectRatio:!1,legend:{display:!1},responsive:!0,tooltips:{backgroundColor:"#f5f5f5",titleFontColor:"#333",bodyFontColor:"#666",bodySpacing:4,xPadding:12,mode:"nearest",intersect:0,position:"nearest"},scales:{yAxes:[{gridLines:{drawBorder:!1,color:"rgba(29,140,248,0.1)",zeroLineColor:"transparent"},ticks:{suggestedMin:0,suggestedMax:5,fontColor:"#9e9e9e"}}],xAxes:[{gridLines:{drawBorder:!1,color:"rgba(29,140,248,0.1)",zeroLineColor:"transparent"},ticks:{padding:20,fontColor:"#9e9e9e"}}]}},a.aylikLoaded=!0});case 8:case"end":return t.stop()}},t)}));function a(){return t.apply(this,arguments)}return a}(),created:function(){var t=this,a="admin/api/alluser";B.a.get(a).then(function(a){t.userCount=a.data})}},I=U,Y=Object(v["a"])(I,D,R,!1,null,null,null),G=Y.exports,Z={name:"Home",components:{Dashboard:G}},q=Z,J=Object(v["a"])(q,E,z,!1,null,null,null),Q=J.exports,V=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",[e("Products")],1)},X=[],tt=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"main-panel"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-md-3"}),e("div",{staticClass:"col-md-9"},[e("table",{staticClass:"table"},[t._m(0),e("tbody",t._l(t.itemList,function(a,s){return e("tr",{key:a.id},[e("td",[t._v(t._s(s))]),e("td",[t._v(t._s(a.name))]),e("td",[t._v(t._s(a.price)+" ₺")]),e("td",[t._v(t._s(a.categoryName))]),t._m(1,!0)])}),0)])])])])},at=[function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("thead",{staticClass:" text-primary"},[e("tr",[e("th",{attrs:{scope:"col"}},[t._v("#")]),e("th",{attrs:{scope:"col"}},[t._v("Yemek Adı")]),e("th",{attrs:{scope:"col"}},[t._v("Fiyatı")]),e("th",{attrs:{scope:"col"}},[t._v("Kategori")]),e("th",{attrs:{scope:"col"}},[t._v("İşlem")])])])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("td",[e("button",{staticClass:"btn-xs btn-fill btn-danger"},[t._v("Sil")])])}],et={data:function(){return{itemList:[]}},created:function(){var t=this,a="admin/api/allproduct";B.a.get(a).then(function(a){console.log(a.data),t.itemList=a.data})}},st=et,it=Object(v["a"])(st,tt,at,!1,null,null,null),rt=it.exports,nt={components:{Products:rt}},ot=nt,lt=Object(v["a"])(ot,V,X,!1,null,null,null),ct=lt.exports,dt=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"main-panel"},[e("div",{staticClass:"row",staticStyle:{"margin-top":"70px"}},[e("div",{staticClass:"col-md-2"}),e("div",{staticClass:"col-md-6"},[e("div",{staticClass:"card"},[t._m(0),e("div",{staticClass:"card-body"},[e("form",[e("div",{staticClass:"row"},[t._m(1),e("div",{staticClass:"col-md-3 px-md-1"},[e("div",{staticClass:"form-group"},[e("label",[t._v("Kullanıcı Adı")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.kurye.username,expression:"kurye.username"}],staticClass:"form-control",attrs:{type:"text",placeholder:"Kullanıcı Adı"},domProps:{value:t.kurye.username},on:{input:function(a){a.target.composing||t.$set(t.kurye,"username",a.target.value)}}})])]),e("div",{staticClass:"col-md-4 pl-md-1"},[e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"exampleInputEmail1"}},[t._v("Şifre ")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.kurye.password,expression:"kurye.password"}],staticClass:"form-control",attrs:{type:"password",placeholder:"Şifre"},domProps:{value:t.kurye.password},on:{input:function(a){a.target.composing||t.$set(t.kurye,"password",a.target.value)}}})])])]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-md-6 pr-md-1"},[e("div",{staticClass:"form-group"},[e("label",[t._v("Ad ")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.kurye.firstname,expression:"kurye.firstname"}],staticClass:"form-control",attrs:{type:"text",placeholder:"Ad"},domProps:{value:t.kurye.firstname},on:{input:function(a){a.target.composing||t.$set(t.kurye,"firstname",a.target.value)}}})])]),e("div",{staticClass:"col-md-6 pl-md-1"},[e("div",{staticClass:"form-group"},[e("label",[t._v("Soyad ")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.kurye.lastname,expression:"kurye.lastname"}],staticClass:"form-control",attrs:{type:"text",placeholder:"Soyad"},domProps:{value:t.kurye.lastname},on:{input:function(a){a.target.composing||t.$set(t.kurye,"lastname",a.target.value)}}})])])])])]),e("div",{staticClass:"card-footer"},[e("button",{staticClass:"btn btn-fill btn-primary",attrs:{type:"submit"},on:{click:t.sendDetail}},[t._v("Kaydet")])])])]),e("div",{staticClass:"col-md-4"},[e("div",{staticClass:"card card-user"},[e("div",{staticClass:"card-body"},[e("div",{staticClass:"table-responsive",staticStyle:{overflow:"auto"}},[e("table",{staticClass:"table tablesorter ",attrs:{id:""}},[t._m(2),e("tbody",t._l(t.kuryeList,function(a){return e("tr",{key:a.id},[e("td",[t._v("\n                   "+t._s(a.firstname)+"\n                  ")]),e("td",[t._v("\n                   "+t._s(a.lastname)+"\n                  \n                  ")]),e("td",[t._v("\n                   "+t._s(a.date)+"\n                  \n                  ")]),e("td",{staticClass:"text-center"},[t._v("\n                   "+t._s(a.siparis)+"\n                    \n                  ")]),e("td",{staticClass:"text-center"},[e("button",{staticClass:"btn btn-fill btn-info",on:{click:function(e){return t.deleteKurye(a.id)}}},[t._v("Sil")])])])}),0)])])])])])])])},ut=[function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"card-header"},[e("h5",{staticClass:"title"},[t._v("Kurye Ekle")])])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"col-md-5 pr-md-1"},[e("div",{staticClass:"form-group"},[e("label",[t._v("Şirket ")]),e("input",{staticClass:"form-control",attrs:{type:"text",disabled:"",placeholder:"Zeki Usta"}})])])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("thead",{staticClass:" text-primary"},[e("tr",[e("th",[t._v("\n                    Ad\n                  ")]),e("th",[t._v("\n                    Soyad\n                  ")]),e("th",[t._v("\n                    İşe Başlama Tarihi\n                  ")]),e("th",{staticClass:"text-center"},[t._v("\n                    Toplam Sipariş\n                  ")])])])}],pt=e("1940"),mt=e.n(pt),vt={data:function(){return{kuryeList:[],kurye:{username:"",password:"",firstname:"",lastname:""}}},methods:{sendDetail:function(){var t="admin/api/newKurye";""!=this.kurye.username&&""!=this.kurye.password&&""!=this.kurye.firstname&&""!=this.kurye.lastname?B.a.post(t,this.kurye).then(function(t){"ok"==t.data.status&&mt()("Kurye Başarıyla Eklendi!","","success",{button:"Devam Et!",timer:1500}).then(function(){location.reload()})}):mt()("Kurye Eklenemedi!","","warning",{button:"Devam Et!",timer:1500})},deleteKurye:function(t){var a="admin/api/kurye/del/"+t;B.a.get(a).then(function(t){"ok"==t.data.status?mt()("Kurye Başarıyla Silindi!","","success",{button:"Devam Et!",timer:1500}).then(function(){location.reload()}):mt()("Kurye Silinemedi!","","warning",{button:"Devam Et!",timer:1500})})}},created:function(){var t=this,a="admin/api/allKurye";B.a.get(a).then(function(a){t.kuryeList=a.data})}},ft=vt,bt=Object(v["a"])(ft,dt,ut,!1,null,null,null),ht=bt.exports,gt=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"main-panel"},[e("div",{staticClass:"row",staticStyle:{"margin-top":"70px"}},[e("div",{staticClass:"col-md-2"}),e("div",{staticClass:"col-md-9"},[e("table",{staticClass:"table"},[t._m(0),e("tbody",t._l(t.itemList,function(a,s){return e("tr",{key:a.id},[e("td",[t._v(t._s(s))]),e("td",[t._v(t._s(a.name))]),t._m(1,!0)])}),0)])])])])},yt=[function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("thead",{staticClass:" text-primary"},[e("tr",[e("th",{attrs:{scope:"col"}},[t._v("#")]),e("th",{attrs:{scope:"col"}},[t._v("Kategori Adı")]),e("th",{attrs:{scope:"col"}},[t._v("İşlem")])])])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("td",[e("button",{staticClass:"btn-xs btn-fill btn-danger"},[t._v("Sil")])])}],Ct={data:function(){return{itemList:[]}},created:function(){var t=this,a="admin/api/allCateogry";B.a.get(a).then(function(a){console.log(a.data),t.itemList=a.data})}},kt=Ct,_t=Object(v["a"])(kt,gt,yt,!1,null,null,null),jt=_t.exports,xt=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"main-panel"},[e("div",{staticClass:"row",staticStyle:{"margin-top":"75px","margin-left":"30px"}},[e("div",{staticClass:"col-md-2"}),e("div",{staticClass:"col-md-10"},[e("div",{staticClass:"card"},[t._m(0),e("div",{staticClass:"card-body"},[e("form",[e("div",{staticClass:"row"},[t._m(1),e("div",{staticClass:"col-md-3 px-md-1"},[e("div",{staticClass:"form-group"},[e("label",[t._v("Ürün Adı")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.product.name,expression:"product.name"}],staticClass:"form-control",attrs:{type:"text",placeholder:"Ürün Adı"},domProps:{value:t.product.name},on:{input:function(a){a.target.composing||t.$set(t.product,"name",a.target.value)}}})])]),e("div",{staticClass:"col-md-4 pl-md-1"},[e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"exampleInputEmail1"}},[t._v("Fiyat ")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.product.price,expression:"product.price"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Fiyat"},domProps:{value:t.product.price},on:{input:function(a){a.target.composing||t.$set(t.product,"price",a.target.value)}}})])])]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-md-3 pr-md-1"},[e("div",{staticClass:"form-group"},[e("label",[t._v("Kategori ")]),e("select",{directives:[{name:"model",rawName:"v-model",value:t.product.categoryId,expression:"product.categoryId"}],staticClass:"form-control",on:{change:function(a){var e=Array.prototype.filter.call(a.target.options,function(t){return t.selected}).map(function(t){var a="_value"in t?t._value:t.value;return a});t.$set(t.product,"categoryId",a.target.multiple?e:e[0])}}},[e("option",{attrs:{disabled:"",value:""}},[t._v("Seçiniz ")]),t._l(t.categoryList,function(a){return e("option",{key:a.id,domProps:{value:a.id}},[t._v(t._s(a.id)+" : "+t._s(a.name))])})],2)])]),e("div",{staticClass:"col-md-6 pl-md-2"},[e("div",{staticClass:"form-group"},[e("label",[t._v("Açıklama ")]),e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.product.card_text,expression:"product.card_text"}],staticClass:"form-control",attrs:{type:"text",placeholder:"Açıklama"},domProps:{value:t.product.card_text},on:{input:function(a){a.target.composing||t.$set(t.product,"card_text",a.target.value)}}})])])])])]),e("div",{staticClass:"card-footer"},[e("button",{staticClass:"btn btn-fill btn-primary",attrs:{type:"submit"},on:{click:t.addProduct}},[t._v("Kaydet")])])])])]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-md-2"}),e("div",{staticClass:"col-md-9",staticStyle:{"margin-left":"20px"}},[e("div",{staticClass:"card card-user"},[e("div",{staticClass:"card-body"},[e("div",{staticClass:"table-responsive",staticStyle:{overflow:"auto"}},[e("table",{staticClass:"table tablesorter ",attrs:{id:""}},[t._m(2),e("tbody",t._l(t.productList,function(a){return e("tr",{key:a.id},[e("td",[t._v("\n                  "+t._s(a.name)+" \n                  \n          \n                  ")]),e("td",[t._v("\n                  "+t._s(a.price)+" ₺\n\n                  ")]),e("td",[t._v("\n                  "+t._s(a.categoryName)+"\n                  \n                  ")]),e("td",{staticClass:"text-center"},[t._v("\n                  "+t._s(a.cardText)+"\n                 \n                    \n                  ")]),e("td",{staticClass:"text-center"},[e("button",{staticClass:"btn btn-fill btn-info",on:{click:function(e){return t.deleteProduct(a.id)}}},[t._v("Sil")])])])}),0)])])])])])])])},wt=[function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"card-header"},[e("h5",{staticClass:"title"},[t._v("Ürün Ekle")])])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"col-md-5 pr-md-1"},[e("div",{staticClass:"form-group"},[e("label",[t._v("Şirket ")]),e("input",{staticClass:"form-control",attrs:{type:"text",disabled:"",placeholder:"Zeki Usta"}})])])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("thead",{staticClass:" text-primary"},[e("tr",[e("th",[t._v("\n                    Ürün Adı\n                  ")]),e("th",[t._v("\n                    Fiyatı\n                  ")]),e("th",[t._v("\n                    Kategori\n                  ")]),e("th",{staticClass:"text-center"},[t._v("\n                    Açıklama\n                  ")])])])}],St=e("bd86"),Et=(e("7f7f"),{data:function(){return{categoryList:[],productList:[],kuryeList:[],product:{name:"",price:"",card_text:"",numberProduct:0,categoryId:0,store:""}}},methods:Object(St["a"])({deleteProduct:function(t){var a="admin/api/product/del/"+t;B.a.get(a)},addProduct:function(){var t="admin/api/newProduct";""!=this.product.name&&""!=this.product.price&&null!=this.product.categoryId?B.a.post(t,this.product).then(function(t){console.log(t),"ok"==t.data.status&&mt()("Ürün Başarıyla Eklendi!","","success",{button:"Devam Et!",timer:1500}).then(function(){location.reload()})}):mt()("Ürün Eklenemedi!","","warning",{button:"Devam Et!",timer:1500})}},"deleteProduct",function(t){var a="admin/api/product/del/"+t;B.a.get(a).then(function(t){console.log(t),"ok"==t.data.status?mt()("Ürün Başarıyla Silindi!","","success",{button:"Devam Et!",timer:1500}).then(function(){location.reload()}):mt()("Ürün Silinemedi!","","warning",{button:"Devam Et!",timer:1500})})}),created:function(){var t=this,a="admin/api/allCateogry";B.a.get(a).then(function(a){t.categoryList=a.data});var e="admin/api/allproduct";B.a.get(e).then(function(a){t.productList=a.data})}}),zt=Et,Dt=Object(v["a"])(zt,xt,wt,!1,null,null,null),Rt=Dt.exports,Kt=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"main-panel"},[e("div",{staticClass:"row ",staticStyle:{"margin-top":"50px"}},[e("div",{staticClass:"col-md-2"}),e("div",{staticClass:"col-md-3"},[e("div",[e("div",{staticClass:"card-body"},[e("div",{staticClass:"chart-area"},[e("h3",{staticClass:"card-title"},[t._v("\n                  Günlük Rezervasyon Sayısı\n                  ")]),t.loaded?e("BarChart",{staticStyle:{height:"100%"},attrs:{chartdata:t.chartdata,options:t.options}}):t._e(),e("h3",{staticClass:"card-title"},[t._v("\n                  Aylık Rezervasyon Sayısı\n                  ")]),t.loaded?e("BarChart",{staticStyle:{height:"100%"},attrs:{chartdata:t.chartdata1,options:t.options}}):t._e()],1)])])]),e("div",{staticClass:"col-md-3"},[e("div",[e("div",{staticClass:"card-body"},[e("div",{staticClass:"chart-area"},[e("h3",{staticClass:"card-title"},[t._v("\n                  Yıllık Rezervasyon Sayısı\n                  ")]),t.loaded?e("LineChart",{staticStyle:{height:"100%"},attrs:{chartdata:t.chartdata2,options:t.options}}):t._e()],1)])])])])])},At=[],Bt={components:{BarChart:F,LineChart:N},data:function(){return{loaded:!1,chartdata:null,chartdata1:null,chartdata2:null,options:null,"günlükRezervasyon":{toplam:null,kabul:0,red:0,bekleyen:0},aylikRezervasyon:{toplam:null,kabul:0,red:0,bekleyen:0},yillikRezervasyon:{toplam:null,kabul:0,red:0,bekleyen:0}}},methods:{},mounted:function(){var t=Object(K["a"])(regeneratorRuntime.mark(function t(){var a=this;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,B.a.get("admin/api/rezervasyon/thisday").then(function(t){a.günlükRezervasyon.toplam=t.data.toplam,a.günlükRezervasyon.bekleyen=t.data.wait,a.günlükRezervasyon.red=t.data.red,a.günlükRezervasyon.kabul=t.data.ok,console.log(a.günlükRezervasyon)});case 2:return t.next=4,B.a.get("admin/api/rezervasyon/thismonth").then(function(t){a.aylikRezervasyon.toplam=t.data.toplam,a.aylikRezervasyon.bekleyen=t.data.wait,a.aylikRezervasyon.red=t.data.red,a.aylikRezervasyon.kabul=t.data.ok,console.log(a.aylikRezervasyon)});case 4:return t.next=6,B.a.get("admin/api/rezervasyon/thisyear").then(function(t){a.yillikRezervasyon.toplam=t.data.toplam,a.yillikRezervasyon.bekleyen=t.data.wait,a.yillikRezervasyon.red=t.data.red,a.yillikRezervasyon.kabul=t.data.ok,console.log(a.yillikRezervasyon)});case 6:this.chartdata={labels:["Bekleyen ","Kabul Edilen ","Reddedilen"],datasets:[{backgroundColor:["rgba(66,134,121,0.15)","rgba(66,134,121,0.15)","rgba(66,134,121,0.15)"],borderColor:"#1f8ef1",borderWidth:2,borderDash:[],borderDashOffset:0,pointBackgroundColor:"#00d6b4",pointBorderColor:"rgba(255,255,255,0)",pointHoverBackgroundColor:"#00d6b4",pointBorderWidth:10,pointHoverRadius:4,pointHoverBorderWidth:15,pointRadius:4,label:"Rezervasyon Sayıları",data:[this.günlükRezervasyon.bekleyen,this.günlükRezervasyon.kabul,this.günlükRezervasyon.red]}]},this.chartdata1={labels:["Bekleyen ","Kabul Edilen ","Reddedilen"],datasets:[{backgroundColor:["rgba(66,134,121,0.15)","rgba(66,134,121,0.15)","rgba(66,134,121,0.15)"],borderColor:"#1f8ef1",borderWidth:2,borderDash:[],borderDashOffset:0,pointBackgroundColor:"#00d6b4",pointBorderColor:"rgba(255,255,255,0)",pointHoverBackgroundColor:"#00d6b4",pointBorderWidth:10,pointHoverRadius:4,pointHoverBorderWidth:15,pointRadius:4,label:"Ödeme Tipleri",data:[this.aylikRezervasyon.bekleyen,this.aylikRezervasyon.kabul,this.aylikRezervasyon.red]}]},this.chartdata2={labels:["Bekleyen ","Kabul Edilen ","Reddedilen"],datasets:[{backgroundColor:["#34495e"],borderColor:"#1f8ef1",borderWidth:2,borderDash:[],borderDashOffset:0,pointBackgroundColor:"#00d6b4",pointBorderColor:"rgba(255,255,255,0)",pointHoverBackgroundColor:"#00d6b4",pointBorderWidth:10,pointHoverRadius:4,pointHoverBorderWidth:15,pointRadius:4,label:"Ödeme Tipleri",data:[this.yillikRezervasyon.bekleyen,this.yillikRezervasyon.kabul,this.yillikRezervasyon.red]}]},this.options={legend:{display:!1},responsive:!0,tooltips:{backgroundColor:"#f5f5f5",titleFontColor:"#333",bodyFontColor:"#666",bodySpacing:4,xPadding:12,mode:"nearest",intersect:0,position:"nearest"},scales:{yAxes:[{gridLines:{drawBorder:!1,color:"rgba(29,140,248,0.1)",zeroLineColor:"transparent"},ticks:{suggestedMin:0,suggestedMax:20,padding:20,fontColor:"#32325d"}}],xAxes:[{ticks:{padding:20,fontColor:"#9e9e9e"}}]}},this.loaded=!0;case 11:case"end":return t.stop()}},t,this)}));function a(){return t.apply(this,arguments)}return a}(),created:function(){}},$t=Bt,Ot=Object(v["a"])($t,Kt,At,!1,null,null,null),Lt=Ot.exports,Pt=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"main-panel"},[e("div",{staticClass:"row",staticStyle:{"margin-top":"70px","margin-left":"30px"}},[e("div",{staticClass:"col-md-2"}),e("div",{staticClass:"col-md-6"},[e("div",{staticClass:"card"},[t._m(0),e("div",{staticClass:"card-body"},[e("form",[e("div",{staticClass:"row"},[t._m(1),e("div",{staticClass:"col-md-3 px-md-1"},[e("div",{staticClass:"form-group"},[e("label",[t._v("Mail")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.kullanici.email,expression:"kullanici.email"}],staticClass:"form-control",attrs:{type:"email",placeholder:"Email "},domProps:{value:t.kullanici.email},on:{input:function(a){a.target.composing||t.$set(t.kullanici,"email",a.target.value)}}})])]),e("div",{staticClass:"col-md-4 pl-md-1"},[e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"exampleInputEmail1"}},[t._v("Şifre ")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.kullanici.password,expression:"kullanici.password"}],staticClass:"form-control",attrs:{type:"password",placeholder:"Şifre"},domProps:{value:t.kullanici.password},on:{input:function(a){a.target.composing||t.$set(t.kullanici,"password",a.target.value)}}})])])]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-md-6 pr-md-1"},[e("div",{staticClass:"form-group"},[e("label",[t._v("Ad-Soyad ")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.kullanici.name,expression:"kullanici.name"}],staticClass:"form-control",attrs:{type:"text",placeholder:"Ad-Soyad"},domProps:{value:t.kullanici.name},on:{input:function(a){a.target.composing||t.$set(t.kullanici,"name",a.target.value)}}})])]),e("div",{staticClass:"col-md-6 pl-md-1"},[e("div",{staticClass:"form-group"},[e("label",[t._v("Yetki ")]),e("select",{directives:[{name:"model",rawName:"v-model",value:t.kullanici.authority,expression:"kullanici.authority"}],staticClass:"form-control",on:{change:function(a){var e=Array.prototype.filter.call(a.target.options,function(t){return t.selected}).map(function(t){var a="_value"in t?t._value:t.value;return a});t.$set(t.kullanici,"authority",a.target.multiple?e:e[0])}}},[e("option",{attrs:{disabled:"",value:""}},[t._v("Seçiniz ")]),t._l(t.yetkiList,function(a){return e("option",{key:a.number,domProps:{value:a.number}},[t._v(t._s(a.derece)+" - "+t._s(a.number))])})],2)])])])])]),e("div",{staticClass:"card-footer"},[e("button",{staticClass:"btn btn-fill btn-primary",attrs:{type:"submit"},on:{click:t.sendUserDetail}},[t._v("Ekle")])])])])]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-lg-2",staticStyle:{"margin-left":"20px"}}),e("div",{staticClass:"col-md-8"},[e("div",{staticClass:"card card-user"},[e("div",{staticClass:"card-body"},[e("div",{staticClass:"table-responsive",staticStyle:{overflow:"auto"}},[e("table",{staticClass:"table tablesorter ",attrs:{id:""}},[t._m(2),e("tbody",t._l(t.userList,function(a){return e("tr",{key:a.id},[e("td",[t._v("\n                  "+t._s(a.id)+"\n                  ")]),e("td",[t._v("\n                  "+t._s(a.email)+"\n                  \n                  \n                  ")]),e("td",[t._v("\n                  "+t._s(a.name)+"\n                 \n                  \n                  ")]),e("td",{staticClass:"text-center"},[e("toggle-button",{attrs:{value:0==a.authority,color:"#82C7EB",sync:!0,labels:!0},on:{change:function(e){return t.updateRoles(0,a.id)}}})],1),e("td",{staticClass:"text-center"},[e("toggle-button",{attrs:{value:1==a.authority||2==a.authority,color:"#82C7EB",sync:!0,labels:!0},on:{change:function(e){return t.updateRoles(1,a.id)}}})],1),e("td",{staticClass:"text-center"},[e("toggle-button",{attrs:{value:2==a.authority,color:"#82C7EB",sync:!0,labels:!0},on:{change:function(e){return t.updateRoles(2,a.id)}}})],1),e("td",{staticClass:"text-center"},[e("button",{staticClass:"btn btn-fill btn-info",on:{click:function(e){return t.deleteKullanici(a.id)}}},[t._v("Sil")])])])}),0)])])])])])])])},Tt=[function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"card-header"},[e("h5",{staticClass:"title"},[t._v("Kullanıcı Ekle")])])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"col-md-5 pr-md-1"},[e("div",{staticClass:"form-group"},[e("label",[t._v("Şirket ")]),e("input",{staticClass:"form-control",attrs:{type:"text",disabled:"",placeholder:"Zeki Usta"}})])])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("thead",{staticClass:" text-primary"},[e("tr",[e("th",[t._v("\n                    İd\n                  ")]),e("th",[t._v("\n                    Email\n                  ")]),e("th",[t._v("\n                   Ad-Soyad\n                  ")]),e("th",{staticClass:"text-center"},[t._v("\n                 Yetki Alma\n                  ")]),e("th",{staticClass:"text-center"},[t._v("\n                 Okuma Yetkisi\n                  ")]),e("th",{staticClass:"text-center"},[t._v("\n                 Yazma Yetkisi\n                  ")])])])}],Nt={data:function(){return{userList:[],yetkiList:[],kullanici:{email:"",password:"",name:"",authority:""}}},methods:{updateRoles:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=0;if(null!=t&&null!=a){this.userList.map(function(s){return s.id==a&&(0==t?e=s.authority=s.authority==t?1:t:1==t?e=s.authority=s.authority==t||2==s.authority?0:t:2==t&&(e=s.authority=s.authority==t?1:t)),t});var s={id:a,authority:e};this.sendUserUpdate(s)}else console.log("Boş değerler var")},sendUserUpdate:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(null!=t){var a="admin/api/updatecalisan";B.a.post(a,t).then(function(t){mt()("Değiştirildi",{button:"Devam Et!",timer:2e3})})}},sendUserDetail:function(){var t="admin/api/newCalisan";""!=this.kullanici.mail&&""!=this.kullanici.password&&""!=this.kullanici.name&&""!=this.kullanici.authority?B.a.post(t,this.kullanici).then(function(t){console.log(t.data),"ok"==t.data.status&&mt()("Kullanıcı Başarıyla Eklendi!","","success",{button:"Devam Et!",timer:1500}).then(function(){location.reload()})}):mt()("Kullanıcı Eklenemedi!","","warning",{button:"Devam Et!",timer:1500})},deleteKullanici:function(t){var a="admin/api/delCalisan/"+t;B.a.get(a).then(function(t){"ok"==t.data.status?mt()("Kullanıcı Başarıyla Silindi!","","success",{button:"Devam Et!",timer:1500}).then(function(){location.reload()}):mt()("Kullanıcı Silinemedi!","","warning",{button:"Devam Et!",timer:1500})})}},created:function(){var t=this,a="admin/api/allWorker";B.a.get(a).then(function(a){console.log(a.data),t.userList=a.data})}},Ht=Nt,Wt=Object(v["a"])(Ht,Pt,Tt,!1,null,null,null),Mt=Wt.exports,Ft=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"main-panel"},[e("div",{staticClass:"row",staticStyle:{"margin-top":"70px","margin-left":"30px"}},[e("div",{staticClass:"col-md-2"}),e("div",{staticClass:"col-md-10"},[e("div",{staticClass:"card"},[t._m(0),e("div",{staticClass:"card-body"},[e("v-client-table",{attrs:{data:t.tableData,columns:t.columns,options:t.options}})],1)])]),e("div",{staticClass:"col-md-4"})])])},Ut=[function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"card-header"},[e("h5",{staticClass:"title"},[t._v("Ürün Takip")])])}],It=e("9ebe"),Yt={data:function(){return{columns:["name","count"],tableData:[{}],options:{headings:{name:"Ürün Adı",count:"Satış Sayısı"},texts:{filterPlaceholder:"Aranacak Kelimeyi Giriniz",filter:"Ürün Arama :",noResults:"Aramanızla ilgili eşleşme bulunamadı!",count:" {from} ile {to} arası --\x3e  {count} Kayıt Bulunmaktadır.|{count} records|One record",limit:"Kayıtlar"},sortable:["count","name"],filterable:["count","name"],sortIcon:{base:"fa",is:"fa-sort",up:"fa-sort-asc",down:"fa-sort-desc"}}}},methods:{},created:function(){var t=this,a="admin/api/orderDetay/year";B.a.get(a).then(function(a){console.log(a.data),t.tableData=a.data})}},Gt=Yt,Zt=Object(v["a"])(Gt,Ft,Ut,!1,null,null,null),qt=Zt.exports,Jt=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"main-panel"},[e("div",{staticClass:"row",staticStyle:{"margin-top":"75px","margin-left":"30px"}},[e("div",{staticClass:"col-md-2"}),e("div",{staticClass:"col-md-10"},[e("div",{staticClass:"card"},[t._m(0),e("div",{staticClass:"card-body"},[e("form",[e("div",{staticClass:"row"},[t._m(1),e("div",{staticClass:"col-md-3 px-md-1"},[e("div",{staticClass:"form-group"},[e("label",[t._v("Kategori Adı")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.category.name,expression:"category.name"}],staticClass:"form-control",attrs:{type:"text",placeholder:"Kategori Adı"},domProps:{value:t.category.name},on:{input:function(a){a.target.composing||t.$set(t.category,"name",a.target.value)}}})])]),e("div",{staticClass:"col-md-4 pl-md-1"},[e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"exampleInputEmail1"}},[t._v("Kategori Resmi ")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.category.image,expression:"category.image"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Resim"},domProps:{value:t.category.image},on:{input:function(a){a.target.composing||t.$set(t.category,"image",a.target.value)}}})])])])])]),e("div",{staticClass:"card-footer text"},[e("button",{staticClass:"btn btn-fill btn-primary",attrs:{type:"submit"},on:{click:t.addProduct}},[t._v("Kaydet")])])])])]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-md-2"}),e("div",{staticClass:"col-md-9",staticStyle:{"margin-left":"20px"}},[e("div",{staticClass:"card card-user"},[e("div",{staticClass:"card-body"},[e("div",{staticClass:"table-responsive",staticStyle:{overflow:"auto"}},[e("table",{staticClass:"table tablesorter ",attrs:{id:""}},[t._m(2),e("tbody",[e("tr",[e("td",[t._v("\n                 Soğuklar\n                  \n          \n                  ")]),e("td",[t._v("\n                  assets/resim.jpg\n\n                  ")]),e("td",{staticClass:"text-center"},[e("button",{staticClass:"btn btn-fill btn-info",on:{click:function(a){return t.deleteProduct(t.product.id)}}},[t._v("Sil")])])])])])])])])])])])},Qt=[function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"card-header"},[e("h5",{staticClass:"title"},[t._v("Kategori Ekle")])])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"col-md-5 pr-md-1"},[e("div",{staticClass:"form-group"},[e("label",[t._v("Şirket ")]),e("input",{staticClass:"form-control",attrs:{type:"text",disabled:"",placeholder:"Zeki Usta"}})])])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("thead",{staticClass:" text-primary"},[e("tr",[e("th",[t._v("\n                  Kategori Adı\n                  ")]),e("th",[t._v("\n                    Dosya Yolu\n                  ")])])])}],Vt={data:function(){return{category:{name:"",image:""}}},methods:Object(St["a"])({deleteProduct:function(t){var a="admin/api/product/del/"+t;B.a.get(a)},addProduct:function(){var t="admin/api/newCategory";""!=this.category.name&&this.category.img?B.a.post(t,this.category).then(function(t){console.log(t),"ok"==t.data.status&&mt()("Kategori Başarıyla Eklendi!","","success",{button:"Devam Et!",timer:1500}).then(function(){location.reload()})}):mt()("Ürün Eklenemedi!","","warning",{button:"Devam Et!",timer:1500})}},"deleteProduct",function(t){var a="admin/api/product/del/"+t;B.a.get(a).then(function(t){console.log(t),"ok"==t.data.status?mt()("Ürün Başarıyla Silindi!","","success",{button:"Devam Et!",timer:1500}).then(function(){location.reload()}):mt()("Ürün Silinemedi!","","warning",{button:"Devam Et!",timer:1500})})}),created:function(){var t=this,a="admin/api/allCateogry";B.a.get(a).then(function(a){t.categoryList=a.data});var e="admin/api/allproduct";B.a.get(e).then(function(a){t.productList=a.data})}},Xt=Vt,ta=Object(v["a"])(Xt,Jt,Qt,!1,null,null,null),aa=ta.exports,ea=[{path:"*",component:Q},{path:"/dashboard",name:"Home",component:Q},{path:"/products",name:"Products",component:ct},{path:"/kurye",name:"Kurye",component:ht},{path:"/categorys",name:"Kategorys",component:jt},{path:"/addproduct",name:"Ürün Ekle",component:Rt},{path:"/addcategory",name:"Kategori Ekle",component:aa},{path:"/rezervasyon",name:"Rezervasyon",component:Lt},{path:"/adduser",name:"Kullanici Ekle",component:Mt},{path:"/satistakip",name:"Satis Takip ",component:qt}],sa=e("8c4f"),ia={datas:[]},ra={allDatas:function(t){return t.datas}},na={testRequest:function(){var t=Object(K["a"])(regeneratorRuntime.mark(function t(a){var e,s;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return e=a.commit,t.next=3,B.a.get("http://localhost:81/admin/api/thisdayorder");case 3:s=t.sent,console.log(s.dat),e("setDatas",s.data);case 6:case"end":return t.stop()}},t)}));function a(a){return t.apply(this,arguments)}return a}()},oa={setDatas:function(t,a){return t.datas=a}},la={state:ia,getters:ra,actions:na,mutations:oa};o["default"].use($["a"]);var ca=new $["a"].Store({modules:{dashboard:la}}),da=e("9483");Object(da["a"])("".concat("/","service-worker.js"),{ready:function(){console.log("App is being served from cache by a service worker.\nFor more details, visit https://goo.gl/AFskqB")},registered:function(){console.log("Service worker has been registered.")},cached:function(){console.log("Content has been cached for offline use.")},updatefound:function(){console.log("New content is downloading.")},updated:function(){console.log("New content is available; please refresh.")},offline:function(){console.log("No internet connection found. App is running in offline mode.")},error:function(t){console.error("Error during service worker registration:",t)}});var ua=e("f206"),pa=e.n(ua);o["default"].use(pa.a),o["default"].use(sa["a"]),o["default"].use(It["ClientTable"]),o["default"].config.productionTip=!1;var ma=new sa["a"]({routes:ea,mode:"history"});new o["default"]({render:function(t){return t(S)},router:ma,store:ca}).$mount("#app")}});
  //# sourceMappingURL=app.09706599.js.map