app.blade.php_4 44 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  6. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
  7. <meta name="csrf-token" content="MOPUhVXZcUk6jStOhUNBIjlzjQOz911kSUPoP7gN">
  8. <meta property="og:image" itemprop="image" content="https://admin.meemapp.net/public/assets/images/meem_meta.png"> <title>meem</title>
  9. <meta name="description" content="meem food ordering system">
  10. <meta property="og:type" content="website" />
  11. <!-- Favicon Icon -->
  12. <link rel="icon" type="image/png" href="{!! env('APP_ASSETS') !!}images/favicon.ico">
  13. <link rel="apple-touch-icon" sizes="128x128" href="{!! env('APP_ASSETS') !!}images/favicon.ico">
  14. <link rel="shortcut icon" sizes="128x128" href="{!! env('APP_ASSETS') !!}images/favicon.ico">
  15. <!-- Feather Icon-->
  16. <link href="{!! env('APP_ASSETS') !!}css/vendors_css.css" rel="stylesheet" type="text/css">
  17. <!-- Fontawesome Icon-->
  18. <link href="{!! env('APP_ASSETS') !!}css/style.css" rel="stylesheet" type="text/css">
  19. <link href="{!! env('APP_ASSETS') !!}css/style_new.css" rel="stylesheet" type="text/css">
  20. {{--
  21. <link href="{!! env('APP_ASSETS') !!}css/style_rtl.css" rel="stylesheet" type="text/css">--}}
  22. <!-- Bootstrap Css -->
  23. <link href="{!! env('APP_ASSETS') !!}css/skin_color.css" rel="stylesheet"><!-- Custom Css -->
  24. <link href="{!! env('APP_ASSETS') !!}css/sidebar-new.css?v=1.4" rel="stylesheet" type="text/css">
  25. @yield('css')
  26. <style>
  27. .btn-default{
  28. border-color: transparent;
  29. }
  30. .main-header .logo .logo-lg{ padding-left: 13px;}
  31. label.error{
  32. color:#FF0000;
  33. }
  34. .sidebar-active{
  35. display: block !important;
  36. width: 100% !important;
  37. }
  38. .theme-primary .btn-primary{
  39. background-color: #ffab00;
  40. border-color: #ffab00;
  41. }
  42. .sidebar-active .sidebar-mini.sidebar-collapse .sidebar-menu > li > a > span{ display: block !important;}
  43. .sidebar-menu > li .badge {
  44. margin-left: 5px;
  45. width: 20px;
  46. height: 20px;
  47. padding-left: 4px;
  48. padding-top: 6px;
  49. border-radius: 100%;
  50. line-height: 9px;
  51. text-align: center;
  52. font-weight: 300;
  53. margin-top: 3px;
  54. display: none;
  55. }
  56. .main-header .navbar{
  57. margin-left: 16.29rem;
  58. }
  59. .new-order {
  60. background: rgb(110 195 82 / 50%) !important;
  61. color: #000;
  62. }
  63. .alert{ display: none}
  64. #loader{
  65. background: #fff url({!! env('APP_ASSETS') !!}images/preloaders/preloader.svg) no-repeat center center;
  66. left: 0px !important;
  67. top: 0;
  68. }
  69. .theme-primary .btn-primary:hover, .theme-primary .btn-primary:active, .theme-primary .btn-primary:focus, .theme-primary .btn-primary.active{
  70. background-color: #ffab00 !important;
  71. border-color: #ffab00 !important;
  72. }
  73. .sidebar-menu > li,.sidebar-menu > li:hover { margin-bottom: 2px}
  74. .theme-primary.light-skin .sidebar-menu > li.active > a {
  75. color: #fff;
  76. background-color: #FEC34D ;padding:0px 10px;
  77. }
  78. .theme-primary.light-skin .sidebar-menu > li:hover > a, .theme-primary.light-skin .sidebar-menu > li:active > a, .theme-primary.light-skin .sidebar-menu > li.active > a{
  79. padding:0px 4px 0 4px;
  80. transition: color 0.25s ease-in-out, background-color 0.25s ease-in-out, border-color 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
  81. }
  82. .sidebar-menu > li > a > i{
  83. margin-right: -2px;
  84. }
  85. #dropdownMenu2 {
  86. border-radius: 0px;
  87. background: #ffd684;
  88. text-align: left;
  89. padding-left: 23px;
  90. font-size: 14px;
  91. font-weight: 600;
  92. }
  93. .btn-secondary:hover, .btn-secondary:active, .btn-secondary:focus, .btn-secondary.active{
  94. background-color: #ffd684 !important;
  95. border-color: #ffd684 !important;
  96. }
  97. .dropdown-item:hover, .dropdown-item:focus {
  98. background-color: transparent;
  99. }
  100. #dropdownMenu2 i{
  101. font-size:1.5714285714rem
  102. }
  103. .sidebar-collapse .sidebar-menu.tree{margin-top: 10px}
  104. /* .theme-primary.light-skin .sidebar-menu > li.active > a > i{
  105. background-color: #FFAD12 !important;
  106. box-shadow: 0 4px 5px 0 #d4b483 !important;
  107. }*/
  108. .theme-primary.light-skin .sidebar-menu > li.active {
  109. background-color: rgba(76, 149, 221, 0);
  110. color: #000;
  111. border-left: 0px solid #000;
  112. }
  113. .theme-primary.light-skin .sidebar-menu > li.active > a > i{
  114. box-shadow: 0 4px 5px 0 rgb(0 0 0 / 50%);
  115. }
  116. .theme-primary.light-skin .sidebar-menu > li:hover > a > i, .theme-primary.light-skin .sidebar-menu > li:active > a > i, .theme-primary.light-skin .sidebar-menu > li.active > a > i{
  117. background-color: rgba(0, 0, 0, 0);
  118. margin-bottom: 5px;
  119. }
  120. ul.footer-drop{
  121. transform: translate(226px, 2px) !important;
  122. }
  123. .notification-badge{
  124. font-size: 75%;position: absolute;top: -2px !important;right: -13px;padding: 5px 10px;border-radius: 50%;background: red;color: white;
  125. }
  126. button .pull-right-container {
  127. position: absolute;
  128. right: calc(100% - 87%);
  129. top: calc(100% - 54%);
  130. margin-top: -7px;
  131. }
  132. @php
  133. $no_gap_pages = ['OrderListing','outlets-form','OutletEdit','outlets-address','outlets-delivery','outlets-pickup'];
  134. ;
  135. @endphp
  136. @if(in_array(Route::currentRouteName(),$no_gap_pages))
  137. .content-wrapper {
  138. width: calc(100% - 270px);
  139. background-color: #fff !important;
  140. }
  141. .fixed .content-wrapper {
  142. margin-top: 0px;
  143. margin-left: 270px;
  144. margin-left: 270px;
  145. }
  146. @else
  147. .content-wrapper {
  148. width: calc(100% - 300px);
  149. background-color: #fff !important;
  150. }
  151. .fixed .content-wrapper {
  152. margin-top: 0px;
  153. margin-left: 290px;
  154. }
  155. @endif
  156. @media (min-width: 850px) and (max-width: 1020px){
  157. .d-md-none{
  158. display: block !important;
  159. }
  160. .push-btn{
  161. display: none !important;
  162. }
  163. .main-sidebar,.fixed .multinav,.main-header div.logo-box{
  164. width: 16.29rem;
  165. }
  166. .sidebar-menu.tree {
  167. margin-top: 0px !important;
  168. margin-left: 0px !important;
  169. }
  170. .sidebar-menu {
  171. list-style: none;
  172. margin: 0 0px;
  173. padding: 10px 0px 50px 0px;
  174. }
  175. .light-skin .sidebar-menu > li > a > span {
  176. background-color: transparent !important;
  177. box-shadow: none !important;
  178. margin-left: 11px;
  179. -webkit-transform: none;
  180. font-size: 14px;
  181. }
  182. .theme-primary.light-skin .sidebar-menu > li:hover > a > i, .theme-primary.light-skin .sidebar-menu > li:active > a > i, .theme-primary.light-skin .sidebar-menu > li.active > a > i{
  183. margin-bottom: 0;
  184. }
  185. .sidebar-menu > li > a{
  186. padding: 1px 5px;
  187. }
  188. .theme-primary.light-skin .sidebar-menu > li.active {
  189. background-color: rgba(76, 149, 221, 0);
  190. color: #000;
  191. border-left: 0px solid #000;
  192. }
  193. .theme-primary.light-skin.sidebar-mini.sidebar-collapse .sidebar-menu > li > a > span{
  194. display: inline-block !important;
  195. background: transparent !important;
  196. font-size: 14px;
  197. }
  198. .theme-primary.light-skin.sidebar-mini.sidebar-collapse .sidebar-menu > li.active > a > span{
  199. background: transparent !important; font-size: 14px;
  200. }
  201. .sidebar-collapse .sidebar-menu > li > a {
  202. padding: 1px 12px;
  203. }
  204. .main-sidebar .dropdown{
  205. width: 228px;
  206. }
  207. .sidebar-mini.sidebar-collapse .dropdown button > span{ display: inline-block !important; }
  208. .add-outlet{ width: 200px; }
  209. }
  210. @media only screen
  211. and (min-device-width: 768px)
  212. and (max-device-width: 1024px)
  213. and (orientation: portrait)
  214. and (-webkit-min-device-pixel-ratio: 1) {
  215. .content-wrapper {
  216. width: calc(100%) !important;
  217. background-color: #fff !important;
  218. }
  219. .fixed .content-wrapper {
  220. margin-top: 60px !important;
  221. margin-left: 0px;
  222. padding: 5px;
  223. }
  224. .add-outlet{
  225. margin-top: 15px;
  226. }
  227. .sidebar-mini .sidebar-menu > li > a > span{
  228. }
  229. .light-skin .sidebar-menu > li > a > span{
  230. background-color: transparent !important;
  231. box-shadow:none !important;
  232. margin-left: 11px;
  233. -webkit-transform:none;
  234. font-size: 16px;
  235. }
  236. .fixed .multinav{
  237. width: 100%;
  238. }
  239. .sidebar-footer {
  240. width: auto;
  241. }
  242. .sidebar-mini .dropdown button > span {
  243. border-top-right-radius: 5px;
  244. display: inline-grid !important;
  245. -webkit-transform: translateZ(0);
  246. }
  247. .sidebar-menu.tree {
  248. margin-top: 34px;
  249. margin-left: 25px;
  250. }
  251. button .pull-right-container {
  252. position: absolute;
  253. right: calc(100% - 96%);
  254. top: calc(100% - 60%);
  255. margin-top: -7px;
  256. }
  257. .theme-primary.light-skin.sidebar-mini.sidebar-collapse .sidebar-menu > li.active > a > span {
  258. background: transparent !important;
  259. }
  260. .col-sm-12.col-md-6.box-shadowed{
  261. width: 100%;
  262. }
  263. .order-sections-list{
  264. width: 100%;
  265. }
  266. .no-order{
  267. padding-top: 30% !important;
  268. height: 48.2vh !important;
  269. }
  270. .all-orders{ max-height: 300px !important; height: 300px !important; min-height:300px !important;}
  271. .nav-tabs .nav-link {
  272. padding: 14px 21px !important;
  273. }
  274. .nav-tabs {
  275. height: 57px;
  276. margin-top: 11px;
  277. }
  278. }
  279. @media (max-width: 767px){
  280. .navbar{
  281. background-color: transparent !important;
  282. }
  283. }
  284. @media only screen
  285. and (min-device-width: 768px)
  286. and (max-device-width: 1024px)
  287. and (orientation: landscape)
  288. and (-webkit-min-device-pixel-ratio: 1) {
  289. .navbar{
  290. background-color: transparent !important;
  291. }
  292. .sidebar-menu li a {
  293. font-size: inherit !important;
  294. }
  295. .sidebar-footer button {
  296. font-size: inherit !important;
  297. }
  298. .fixed .content-wrapper {
  299. margin-top: -0px;
  300. margin-left: 271px;
  301. padding: 5px;
  302. }
  303. .no-order,.order-section{
  304. height: 98.7vh !important;
  305. }
  306. .col-md-6.box-shadowed{
  307. width: 66%;
  308. }
  309. .tab-pane{
  310. max-height: 88.5vh !important;
  311. }
  312. /*.navbar-static-top{ display: none !important;}*/
  313. }
  314. @media (max-width:641px) {
  315. .navbar{
  316. background-color: transparent !important;
  317. }
  318. .content-wrapper {
  319. width: 100%;
  320. background-color: #fff !important;
  321. }
  322. .fixed .content-wrapper {
  323. margin-top: 60px ;
  324. margin-left: 0px;
  325. padding: 5px;
  326. }
  327. .add-outlet{
  328. margin-top: 15px;
  329. }
  330. .sidebar-mini .sidebar-menu > li > a > span{
  331. }
  332. .light-skin .sidebar-menu > li > a > span{
  333. background-color: transparent !important;
  334. box-shadow:none !important;
  335. margin-left: 11px;
  336. -webkit-transform:none;
  337. font-size: 16px;
  338. }
  339. .fixed .multinav{
  340. width: 100%;
  341. }
  342. .sidebar-footer {
  343. width: auto;
  344. }
  345. .sidebar-mini .dropdown button > span {
  346. border-top-right-radius: 5px;
  347. display: inline-grid !important;
  348. -webkit-transform: translateZ(0);
  349. }
  350. .sidebar-menu.tree {
  351. margin-top: 34px;
  352. margin-left: 25px;
  353. }
  354. button .pull-right-container {
  355. position: absolute;
  356. right: calc(100% - 96%);
  357. top: calc(100% - 60%);
  358. margin-top: -7px;
  359. }
  360. .theme-primary.light-skin.sidebar-mini.sidebar-collapse .sidebar-menu > li.active > a > span {
  361. background: transparent !important;
  362. }
  363. .col-sm-12.col-md-6.box-shadowed{
  364. width: 100%;
  365. }
  366. .order-sections-list{
  367. width: 100%;
  368. }
  369. .no-order{
  370. padding-top: 30% !important;
  371. height: 48.2vh !important;
  372. }
  373. /* .all-orders{ max-height: 300px !important; height: 300px !important; min-height:300px !important;}*/
  374. .nav-tabs .nav-link {
  375. padding: 14px 21px !important;
  376. }
  377. .nav-tabs {
  378. height: 57px;
  379. margin-top: 11px;
  380. }
  381. }
  382. @media (max-width:414px){
  383. .right-panel-footer{
  384. --bs-gutter-x: 0;
  385. }
  386. .order-section{
  387. overflow-x: hidden !important;
  388. }
  389. .theme-primary.light-skin .sidebar-menu > li.active {
  390. background-color: rgba(76, 149, 221, 0);
  391. color: #000;
  392. border-left: 0px solid #000;
  393. }
  394. .sidebar-menu {
  395. list-style: none;
  396. margin: 0 0px;
  397. padding: 20px 0px 50px 0px;
  398. }
  399. .back-to-orders{
  400. padding: 10px;
  401. background: orange;
  402. font-size: 14px;
  403. cursor: pointer;
  404. font-weight: 600;
  405. }
  406. .container, .container-fluid, .container-sm, .container-md, .container-lg, .container-xl, .container-xxl{padding-left: 0}
  407. .right-panel-box div.box-body{
  408. padding: 0.5rem 1.5rem !important;
  409. }
  410. .box-header{
  411. padding: 0.5rem;
  412. }
  413. #show-recipes .box-header {.order-section
  414. padding: 15px 0.5rem 5px !important;
  415. }
  416. .right-panel-footer {
  417. margin-bottom: 25px !important;
  418. padding: 10px 1.5rem;
  419. }
  420. .all-orders{ max-height: 70vh !important; height: 70vh !important; min-height:70vh !important;}
  421. .order-section{
  422. height: 100vh !important;
  423. overflow-x: auto;
  424. position: absolute;
  425. z-index: 999;
  426. top: 50px;
  427. background: white;
  428. left: 0;
  429. right: 0;
  430. }
  431. input, select:focus{
  432. border-right-width: 1px !important;
  433. }
  434. .circle-div{ width: 40px; height: 40px}
  435. .gap-items p.min{
  436. line-height: 11px !important;
  437. padding-top: 8px !important;
  438. font-size: 11px;
  439. }
  440. .box-bodys{ margin-bottom: 10px;}
  441. .p-15{
  442. padding:5px !important;
  443. }
  444. .add-outlet{ width: 100%;}
  445. .navbar{
  446. background-color: transparent !important;
  447. }
  448. .content-wrapper {
  449. width: 100%;
  450. background-color: #fff !important;
  451. }
  452. .fixed .content-wrapper {
  453. margin-top: 35px ;
  454. margin-left: 0px !important;
  455. padding: 5px;
  456. }
  457. .sidebar-mini.sidebar-collapse .sidebar-menu > li > a > span{
  458. display: inline-grid !important
  459. }
  460. .light-skin.sidebar-mini.sidebar-collapse .sidebar-menu > li > a > span{
  461. background-color: transparent !important;
  462. box-shadow:none !important;
  463. margin-left: 11px;
  464. -webkit-transform:none;
  465. font-size: 16px;
  466. }
  467. .sidebar-collapse .sidebar-footer {
  468. width: auto;
  469. }
  470. .sidebar-mini.sidebar-collapse .dropdown button > span {
  471. border-top-right-radius: 5px;
  472. display: inline-grid !important;
  473. -webkit-transform: translateZ(0);
  474. }
  475. .sidebar-collapse .sidebar-menu.tree {
  476. margin-top: 34px;
  477. margin-left: 25px;
  478. }
  479. button .pull-right-container {
  480. position: absolute;
  481. right: calc(100% - 96%);
  482. top: calc(100% - 60%);
  483. margin-top: -7px;
  484. }
  485. .theme-primary.light-skin.sidebar-mini.sidebar-collapse .sidebar-menu > li.active > a > span {
  486. background: transparent !important;
  487. }
  488. .col-sm-12.col-md-6.box-shadowed{
  489. width: 100%;
  490. }
  491. .order-sections-list{
  492. width: 100%;
  493. }
  494. .no-order{
  495. padding-top: 30% !important;
  496. height: 48.2vh !important;
  497. display: none;
  498. }
  499. .hs > li, .item{
  500. width: 160px;
  501. }
  502. .nav-tabs .nav-link {
  503. padding: 7px 13px !important;
  504. }
  505. .nav-tabs {
  506. height: 57px;
  507. margin-top: 11px;
  508. }
  509. }
  510. @media (max-width:320px){
  511. .order-section{
  512. height: 100vh !important;
  513. overflow-x: auto;
  514. position: absolute;
  515. z-index: 999999;
  516. top: 0;
  517. background: white;
  518. left: 0;
  519. right: 0;
  520. }
  521. .circle-div{ width: 40px; height: 40px}
  522. .gap-items p.min{
  523. line-height: 11px !important;
  524. padding-top: 8px !important;
  525. font-size: 11px;
  526. }
  527. .box-bodys{ margin-bottom: 10px;}
  528. .p-15{
  529. padding:5px !important;
  530. }
  531. .add-outlet{ width: 100%;}
  532. .navbar{
  533. background-color: transparent !important;
  534. }
  535. .content-wrapper {
  536. width: calc(100%) !important;
  537. background-color: #fff !important;
  538. }
  539. .fixed .content-wrapper {
  540. margin-top: 35px ;
  541. margin-left: 0px;
  542. padding: 5px;
  543. }
  544. .theme-primary.light-skin .sidebar-menu > li:hover > a, .theme-primary.light-skin .sidebar-menu > li:active > a, .theme-primary.light-skin .sidebar-menu > li.active > a{
  545. background: none !important;
  546. }
  547. .sidebar-mini.sidebar-collapse .sidebar-menu > li > a > span{
  548. display: inline-grid !important
  549. }
  550. .light-skin.sidebar-mini.sidebar-collapse .sidebar-menu > li > a > span{
  551. background-color: transparent !important;
  552. box-shadow:none !important;
  553. margin-left: 11px;
  554. -webkit-transform:none;
  555. font-size: 16px;
  556. }
  557. .sidebar-collapse .sidebar-footer {
  558. width: auto;
  559. }
  560. .sidebar-mini.sidebar-collapse .dropdown button > span {
  561. border-top-right-radius: 5px;
  562. display: inline-grid !important;
  563. -webkit-transform: translateZ(0);
  564. }
  565. .sidebar-collapse .sidebar-menu.tree {
  566. margin-top: 34px;
  567. margin-left: 25px;
  568. }
  569. button .pull-right-container {
  570. position: absolute;
  571. right: calc(100% - 96%);
  572. top: calc(100% - 60%);
  573. margin-top: -7px;
  574. }
  575. .theme-primary.light-skin.sidebar-mini.sidebar-collapse .sidebar-menu > li.active > a > span {
  576. background: transparent !important;
  577. }
  578. .col-sm-12.col-md-6.box-shadowed{
  579. width: 100%;
  580. }
  581. .order-sections-list{
  582. width: 100%;
  583. }
  584. .no-order{
  585. padding-top: 30% !important;
  586. height: 48.2vh !important;
  587. display: none;
  588. }
  589. .hs > li, .item{
  590. width: 160px;
  591. }
  592. .nav-tabs .nav-link {
  593. padding: 7px 13px !important;
  594. }
  595. .nav-tabs {
  596. height: 57px;
  597. margin-top: 11px;
  598. }
  599. }
  600. /* @media (device-width: 375px) and (orientation: portrait){
  601. .navbar{
  602. background-color: transparent !important;
  603. }
  604. .content-wrapper {
  605. width: calc(96%) !important;
  606. background-color: #fff !important;
  607. }
  608. .fixed .content-wrapper {
  609. margin-top: 35px !important;
  610. margin-left: 0px;
  611. padding: 5px;
  612. }
  613. .theme-primary.light-skin .sidebar-menu > li:hover > a, .theme-primary.light-skin .sidebar-menu > li:active > a, .theme-primary.light-skin .sidebar-menu > li.active > a{
  614. background: none !important;
  615. }
  616. .sidebar-mini.sidebar-collapse .sidebar-menu > li > a > span{
  617. display: inline-grid !important
  618. }
  619. .light-skin.sidebar-mini.sidebar-collapse .sidebar-menu > li > a > span{
  620. background-color: transparent !important;
  621. box-shadow:none !important;
  622. margin-left: 11px;
  623. -webkit-transform:none;
  624. font-size: 16px;
  625. }
  626. .sidebar-collapse .sidebar-footer {
  627. width: auto;
  628. }
  629. .sidebar-mini.sidebar-collapse .dropdown button > span {
  630. border-top-right-radius: 5px;
  631. display: inline-grid !important;
  632. -webkit-transform: translateZ(0);
  633. }
  634. .sidebar-collapse .sidebar-menu.tree {
  635. margin-top: 34px;
  636. margin-left: 25px;
  637. }
  638. button .pull-right-container {
  639. position: absolute;
  640. right: calc(100% - 96%);
  641. top: calc(100% - 60%);
  642. margin-top: -7px;
  643. }
  644. .theme-primary.light-skin.sidebar-mini.sidebar-collapse .sidebar-menu > li.active > a > span {
  645. background: transparent !important;
  646. }
  647. .col-sm-12.col-md-6.box-shadowed{
  648. width: 480px;
  649. }
  650. .order-sections-list{
  651. width: 295px;
  652. }
  653. .nav-tabs .nav-link {
  654. padding: 14px 21px !important;
  655. }
  656. .nav-tabs {
  657. height: 57px;
  658. margin-top: 11px;
  659. }
  660. }
  661. @media (device-width: 360px) and (orientation: portrait){
  662. .order-sections-list{
  663. width: 100%;
  664. }
  665. .no-order{
  666. padding-top: 30% !important;
  667. height: 48.2vh !important;
  668. display: none;
  669. }
  670. .hs > li, .item{
  671. width: 160px;
  672. }
  673. .nav-tabs .nav-link {
  674. padding: 7px 13px !important;
  675. }
  676. .navbar{
  677. background-color: transparent !important;
  678. }
  679. .content-wrapper {
  680. width: calc(96%) !important;
  681. background-color: #fff !important;
  682. }
  683. .fixed .content-wrapper {
  684. margin-top: 35px !important;
  685. margin-left: 0px;
  686. padding: 5px;
  687. }
  688. .theme-primary.light-skin .sidebar-menu > li:hover > a, .theme-primary.light-skin .sidebar-menu > li:active > a, .theme-primary.light-skin .sidebar-menu > li.active > a{
  689. background: none !important;
  690. }
  691. .sidebar-mini.sidebar-collapse .sidebar-menu > li > a > span{
  692. display: inline-grid !important
  693. }
  694. .light-skin.sidebar-mini.sidebar-collapse .sidebar-menu > li > a > span{
  695. background-color: transparent !important;
  696. box-shadow:none !important;
  697. margin-left: 11px;
  698. -webkit-transform:none;
  699. font-size: 16px;
  700. }
  701. .sidebar-collapse .sidebar-footer {
  702. width: auto;
  703. }
  704. .sidebar-mini.sidebar-collapse .dropdown button > span {
  705. border-top-right-radius: 5px;
  706. display: inline-grid !important;
  707. -webkit-transform: translateZ(0);
  708. }
  709. .sidebar-collapse .sidebar-menu.tree {
  710. margin-top: 34px;
  711. margin-left: 25px;
  712. }
  713. button .pull-right-container {
  714. position: absolute;
  715. right: calc(100% - 96%);
  716. top: calc(100% - 60%);
  717. margin-top: -7px;
  718. }
  719. .theme-primary.light-skin.sidebar-mini.sidebar-collapse .sidebar-menu > li.active > a > span {
  720. background: transparent !important;
  721. }
  722. .col-sm-12.col-md-6.box-shadowed{
  723. width: 480px;
  724. }
  725. .order-sections-list{
  726. width: 295px;
  727. }
  728. .nav-tabs .nav-link {
  729. padding: 14px 21px !important;
  730. }
  731. .nav-tabs {
  732. height: 57px;
  733. margin-top: 11px;
  734. }
  735. }*/
  736. </style>
  737. </head>
  738. <body class="light-skin sidebar-mini theme-primary fixed">
  739. <div class="wrapper">
  740. <div id="loader"></div>
  741. @include('inc.header')
  742. @if(\Illuminate\Support\Facades\Auth::user()->role=="administrator")
  743. @include('inc.sidebar_admin')
  744. @elseif(\Illuminate\Support\Facades\Auth::user()->role=="resto_user")
  745. @include('inc.sidebar_resto_user')
  746. @else
  747. @include('inc.sidebar_resto')
  748. @endif
  749. @yield('content')
  750. @php
  751. if(\Illuminate\Support\Facades\Auth::user()->role=="restaurant"){
  752. $placed_order = false;
  753. $recent_till = \Carbon\Carbon::now()->subDays(2)->format('Y-m-d');;
  754. $one_order = \Illuminate\Support\Facades\Auth::user()->restaurants->id;
  755. $order1 = \App\Orders::where('status','Placed')->where('resto_id',$one_order)->where('created_at','>=',$recent_till)->first();
  756. if(isset($order1) && $order1->status=="Placed"){
  757. $placed_order = true;
  758. }
  759. //dump($order);
  760. }
  761. @endphp
  762. {{-- @include('inc.sidebar_resto_right')--}}
  763. {{--<footer class="main-footer" style="font-size: 10px">
  764. <video controls="controls" src="{!! env('APP_URL') !!}/1sec.avi" muted autoplay loop style="display:none">
  765. Your browser does not support the HTML5 Video element.
  766. </video>
  767. <img src="{!! env('APP_ASSETS') !!}images/favicon.png" height="18" /> meem powered by <img src="{!! env('APP_ASSETS') !!}images/taiftec.png" height="16" />
  768. </footer>--}}
  769. <input type="button" id="toggle" value="Wake Lock is disabled" style="display:none"/>
  770. </div>
  771. </body>
  772. <script src="{!! env('APP_ASSETS') !!}js/vendors.min.js"></script>
  773. <script src="{!! env('APP_ASSETS') !!}js/pages/chat-popup.js"></script>
  774. <script src="{!! env('APP_ASSETS') !!}icons/feather-icons/feather.min.js"></script>
  775. <script src="{!! env('APP_ASSETS') !!}vendor_components/progressbar.js-master/dist/progressbar.js"></script>
  776. <script src="{!! env('APP_ASSETS') !!}vendor_components/OwlCarousel2/dist/owl.carousel.js"></script>
  777. <script src="{!! env('APP_ASSETS') !!}vendor_components/datatable/datatables.min.js"></script>
  778. <script src="{!! env('APP_ASSETS') !!}vendor_components/jquery-toast-plugin-master/src/jquery.toast.js"></script>
  779. <script src="{!! env('APP_ASSETS') !!}js/printThis.js"></script>
  780. <script src="{!! env('APP_ASSETS') !!}js/jquery.uploadPreview.js"></script>
  781. <script src="{!! env('APP_ASSETS') !!}js/jquery.validate.min.js"></script>
  782. <script src="{!! env('APP_ASSETS') !!}js/jquery.form.js"></script>
  783. <script src="{!! env('APP_ASSETS') !!}js/NoSleep.min.js"></script>
  784. <!-- Riday Admin App -->
  785. <script src="//js.pusher.com/3.1/pusher.min.js"></script>
  786. <script src="{!! env('APP_ASSETS') !!}js/template.js"></script>
  787. <script>
  788. //screen.orientation.lock('');
  789. nosleep();
  790. function nosleep()
  791. {
  792. var noSleep = new NoSleep();
  793. noSleep.enable();
  794. }
  795. </script>
  796. <!-- AUDIO.JS -->
  797. <script type="text/javascript">
  798. const CACHE_NAME = "audioCache";
  799. const FILE_NAME = 'https://admin.meemapp.net/notif-order.mp3';
  800. (function main(){
  801. updateStatus();
  802. })();
  803. // Update the status field
  804. function updateStatus() {
  805. isCached().then(value => {
  806. });
  807. }
  808. function isCached() {
  809. return window.caches.open(CACHE_NAME)
  810. .then(cache => cache.match(FILE_NAME))
  811. .then(Boolean);
  812. }
  813. function addToCache() {
  814. window.caches.open(CACHE_NAME)
  815. .then(cache => cache.add(FILE_NAME))
  816. .then(() => console.log('cached audio file'))
  817. .catch(e => console.error('failed to cache file', e))
  818. .finally(updateStatus); // This only works in chrome/ff at the time of writing
  819. }
  820. function removeFromCache() {
  821. window.caches.open(CACHE_NAME)
  822. .then(cache => cache.delete(FILE_NAME))
  823. .then(() => console.log('removed cached file'))
  824. .catch(e => console.error('failed to remove cached file', e))
  825. .finally(updateStatus); // This only works in chrome/ff at the time of writing
  826. }
  827. </script>
  828. <script>
  829. if ('serviceWorker' in navigator) {
  830. var file = "{!! env('APP_ASSETS') !!}js/audio_cache_sw.js"
  831. navigator.serviceWorker.register(file)
  832. .then(function(reg) {
  833. console.log('Registration succeeded.');
  834. }).catch(function(error) {
  835. console.log('Registration failed with ' + error);
  836. });
  837. }
  838. </script>
  839. <!-- END AUDIO.JS -->
  840. <script>
  841. /*let src = "https://admin.meemapp.net/notif-order.mp3";
  842. let audio = new Audio(src);
  843. audio.loop = true;
  844. audio.play();
  845. */
  846. addToCache();
  847. var timeFormat = function(datetime){
  848. var time =datetime;
  849. var date = new Date(time);
  850. date = date.getFullYear()+"-"+date.getMonth()+"-"+date.getDate()+" "+date.getHours()+":"+date.getMinutes()+":"+date.getMilliseconds();
  851. return date;
  852. };
  853. var logged_user = "{!! \Illuminate\Support\Facades\Auth::user()->role=="restaurant" && isset(\Illuminate\Support\Facades\Auth::user()->restaurants)?\Illuminate\Support\Facades\Auth::user()->restaurants->id:NULL !!}";
  854. var site_url = "{!! env('APP_URL') !!}";
  855. logged_user = parseInt(logged_user);
  856. $(function () {
  857. $('[data-toggle="tooltip"]').tooltip();
  858. // $('#dataTable').DataTable();
  859. $("body").on("click",".notifications",function () {
  860. $.ajax({
  861. url:"{!! env('APP_URL') !!}read/notifications",
  862. success:function (response) {
  863. $(".badge-counter").attr("data-count",0);
  864. $(".badge-counter").html("");
  865. }
  866. });
  867. });
  868. })
  869. </script>
  870. <script>
  871. let src = "{!! env('APP_URL') !!}notif-order.mp3";
  872. let audio = new Audio(src);
  873. audio.loop = true;
  874. @if(\Illuminate\Support\Facades\Auth::user()->role=="restaurant")
  875. @if(Route::currentRouteName()=="OrderListing" || $placed_order)
  876. @if((isset($is_pending_order) && !empty($is_pending_order)) || $placed_order)
  877. audio.play();
  878. @endif
  879. @endif
  880. @endif
  881. var pusher = new Pusher('{{env("PUSHER_APP_KEY")}}', {
  882. cluster: '{{env("PUSHER_APP_CLUSTER")}}',
  883. encrypted: true
  884. });
  885. var notification_counter = parseInt($(".badge-counter").data('count'));
  886. var new_order_count = parseInt($("#order-counter").html());
  887. if(new_order_count=="")
  888. new_order_count = 0;
  889. var channel = pusher.subscribe("{!! env('PUHER_APP_CHANNEL') !!}");
  890. channel.bind('App\\Events\\OrderNotification', function(data) {
  891. console.log(data);
  892. var order_resto_id = parseInt(data.order_resto_id);
  893. if(order_resto_id==logged_user && data.notification_for=="update-order-status"){
  894. // location.reload();
  895. audio.pause();
  896. $("#orders-list").html('');
  897. $.ajax({
  898. url:"{!! env('APP_URL') !!}liveorders/all",
  899. success:function (response) {
  900. //response = $.parseJSON(response);
  901. if(response){
  902. $.each(response.orders,function (i,v) {
  903. var str='<li class="mlist_li" rel="detail" data-order-id="'+v.id+'">\n' +
  904. ' <div class="box '+v.box_bg+' rounded-0">\n' +
  905. ' <div class="media-list media-list-divided media-list-hover">\n' +
  906. ' <div class="media align-items-center">\n' +
  907. ' <div class="media-body">\n' +
  908. ' <p>#'+v.order_ref+'</p>\n' +
  909. ' <p> '+(v.campaign_type!=""?v.campaign_type:"Direct")+', '+v.created_at+'</p>\n' +
  910. ' </div>\n' +
  911. ' <div class="media-right gap-items">\n' +
  912. ' <div class="user-social-acount text-center">\n' +
  913. ' <p class="m-0 status">'+v.status+'</p>\n' +
  914. ' <div class="d-flex align-items-center float-end">\n' +
  915. ' <div class="circle-div '+v.bg+' text-center" data-min="'+v.remaining_min+'" data-color="'+v.bg_color+'">\n' +
  916. ' <p class="mb-5 min">'+v.remaining_min+'<br />\n'+
  917. ' Min</p>\n'+
  918. ' </div>\n' +
  919. ' </div>\n' +
  920. ' </div>\n' +
  921. ' </div>\n' +
  922. ' </div>\n' +
  923. ' </div>\n' +
  924. ' </div>\n' +
  925. '</li>';
  926. counter = counter+1;
  927. $("#orders-list").append(str);
  928. });
  929. $("span."+status).html(counter);
  930. }
  931. }
  932. });
  933. $.ajax({
  934. url: "{!! env('APP_URL') !!}order/counts",
  935. success: function (response) {
  936. // response = $.parseJSON(response);
  937. var total_accepted = 0;
  938. var total = 0;
  939. $.each(response,function (i,v) {
  940. if(v.status=="Send_to_Kitchen" || v.status=="Accepted"){
  941. total_accepted+=parseInt(v.status_count);
  942. total+=parseInt(v.status_count);
  943. $(".labelcenter.kitchen").text(total_accepted);
  944. }
  945. if(v.status=="On_Road"){
  946. $(".labelcenter.route").text(v.status_count);
  947. total+=parseInt(v.status_count);
  948. }
  949. if(v.status=="Placed"){
  950. $(".labelcenter.new").html(v.status_count);
  951. total+=parseInt(v.status_count);
  952. if(parseInt(v.status_count) > 0){
  953. $("#order-counter").html(v.status_count);
  954. $("#order-counter").show();
  955. }else{
  956. audio.pause();
  957. $("#order-counter").html(0);
  958. $("#order-counter").hide();
  959. }
  960. }
  961. });
  962. $(".labelcenter.all").text(total);
  963. }
  964. });
  965. $(".mlist_li[data-order-id="+data.order_id+"]").remove();
  966. }
  967. var resto_id = parseInt(data.resto_id);
  968. if(resto_id==logged_user){
  969. audio.play();
  970. var new_order = (data.order_data);
  971. var v = new_order;
  972. var li = '<li class="mlist_li" rel="detail" data-order-id="'+v.id+'">\n' +
  973. ' <div class="box bg-danger rounded-0">\n' +
  974. ' <div class="media-list media-list-divided media-list-hover">\n' +
  975. ' <div class="media align-items-center">\n' +
  976. ' <div class="media-body">\n' +
  977. ' <p>#'+v.order_ref+'</p>\n' +
  978. ' <p> '+(v.campaign_type?v.campaign_type:"Direct")+', Just now</p>\n' +
  979. ' </div>\n' +
  980. ' <div class="media-right gap-items">\n' +
  981. ' <div class="user-social-acount text-center">\n' +
  982. ' <p class="m-0 status">New</p>\n' +
  983. ' <div class="d-flex align-items-center float-end">\n' +
  984. ' <div class="circle-div blu-bg text-center">\n' +
  985. ' <p class="mb-5 min">0<br />\n' +
  986. ' Min</p>\n' +
  987. ' </div>\n' +
  988. ' </div>\n' +
  989. ' </div>\n' +
  990. ' </div>\n' +
  991. ' </div>\n' +
  992. ' </div>\n' +
  993. ' </div>\n' +
  994. '</li>';
  995. /* var action_list = '<div class="btn-group">\n' +
  996. ' <a class="hover-primary dropdown-toggle no-caret" data-bs-toggle="dropdown"><i class="fa fa-ellipsis-h"></i></a>\n' +
  997. ' <div class="dropdown-menu">\n' +
  998. ' <a class="dropdown-item order-status" href="#!" data-id="'+new_order.id+'" data-status="Accepted">Accepted</a>\n' +
  999. ' <a class="dropdown-item order-status" href="#!" data-id="'+new_order.id+'" data-status="Rejected">Rejected</a>\n' +
  1000. ' <a class="dropdown-item order-status" href="#!" data-id="'+new_order.id+'" data-status="Rejected_by_User">Rejected by User</a>\n' +
  1001. ' \n' +
  1002. ' </div>\n' +
  1003. ' </div>';
  1004. var row = '<tr class="special order-row" data-id="'+new_order.id+'">';
  1005. row+='<td>'+new_order.order_ref+'</td>';
  1006. row+='<td>'+timeFormat(new_order.created_at)+'</td>';
  1007. row+='<td>'+new_order.customer_name+'</td>';
  1008. row+='<td>'+ data.customer_mobile+ '</td>';
  1009. row+='<td>'+data.customer_location+'</td>';
  1010. row+='<td>'+new_order.order_type+'</td>';
  1011. // row+='<td>'+new_order.campaign_name+'</td>';
  1012. // row+='<td>'+new_order.campaign_date+'</td>';
  1013. row+='<td>'+new_order.campaign_type+'</td>';
  1014. row+='<td>'+data.total_price+'</td>';
  1015. /!* row+='<td>'+(new_order.order_deliver_time?new_order.order_deliver_time:"(اقرب وقت)\t")+'</td>';*!/
  1016. row+='<td><span class="badge badge-info-light">Placed</span></td>';
  1017. row+='<td>'+action_list+'</td>';
  1018. row+='</tr>';*/
  1019. $.ajax({
  1020. url: "{!! env('APP_URL') !!}order/counts",
  1021. success: function (response) {
  1022. // response = $.parseJSON(response);
  1023. var total_accepted = 0;
  1024. var total = 0;
  1025. $.each(response,function (i,v) {
  1026. if(v.status=="Send_to_Kitchen" || v.status=="Accepted"){
  1027. total_accepted+=parseInt(v.status_count);
  1028. total+=parseInt(v.status_count);
  1029. $(".labelcenter.kitchen").text(total_accepted);
  1030. }
  1031. if(v.status=="On_Road"){
  1032. $(".labelcenter.route").text(v.status_count);
  1033. total+=parseInt(v.status_count);
  1034. }
  1035. if(v.status=="Placed"){
  1036. $(".labelcenter.new").text(v.status_count);
  1037. total+=parseInt(v.status_count);
  1038. if(parseInt(v.status_count) > 0){
  1039. $("#order-counter").html(v.status_count);
  1040. $("#order-counter").show();
  1041. }
  1042. }
  1043. });
  1044. $(".labelcenter.all").text(total);
  1045. }
  1046. });
  1047. @if(\Illuminate\Support\Facades\Auth::user()->role=="restaurant")
  1048. @if(Route::currentRouteName()=="OrderListing")
  1049. $("#orders-list").prepend(li);
  1050. @endif
  1051. @endif
  1052. // $("#new-order-tables tbody").prepend(row);
  1053. // $("#new-orders-modal").modal();
  1054. setTimeout(function () {
  1055. $("#new-orders-modal").modal('hide');
  1056. },30000);
  1057. var notification = '<li>\n' +
  1058. ' <a href="{!! env('APP_URL') !!}order/show/'+data.order_id+'">\n' +
  1059. ' <i class="fa fa-users text-info"></i> '+data.message+'.\n' +
  1060. ' </a>\n' +
  1061. ' </li>';
  1062. $("#notifications").prepend(notification);
  1063. notification_counter += 1;
  1064. new_order_count += 1;
  1065. $(".badge-counter").attr('data-count',notification_counter);
  1066. $(".badge-counter").html(notification_counter);
  1067. $("#order-counter").html(new_order_count);
  1068. $("#order-counter").show();
  1069. }
  1070. });
  1071. $("body").on("click",".push-btn",function () {
  1072. $(".main-sidebar").toggleClass('sidebar-active')
  1073. });
  1074. </script>
  1075. </html>
  1076. @yield('js')