app.blade.php_2 42 KB

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