app.blade.php_19-04 54 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657
  1. @php
  2. $resto_rtl = \App\Restaurants::find(\App\Helpers\CommonMethods::getRestuarantID());
  3. $lang = $resto_rtl->default_lang;
  4. app()->setLocale($lang);
  5. if(session('app_lang') !==null){
  6. $lang = session('app_lang');
  7. app()->setLocale($lang);
  8. }
  9. if(\Illuminate\Support\Facades\Auth::user()->role=="administrator")
  10. $lang="en";
  11. @endphp
  12. <!DOCTYPE html>
  13. @if($lang=="ar")
  14. <!--<html lang="ar" dir="rtl">-->
  15. <html lang="ar" dir="rtl">
  16. @else
  17. <html lang="en">
  18. @endif
  19. <meta charset="utf-8" />
  20. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  21. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
  22. <meta name="csrf-token" content="MOPUhVXZcUk6jStOhUNBIjlzjQOz911kSUPoP7gN">
  23. <!--<title> {!! env('APP_NAME') !!} @yield('page-title')</title>-->
  24. <title> {!! env('APP_NAME') !!} </title>
  25. <meta property="og:type" content="website" />
  26. <!-- Favicon Icon -->
  27. <link rel="icon" type="image/png" href="{!! env('APP_ASSETS') !!}images/favicon.jpeg">
  28. <link rel="apple-touch-icon" href="{!! env('APP_ASSETS') !!}images/favicon.jpeg">
  29. <link rel="shortcut icon" href="{!! env('APP_ASSETS') !!}images/favicon.jpeg">
  30. <!-- Feather Icon-->
  31. <link href="{!! env('APP_ASSETS') !!}css/vendors_css.css" rel="stylesheet" type="text/css">
  32. <!-- Fontawesome Icon-->
  33. <!-- <link href="{!! env('APP_ASSETS') !!}css/style.css" rel="stylesheet" type="text/css">-->
  34. <link href="{!! env('APP_ASSETS') !!}css/style_new.css?v=1.5" rel="stylesheet" type="text/css">
  35. {{--
  36. <link href="{!! env('APP_ASSETS') !!}css/style_rtl.css" rel="stylesheet" type="text/css">--}}
  37. <!-- Bootstrap Css -->
  38. <link href="{!! env('APP_ASSETS') !!}css/skin_color.css" rel="stylesheet"><!-- Custom Css -->
  39. <link href="{!! env('APP_ASSETS') !!}css/sidebar-new.css?v=1.5" rel="stylesheet" type="text/css">
  40. @yield('css')
  41. <style>
  42. .btn-default{
  43. border-color: transparent;
  44. }
  45. .main-header .logo .logo-lg{ padding-left: 13px;}
  46. label.error{
  47. color:#FF0000;
  48. }
  49. .sidebar-active{
  50. display: block !important;
  51. width: 100% !important;
  52. }
  53. .theme-primary .btn-primary{
  54. background-color: #ffab00;
  55. border-color: #ffab00;
  56. }
  57. .theme-primary .badge-primary{
  58. background-color: #ffab00;
  59. border-color: #ffab00;
  60. }
  61. .sidebar-active .sidebar-mini.sidebar-collapse .sidebar-menu > li > a > span{ display: block !important;}
  62. .sidebar-menu > li .badge {
  63. margin-left: 5px;
  64. width: 20px;
  65. height: 20px;
  66. padding-left: 4px;
  67. padding-top: 6px;
  68. border-radius: 100%;
  69. line-height: 9px;
  70. text-align: center;
  71. font-weight: 300;
  72. margin-top: 3px;
  73. display: none;
  74. }
  75. .main-header .navbar{
  76. margin-left: 16.29rem;
  77. }
  78. .new-order {
  79. background: rgb(110 195 82 / 50%) !important;
  80. color: #000;
  81. }
  82. .alert{ display: none}
  83. #loader{
  84. background: #fff url({!! env('APP_ASSETS') !!}images/preloaders/preloader.svg) no-repeat center center;
  85. left: 0px !important;
  86. top: 0;
  87. }
  88. .theme-primary .btn-primary:hover, .theme-primary .btn-primary:active, .theme-primary .btn-primary:focus, .theme-primary .btn-primary.active{
  89. background-color: #ffab00 !important;
  90. border-color: #ffab00 !important;
  91. }
  92. .sidebar-menu > li,.sidebar-menu > li:hover { margin-bottom: 2px}
  93. .theme-primary.light-skin .sidebar-menu > li.active > a {
  94. color: #fff;
  95. background-color: #FEC34D ;padding:0px 10px;
  96. }
  97. .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{
  98. padding:0px 4px 0 4px;
  99. 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;
  100. }
  101. .sidebar-menu > li > a > i{
  102. margin-right: -2px;
  103. }
  104. #dropdownMenu2 {
  105. border-radius: 0px;
  106. background: #ffd684;
  107. text-align: left;
  108. padding-left: 23px;
  109. font-size: 14px;
  110. font-weight: 600;
  111. }
  112. .btn-secondary:hover, .btn-secondary:active, .btn-secondary:focus, .btn-secondary.active{
  113. background-color: #ffd684 !important;
  114. border-color: #ffd684 !important;
  115. }
  116. .dropdown-item:hover, .dropdown-item:focus {
  117. background-color: transparent;
  118. }
  119. #dropdownMenu2 i{
  120. font-size:1.5714285714rem
  121. }
  122. .sidebar-collapse .sidebar-menu.tree{margin-top: 10px}
  123. /* .theme-primary.light-skin .sidebar-menu > li.active > a > i{
  124. background-color: #FFAD12 !important;
  125. box-shadow: 0 4px 5px 0 #d4b483 !important;
  126. }*/
  127. .theme-primary.light-skin .sidebar-menu > li.active {
  128. background-color: rgba(76, 149, 221, 0);
  129. color: #000;
  130. border-left: 0px solid #000;
  131. }
  132. .theme-primary.light-skin .sidebar-menu > li.active > a > i{
  133. box-shadow: 0 4px 5px 0 rgb(0 0 0 / 50%);
  134. }
  135. .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{
  136. background-color: rgba(0, 0, 0, 0);
  137. margin-bottom: 5px;
  138. }
  139. ul.footer-drop{
  140. transform: translate(226px, 2px) !important;
  141. }
  142. .notification-badge{
  143. font-size: 75%;position: absolute;top: -2px !important;right: -13px;padding: 5px 10px;border-radius: 50%;background: red;color: white;
  144. }
  145. button .pull-right-container {
  146. position: absolute;
  147. right: calc(100% - 87%);
  148. top: calc(100% - 54%);
  149. margin-top: -7px;
  150. }
  151. @php
  152. $no_gap_pages = ['OrderListing','outlets-form','OutletEdit','outlets-address','outlets-delivery','outlets-pickup'];
  153. ;
  154. @endphp
  155. @if(in_array(Route::currentRouteName(),$no_gap_pages))
  156. .content-wrapper {
  157. width: calc(100% - 270px);
  158. background-color: #fff !important;
  159. }
  160. .fixed .content-wrapper {
  161. margin-top: 0px;
  162. margin-left: 270px;
  163. margin-left: 270px;
  164. }
  165. @else
  166. .content-wrapper {
  167. width: calc(100% - 300px);
  168. background-color: #fff !important;
  169. }
  170. .fixed .content-wrapper {
  171. margin-top: 0px;
  172. margin-left: 290px;
  173. }
  174. @endif
  175. @media (min-width: 850px) and (max-width: 1020px){
  176. .d-md-none{
  177. display: block !important;
  178. }
  179. .push-btn{
  180. display: none !important;
  181. }
  182. .fixed .content-wrapper{
  183. margin-left: 223px !important;
  184. }
  185. .delivery-section {
  186. width: 356px !important;
  187. left:0 !important;
  188. top: 0 !important;
  189. }
  190. .save-delivery-area{
  191. width: 200px;
  192. }
  193. .content-wrapper {
  194. width: calc(100% - 223px);
  195. }
  196. .nav-tabs .nav-link {
  197. padding: 0.5rem 2.25rem!important;
  198. font-size: 15px;
  199. }
  200. .main-sidebar,.fixed .multinav,.main-header div.logo-box{
  201. width: 16.29rem;
  202. }
  203. .sidebar-menu.tree {
  204. margin-top: 0px !important;
  205. margin-left: 0px !important;
  206. }
  207. .sidebar-menu {
  208. list-style: none;
  209. margin: 0 0px;
  210. padding: 10px 0px 50px 0px;
  211. }
  212. .light-skin .sidebar-menu > li > a > span {
  213. background-color: transparent !important;
  214. box-shadow: none !important;
  215. margin-left: 11px;
  216. -webkit-transform: none;
  217. font-size: 14px;
  218. }
  219. .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{
  220. margin-bottom: 0;
  221. }
  222. .sidebar-menu > li > a{
  223. padding: 1px 5px;
  224. }
  225. .theme-primary.light-skin .sidebar-menu > li.active {
  226. background-color: rgba(76, 149, 221, 0);
  227. color: #000;
  228. border-left: 0px solid #000;
  229. }
  230. .theme-primary.light-skin.sidebar-mini.sidebar-collapse .sidebar-menu > li > a > span{
  231. display: inline-block !important;
  232. background: transparent !important;
  233. font-size: 14px;
  234. }
  235. .theme-primary.light-skin.sidebar-mini.sidebar-collapse .sidebar-menu > li.active > a > span{
  236. background: transparent !important; font-size: 14px;
  237. }
  238. .sidebar-collapse .sidebar-menu > li > a {
  239. padding: 1px 12px;
  240. }
  241. .main-sidebar .dropdown{
  242. width: 228px;
  243. }
  244. .sidebar-mini.sidebar-collapse .dropdown button > span{ display: inline-block !important; }
  245. .add-outlet{ width: 200px; }
  246. }
  247. @media only screen
  248. and (min-device-width: 768px)
  249. and (max-device-width: 1024px)
  250. and (orientation: portrait)
  251. and (-webkit-min-device-pixel-ratio: 1) {
  252. .content-wrapper {
  253. width: calc(100%) !important;
  254. background-color: #fff !important;
  255. }
  256. .fixed .content-wrapper {
  257. margin-top: 60px !important;
  258. margin-left: 0px;
  259. padding: 5px;
  260. }
  261. .add-outlet{
  262. margin-top: 15px;
  263. }
  264. .sidebar-mini .sidebar-menu > li > a > span{
  265. }
  266. .light-skin .sidebar-menu > li > a > span{
  267. background-color: transparent !important;
  268. box-shadow:none !important;
  269. margin-left: 11px;
  270. -webkit-transform:none;
  271. font-size: 16px;
  272. }
  273. .fixed .multinav{
  274. width: 100%;
  275. }
  276. .sidebar-footer {
  277. width: auto;
  278. }
  279. .sidebar-mini .dropdown button > span {
  280. border-top-right-radius: 5px;
  281. display: inline-grid !important;
  282. -webkit-transform: translateZ(0);
  283. }
  284. .sidebar-menu.tree {
  285. margin-top: 34px;
  286. margin-left: 25px;
  287. }
  288. button .pull-right-container {
  289. position: absolute;
  290. right: calc(100% - 96%);
  291. top: calc(100% - 60%);
  292. margin-top: -7px;
  293. }
  294. .theme-primary.light-skin.sidebar-mini.sidebar-collapse .sidebar-menu > li.active > a > span {
  295. background: transparent !important;
  296. }
  297. .col-sm-12.col-md-6.box-shadowed{
  298. width: 100%;
  299. }
  300. .order-sections-list{
  301. width: 100%;
  302. }
  303. .no-order{
  304. padding-top: 30% !important;
  305. height: 48.2vh !important;
  306. }
  307. .all-orders{ max-height: 300px !important; height: 300px !important; min-height:300px !important;}
  308. .nav-tabs .nav-link {
  309. padding: 14px 21px !important;
  310. }
  311. .nav-tabs {
  312. height: 57px;
  313. margin-top: 11px;
  314. }
  315. }
  316. @media (max-width: 767px){
  317. .navbar{
  318. background-color: transparent !important;
  319. }
  320. }
  321. @media only screen
  322. and (min-device-width: 768px)
  323. and (max-device-width: 1024px)
  324. and (orientation: landscape)
  325. and (-webkit-min-device-pixel-ratio: 1) {
  326. .navbar{
  327. background-color: transparent !important;
  328. }
  329. .sidebar-menu li a {
  330. font-size: inherit !important;
  331. }
  332. .sidebar-footer button {
  333. font-size: inherit !important;
  334. }
  335. .fixed .content-wrapper {
  336. margin-top: -0px;
  337. margin-left: 271px;
  338. padding: 5px;
  339. }
  340. .no-order,.order-section{
  341. height: 98.7vh !important;
  342. }
  343. .col-md-6.box-shadowed{
  344. width: 66%;
  345. }
  346. .tab-pane{
  347. max-height: 88.5vh !important;
  348. }
  349. /*.navbar-static-top{ display: none !important;}*/
  350. }
  351. @media (max-width:641px) {
  352. .navbar{
  353. background-color: transparent !important;
  354. }
  355. .content-wrapper {
  356. width: 100%;
  357. background-color: #fff !important;
  358. }
  359. .fixed .content-wrapper {
  360. margin-top: 60px ;
  361. margin-left: 0px;
  362. padding: 5px;
  363. }
  364. .add-outlet{
  365. margin-top: 15px;
  366. }
  367. .sidebar-mini .sidebar-menu > li > a > span{
  368. }
  369. .light-skin .sidebar-menu > li > a > span{
  370. background-color: transparent !important;
  371. box-shadow:none !important;
  372. margin-left: 11px;
  373. -webkit-transform:none;
  374. font-size: 16px;
  375. }
  376. .fixed .multinav{
  377. width: 100%;
  378. }
  379. .sidebar-footer {
  380. width: auto;
  381. }
  382. .sidebar-mini .dropdown button > span {
  383. border-top-right-radius: 5px;
  384. display: inline-grid !important;
  385. -webkit-transform: translateZ(0);
  386. }
  387. .sidebar-menu.tree {
  388. margin-top: 34px;
  389. margin-left: 25px;
  390. }
  391. button .pull-right-container {
  392. position: absolute;
  393. right: calc(100% - 96%);
  394. top: calc(100% - 60%);
  395. margin-top: -7px;
  396. }
  397. .theme-primary.light-skin.sidebar-mini.sidebar-collapse .sidebar-menu > li.active > a > span {
  398. background: transparent !important;
  399. }
  400. .col-sm-12.col-md-6.box-shadowed{
  401. width: 100%;
  402. }
  403. .order-sections-list{
  404. width: 100%;
  405. }
  406. .no-order{
  407. padding-top: 30% !important;
  408. height: 48.2vh !important;
  409. }
  410. /* .all-orders{ max-height: 300px !important; height: 300px !important; min-height:300px !important;}*/
  411. .nav-tabs .nav-link {
  412. padding: 14px 21px !important;
  413. }
  414. .nav-tabs {
  415. height: 57px;
  416. margin-top: 11px;
  417. }
  418. }
  419. @media (max-width:767px){
  420. .right-panel-footer{
  421. --bs-gutter-x: 0;
  422. }
  423. .order-section{
  424. overflow-x: hidden !important;
  425. }
  426. .theme-primary.light-skin .sidebar-menu > li.active {
  427. background-color: rgba(76, 149, 221, 0);
  428. color: #000;
  429. border-left: 0px solid #000;
  430. }
  431. .sidebar-menu {
  432. list-style: none;
  433. margin: 0 0px;
  434. padding: 20px 0px 50px 0px;
  435. }
  436. .back-to-orders{
  437. padding: 10px;
  438. background: orange;
  439. font-size: 14px;
  440. cursor: pointer;
  441. font-weight: 600;
  442. }
  443. .container, .container-fluid, .container-sm, .container-md, .container-lg, .container-xl, .container-xxl{padding-left: 0}
  444. .right-panel-box div.box-body{
  445. padding: 0rem 1.5rem !important;
  446. }
  447. .box-header{
  448. padding: 0.5rem;
  449. }
  450. #show-recipes .box-header {.order-section
  451. padding: 15px 0.5rem 5px !important;
  452. }
  453. .right-panel-footer {
  454. margin-bottom: 25px !important;
  455. padding: 10px 1.5rem;
  456. }
  457. .all-orders{ max-height: 70vh !important; height: 70vh !important; min-height:70vh !important;}
  458. .order-section{
  459. height: 100vh !important;
  460. overflow-x: auto;
  461. position: absolute;
  462. z-index: 999;
  463. top: 63px;
  464. background: white;
  465. left: 0;
  466. right: 0;
  467. }
  468. input, select:focus{
  469. border-right-width: 1px !important;
  470. }
  471. .circle-div{ width: 40px; height: 40px}
  472. .gap-items p.min{
  473. line-height: 11px !important;
  474. padding-top: 8px !important;
  475. font-size: 11px;
  476. }
  477. .box-bodys{ margin-bottom: 10px;}
  478. .p-15{
  479. padding:5px !important;
  480. }
  481. .add-outlet{ width: 100%;}
  482. .navbar{
  483. background-color: transparent !important;
  484. }
  485. .content-wrapper {
  486. width: 100%;
  487. background-color: #fff !important;
  488. }
  489. .fixed .content-wrapper {
  490. margin-top: 35px ;
  491. margin-left: 0px !important;
  492. padding: 5px;
  493. overflow:hidden;
  494. }
  495. .sidebar-mini.sidebar-collapse .sidebar-menu > li > a > span{
  496. display: inline-grid !important
  497. }
  498. .light-skin.sidebar-mini.sidebar-collapse .sidebar-menu > li > a > span{
  499. background-color: transparent !important;
  500. box-shadow:none !important;
  501. margin-left: 11px;
  502. -webkit-transform:none;
  503. font-size: 16px;
  504. }
  505. .sidebar-collapse .sidebar-footer {
  506. width: auto;
  507. }
  508. .sidebar-mini.sidebar-collapse .dropdown button > span {
  509. border-top-right-radius: 5px;
  510. display: inline-grid !important;
  511. -webkit-transform: translateZ(0);
  512. }
  513. .sidebar-collapse .sidebar-menu.tree {
  514. margin-top: 34px;
  515. margin-left: 25px;
  516. }
  517. button .pull-right-container {
  518. position: absolute;
  519. right: calc(100% - 96%);
  520. top: calc(100% - 60%);
  521. margin-top: -7px;
  522. }
  523. .theme-primary.light-skin.sidebar-mini.sidebar-collapse .sidebar-menu > li.active > a > span {
  524. background: transparent !important;
  525. }
  526. .col-sm-12.col-md-6.box-shadowed{
  527. width: 100%;
  528. }
  529. .order-sections-list{
  530. width: 100%;
  531. position: relative;
  532. width: 414px;
  533. right: 0;
  534. }
  535. .no-order{
  536. padding-top: 30% !important;
  537. height: 48.2vh !important;
  538. display: none;
  539. }
  540. .hs > li, .item{
  541. width: 160px;
  542. }
  543. .nav-tabs .nav-link {
  544. padding: 7px 13px !important;
  545. }
  546. .nav-tabs {
  547. height: 57px;
  548. margin-top: 11px;
  549. }
  550. }
  551. @media (max-width:320px){
  552. .order-section{
  553. height: 100vh !important;
  554. overflow-x: auto;
  555. position: absolute;
  556. z-index: 999999;
  557. top: 0;
  558. background: white;
  559. left: 0;
  560. right: 0;
  561. }
  562. .circle-div{ width: 40px; height: 40px}
  563. .gap-items p.min{
  564. line-height: 11px !important;
  565. padding-top: 8px !important;
  566. font-size: 11px;
  567. }
  568. .box-bodys{ margin-bottom: 10px;}
  569. .p-15{
  570. padding:5px !important;
  571. }
  572. .add-outlet{ width: 100%;}
  573. .navbar{
  574. background-color: transparent !important;
  575. }
  576. .content-wrapper {
  577. width: calc(100%) !important;
  578. background-color: #fff !important;
  579. }
  580. .fixed .content-wrapper {
  581. margin-top: 35px ;
  582. margin-left: 0px;
  583. padding: 5px;
  584. }
  585. .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{
  586. background: none !important;
  587. }
  588. .sidebar-mini.sidebar-collapse .sidebar-menu > li > a > span{
  589. display: inline-grid !important
  590. }
  591. .light-skin.sidebar-mini.sidebar-collapse .sidebar-menu > li > a > span{
  592. background-color: transparent !important;
  593. box-shadow:none !important;
  594. margin-left: 11px;
  595. -webkit-transform:none;
  596. font-size: 16px;
  597. }
  598. .sidebar-collapse .sidebar-footer {
  599. width: auto;
  600. }
  601. .sidebar-mini.sidebar-collapse .dropdown button > span {
  602. border-top-right-radius: 5px;
  603. display: inline-grid !important;
  604. -webkit-transform: translateZ(0);
  605. }
  606. .sidebar-collapse .sidebar-menu.tree {
  607. margin-top: 34px;
  608. margin-left: 25px;
  609. }
  610. button .pull-right-container {
  611. position: absolute;
  612. right: calc(100% - 96%);
  613. top: calc(100% - 60%);
  614. margin-top: -7px;
  615. }
  616. .theme-primary.light-skin.sidebar-mini.sidebar-collapse .sidebar-menu > li.active > a > span {
  617. background: transparent !important;
  618. }
  619. .col-sm-12.col-md-6.box-shadowed{
  620. width: 100%;
  621. }
  622. .order-sections-list{
  623. width: 100%;
  624. }
  625. .no-order{
  626. padding-top: 30% !important;
  627. height: 48.2vh !important;
  628. display: none;
  629. }
  630. .hs > li, .item{
  631. width: 160px;
  632. }
  633. .nav-tabs .nav-link {
  634. padding: 7px 13px !important;
  635. }
  636. .nav-tabs {
  637. height: 57px;
  638. margin-top: 11px;
  639. }
  640. }
  641. /* @media (device-width: 375px) and (orientation: portrait){
  642. .navbar{
  643. background-color: transparent !important;
  644. }
  645. .content-wrapper {
  646. width: calc(96%) !important;
  647. background-color: #fff !important;
  648. }
  649. .fixed .content-wrapper {
  650. margin-top: 35px !important;
  651. margin-left: 0px;
  652. padding: 5px;
  653. }
  654. .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{
  655. background: none !important;
  656. }
  657. .sidebar-mini.sidebar-collapse .sidebar-menu > li > a > span{
  658. display: inline-grid !important
  659. }
  660. .light-skin.sidebar-mini.sidebar-collapse .sidebar-menu > li > a > span{
  661. background-color: transparent !important;
  662. box-shadow:none !important;
  663. margin-left: 11px;
  664. -webkit-transform:none;
  665. font-size: 16px;
  666. }
  667. .sidebar-collapse .sidebar-footer {
  668. width: auto;
  669. }
  670. .sidebar-mini.sidebar-collapse .dropdown button > span {
  671. border-top-right-radius: 5px;
  672. display: inline-grid !important;
  673. -webkit-transform: translateZ(0);
  674. }
  675. .sidebar-collapse .sidebar-menu.tree {
  676. margin-top: 34px;
  677. margin-left: 25px;
  678. }
  679. button .pull-right-container {
  680. position: absolute;
  681. right: calc(100% - 96%);
  682. top: calc(100% - 60%);
  683. margin-top: -7px;
  684. }
  685. .theme-primary.light-skin.sidebar-mini.sidebar-collapse .sidebar-menu > li.active > a > span {
  686. background: transparent !important;
  687. }
  688. .col-sm-12.col-md-6.box-shadowed{
  689. width: 480px;
  690. }
  691. .order-sections-list{
  692. width: 295px;
  693. }
  694. .nav-tabs .nav-link {
  695. padding: 14px 21px !important;
  696. }
  697. .nav-tabs {
  698. height: 57px;
  699. margin-top: 11px;
  700. }
  701. }
  702. @media (device-width: 360px) and (orientation: portrait){
  703. .order-sections-list{
  704. width: 100%;
  705. }
  706. .no-order{
  707. padding-top: 30% !important;
  708. height: 48.2vh !important;
  709. display: none;
  710. }
  711. .hs > li, .item{
  712. width: 160px;
  713. }
  714. .nav-tabs .nav-link {
  715. padding: 7px 13px !important;
  716. }
  717. .navbar{
  718. background-color: transparent !important;
  719. }
  720. .content-wrapper {
  721. width: calc(96%) !important;
  722. background-color: #fff !important;
  723. }
  724. .fixed .content-wrapper {
  725. margin-top: 35px !important;
  726. margin-left: 0px;
  727. padding: 5px;
  728. }
  729. .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{
  730. background: none !important;
  731. }
  732. .sidebar-mini.sidebar-collapse .sidebar-menu > li > a > span{
  733. display: inline-grid !important
  734. }
  735. .light-skin.sidebar-mini.sidebar-collapse .sidebar-menu > li > a > span{
  736. background-color: transparent !important;
  737. box-shadow:none !important;
  738. margin-left: 11px;
  739. -webkit-transform:none;
  740. font-size: 16px;
  741. }
  742. .sidebar-collapse .sidebar-footer {
  743. width: auto;
  744. }
  745. .sidebar-mini.sidebar-collapse .dropdown button > span {
  746. border-top-right-radius: 5px;
  747. display: inline-grid !important;
  748. -webkit-transform: translateZ(0);
  749. }
  750. .sidebar-collapse .sidebar-menu.tree {
  751. margin-top: 34px;
  752. margin-left: 25px;
  753. }
  754. button .pull-right-container {
  755. position: absolute;
  756. right: calc(100% - 96%);
  757. top: calc(100% - 60%);
  758. margin-top: -7px;
  759. }
  760. .theme-primary.light-skin.sidebar-mini.sidebar-collapse .sidebar-menu > li.active > a > span {
  761. background: transparent !important;
  762. }
  763. .col-sm-12.col-md-6.box-shadowed{
  764. width: 480px;
  765. }
  766. .order-sections-list{
  767. width: 295px;
  768. }
  769. .nav-tabs .nav-link {
  770. padding: 14px 21px !important;
  771. }
  772. .nav-tabs {
  773. height: 57px;
  774. margin-top: 11px;
  775. }
  776. }*/
  777. /* CSS by Sadaf(customdev) start */
  778. html[dir="rtl"] .content-wrapper {
  779. width: calc(100% - 22rem) !important;
  780. margin-right: 21rem !important;
  781. }
  782. html[dir="rtl"] .main-sidebar {
  783. right:0 !important;
  784. }
  785. html[dir="rtl"] .d-flex {
  786. direction:rtl !important;
  787. }
  788. html[dir="rtl"] .d-flex:has(>.iqd_small) {
  789. flex-direction: row-reverse !important;
  790. }
  791. html[dir="rtl"] p, html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4, html[dir="rtl"] h5, html[dir="rtl"] h6, html[dir="rtl"] input, html[dir="rtl"] textarea, html[dir="rtl"] button{
  792. direction:rtl !important;
  793. }
  794. html[dir="rtl"] select{
  795. direction:rtl!important;
  796. background-position: left 0.8rem center;
  797. }
  798. .form-group.has-search {
  799. position:relative;
  800. }
  801. .form-group.has-search input {
  802. padding-right:30px !important;
  803. }
  804. .form-group.has-search .fa-search {
  805. right:10px !important;
  806. width:15px !important;
  807. }
  808. html[dir="rtl"] .form-group.has-search input {
  809. padding-left:30px !important;
  810. }
  811. html[dir="rtl"] .form-group.has-search input.search-outlet {
  812. padding-left:0.75rem !important;
  813. padding-right:0.75rem !important;
  814. }
  815. html[dir="rtl"] .form-group.has-search .fa-search {
  816. left:10px !important;
  817. right:unset !important;
  818. }
  819. html[dir="rtl"] form p {
  820. text-align: right !important;
  821. }
  822. html[dir="rtl"] .sidebar-menu > li > a > i {
  823. transform: scaleX(-1);
  824. -moz-transform: scaleX(-1);
  825. -webkit-transform: scaleX(-1);
  826. -ms-transform: scaleX(-1);
  827. }
  828. html[dir="rtl"] .main-sidebar .sidebar-footer {
  829. right:0 !important;
  830. left:unset !important;
  831. }
  832. html[dir="rtl"] .main-sidebar .sidebar-footer ul.footer-drop {
  833. transform: translate(-269px, 2px) !important;
  834. }
  835. html[dir="rtl"] .main-sidebar .sidebar-footer #dropdownMenu2 {
  836. text-align: right !important;
  837. padding-right: 45px !important;
  838. }
  839. html[dir="rtl"] .main-sidebar .sidebar-footer button .pull-right-container {
  840. right: unset !important;
  841. left: calc(100% - 93%) !important;
  842. }
  843. html[dir="rtl"] .main-sidebar .sidebar-footer #dropdownMenu2 i {
  844. transform: scaleX(-1);
  845. -moz-transform: scaleX(-1);
  846. -webkit-transform: scaleX(-1);
  847. -ms-transform: scaleX(-1);
  848. }
  849. html[dir="rtl"] header .logo-box {
  850. margin-right: -25.76rem !important;
  851. margin-left:unset !important;
  852. float:right !important;
  853. }
  854. .sidebar-menu > li:hover > a > i, .sidebar-menu > li:active > a > i, .sidebar-menu > li.active > a > i {
  855. margin-bottom: 0 !important;
  856. }
  857. .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 {
  858. padding:5px; !important;
  859. }
  860. html[dir="rtl"] .sidebar-menu > li:hover > a, html[dir="rtl"] .sidebar-menu > li:active > a, html[dir="rtl"] .sidebar-menu > li.active > a {
  861. padding:8px 30px; !important;
  862. }
  863. h3[style="margin-left: 10px"] {
  864. margin-right: 10px; !important;
  865. margin-left:unset !important;
  866. }
  867. html[dir="rtl"] .sidebar-menu > li .notification-badge {
  868. margin-right: 5px !important;
  869. right: unset !important;
  870. }
  871. html[dir="rtl"] .sidebar-menu li svg {
  872. margin-top: unset !important;
  873. }
  874. html[dir="rtl"] .sidebar-menu li > a > i {
  875. width: 24px !important;
  876. height: auto !important;
  877. line-height: 50% !important;
  878. margin-right: 0 !important;
  879. margin-left: 3px !important;
  880. }
  881. html[dir="rtl"] .main-header .logo {
  882. text-align: right !important;
  883. padding-right: 45px !important;
  884. }
  885. html[dir="rtl"] foreignObject[x="10"] .ct-label.ct-vertical.ct-start{
  886. -webkit-transform:rotateY(180deg);
  887. -moz-transform:rotateY(180deg);
  888. -o-transform:rotateY(180deg);
  889. -ms-transform:rotateY(180deg);
  890. justify-content: flex-start !important
  891. }
  892. html[dir="rtl"] .sidebar-menu > li > a {
  893. padding: 8px 30px !important;
  894. }
  895. html[dir="rtl"] .ct-chart-bar.ct-horizontal-bars {
  896. transform: scaleX(-1);
  897. -moz-transform: scaleX(-1);
  898. -webkit-transform: scaleX(-1);
  899. -ms-transform: scaleX(-1);
  900. }
  901. html[dir="rtl"] .btn-primary.add-outlet {
  902. float:left !important;
  903. }
  904. html[dir="rtl"] .has-search a {
  905. left: 15px !important;
  906. right:unset !important;
  907. }
  908. html[dir="rtl"] .content-wrapper .order-sections-list .media-list .media {
  909. flex-direction: row-reverse !important;
  910. }
  911. html[dir="rtl"] .content-wrapper .order-sections-list .search-div [type="search"] {
  912. border-right-width:1px !important;
  913. border-left-width:0 !important;
  914. }
  915. html[dir="rtl"] .content-wrapper .order-sections-list .search-div .btn {
  916. border-left-width:1px !important;
  917. border-right-width:0 !important;
  918. }
  919. html[dir="rtl"] .content-wrapper .content .row:first-child .col-6:nth-child(2) .btn {
  920. float:left !important;
  921. margin-left: 10px !important;
  922. }
  923. html[dir="rtl"] .content-wrapper .content .col-md-5 .btn.add-discount {
  924. float:left !important;
  925. margin-left: 15px !important;
  926. }
  927. html[dir="rtl"] .content .dataTables_wrapper .row:first-child {
  928. flex-direction: row-reverse !important;
  929. }
  930. html[dir="rtl"] a.search-location {
  931. right: unset !important;
  932. top: 27px !important;
  933. left: 15px !important;
  934. }
  935. html[dir="rtl"] [name="delivery_fee"], html[dir="rtl"] [name="min_basket"] {
  936. border-top-right-radius: 0 !important;
  937. border-bottom-right-radius: 0 !important;
  938. border-right: 0 !important;
  939. border-top-left-radius: 10px !important;
  940. border-bottom-left-radius: 10px !important;
  941. border-left:1px solid #ced4da !important;
  942. }
  943. html[dir="rtl"] .input-group:has([name="delivery_fee"]) .input-group-addon, html[dir="rtl"] .input-group:has([name="min_basket"]) .input-group-addon {
  944. border-top-right-radius: 10px !important;
  945. border-bottom-right-radius: 10px !important;
  946. border-top-left-radius: 0 !important;
  947. border-bottom-left-radius: 0 !important;
  948. border-left: 0 !important;
  949. }
  950. html[dir="rtl"] .form-group:has(a.search-location) #pac-input {
  951. position:unset !important;
  952. }
  953. html[dir="rtl"] .form-group:has(a.search-location) {
  954. float:right !important;
  955. padding-top:26px !important;
  956. }
  957. html[dir="rtl"] .order-section .actions {
  958. right: unset !important;
  959. left:5px !important
  960. }
  961. html[dir="rtl"] foreignObject:not([x="10"]) .ct-label.ct-horizontal.ct-end {
  962. -webkit-transform:rotateY(180deg);
  963. -moz-transform:rotateY(180deg);
  964. -o-transform:rotateY(180deg);
  965. -ms-transform:rotateY(180deg);
  966. justify-content: flex-start !important
  967. }
  968. html[dir="rtl"] [type="checkbox"]:not(:checked), html[dir="rtl"] [type="checkbox"]:checked {
  969. left: unset !important;
  970. right: -9999px !important;
  971. }
  972. html[dir="rtl"] .p-outletnameP {
  973. padding-right: 47px;
  974. padding-left: unset !important;
  975. }
  976. ul:has(.change-lang) {
  977. display: flex;
  978. list-style: none;
  979. }
  980. li:has( > .change-lang) {
  981. background: hsla(0,0%,100%,.4);
  982. border-radius: 20px;
  983. color: #828282;
  984. float: left;
  985. font-size: 10px;
  986. height: 20px;
  987. line-height: 20px;
  988. margin: 2px;
  989. text-align: center;
  990. width: 20px;
  991. }
  992. html[dir="rtl"] li:has( > .change-lang[data-lang="ar"]) {
  993. background: #fff;
  994. color: #000;
  995. height: 22px;
  996. line-height: 22px;
  997. margin-top: 1px;
  998. width: 22px;
  999. }
  1000. html[lang="en"] li:has( > .change-lang[data-lang="en"]) {
  1001. background: #fff;
  1002. color: #000;
  1003. height: 22px;
  1004. line-height: 22px;
  1005. margin-top: 1px;
  1006. width: 22px;
  1007. }
  1008. @media (min-width: 768px) {
  1009. html[dir="rtl"] .col-md-5:has(.btn-primary.add-outlet) {
  1010. width:50% !important;
  1011. }
  1012. html[dir="rtl"] .col-md-5:has(.btn.add-discount) {
  1013. width:50% !important;
  1014. }
  1015. html[dir="rtl"] .content-wrapper:has(.order-sections-list) {
  1016. width: calc(100% - 270px) !important;
  1017. margin-right: 270px !important;
  1018. }
  1019. }
  1020. @media (max-width: 641px) {
  1021. html[dir="rtl"] .content-wrapper {
  1022. width: 100% !important;
  1023. margin-right: 0 !important;
  1024. }
  1025. html[dir="rtl"] .main-sidebar .sidebar-footer ul.footer-drop {
  1026. transform: translate(-226px, 2px) !important;
  1027. }
  1028. html[dir="rtl"] header .logo-box {
  1029. margin-right: 0 !important;
  1030. }
  1031. html[dir="rtl"] header .logo-box .left_bar {
  1032. order: -1 !important;
  1033. }
  1034. .main-header > div .logo .logo-lg {
  1035. margin-right: calc(100% + -200%) !important;
  1036. margin-left:unset !important;
  1037. }
  1038. html[dir="rtl"] .main-sidebar .sidebar-footer .resto-name-long {
  1039. padding-left: 30px !important;
  1040. margin-right: 10px !important;
  1041. top:0 !important;
  1042. }
  1043. html[dir="rtl"] .order-sections-list{
  1044. /*width: 100% !important;
  1045. position: unset !important;*/
  1046. }
  1047. html[dir="rtl"] .text-end:has(.print) {
  1048. text-align: left !important;
  1049. }
  1050. /*.mlist_li.selected .box:not(.bg-danger) {
  1051. background-color:#000 !important;
  1052. }
  1053. .mlist_li.selected .box.bg-danger {
  1054. background-color:#e66430 !important;
  1055. }
  1056. .mlist_li.selected {
  1057. color: #fff !important;
  1058. background-color: transparent !important;
  1059. }
  1060. .mlist_li.selected .media-list {
  1061. color: #fff !important;
  1062. background-color: transparent !important;
  1063. }*/
  1064. .mlist_li.selected p {
  1065. color: #fff !important;
  1066. }
  1067. .mlist_li.selected p {
  1068. color: #fff !important;
  1069. }
  1070. .media-list-hover > .media:not(.media-list-header):not(.media-list-footer):hover, .media-list-hover .media-list-body > .media:hover {
  1071. background-color: transparent !important;
  1072. }
  1073. .fixed .main-header {
  1074. z-index: 999999 !important;
  1075. }
  1076. }
  1077. /* CSS by Sadaf(customdev) end */
  1078. </style>
  1079. </head>
  1080. <body class="light-skin sidebar-mini theme-primary fixed">
  1081. <div class="wrapper">
  1082. <div id="loader"></div>
  1083. @include('inc.header')
  1084. @if(\Illuminate\Support\Facades\Auth::user()->role=="administrator")
  1085. @include('inc.sidebar_admin')
  1086. @elseif(\Illuminate\Support\Facades\Auth::user()->role=="resto_user")
  1087. @include('inc.sidebar_resto_user')
  1088. @else
  1089. @include('inc.sidebar_resto')
  1090. @endif
  1091. @yield('content')
  1092. @php
  1093. if(\Illuminate\Support\Facades\Auth::user()->role=="restaurant"){
  1094. $placed_order = false;
  1095. $recent_till = \Carbon\Carbon::now()->subDays(2)->format('Y-m-d');;
  1096. $one_order = \Illuminate\Support\Facades\Auth::user()->restaurants->id;
  1097. $order1 = \App\Orders::where('status','Placed')->where('resto_id',$one_order)->where('created_at','>=',$recent_till)->first();
  1098. if(isset($order1) && $order1->status=="Placed"){
  1099. $placed_order = true;
  1100. }
  1101. //dump($order);
  1102. }
  1103. @endphp
  1104. {{-- @include('inc.sidebar_resto_right')--}}
  1105. {{--<footer class="main-footer" style="font-size: 10px">
  1106. <video controls="controls" src="{!! env('APP_URL') !!}/1sec.avi" muted autoplay loop style="display:none">
  1107. Your browser does not support the HTML5 Video element.
  1108. </video>
  1109. <img src="{!! env('APP_ASSETS') !!}images/favicon.png" height="18" /> meem powered by <img src="{!! env('APP_ASSETS') !!}images/taiftec.png" height="16" />
  1110. </footer>--}}
  1111. <input type="button" id="toggle" value="Wake Lock is disabled" style="display:none"/>
  1112. </div>
  1113. </body>
  1114. <script src="{!! env('APP_ASSETS') !!}js/vendors.min.js"></script>
  1115. <script src="{!! env('APP_ASSETS') !!}js/pages/chat-popup.js"></script>
  1116. <script src="{!! env('APP_ASSETS') !!}icons/feather-icons/feather.min.js"></script>
  1117. <script src="{!! env('APP_ASSETS') !!}vendor_components/progressbar.js-master/dist/progressbar.js"></script>
  1118. <script src="{!! env('APP_ASSETS') !!}vendor_components/OwlCarousel2/dist/owl.carousel.js"></script>
  1119. <script src="{!! env('APP_ASSETS') !!}vendor_components/datatable/datatables.min.js"></script>
  1120. <script src="{!! env('APP_ASSETS') !!}vendor_components/jquery-toast-plugin-master/src/jquery.toast.js"></script>
  1121. <script src="{!! env('APP_ASSETS') !!}js/printThis.js"></script>
  1122. <script src="{!! env('APP_ASSETS') !!}js/jquery.uploadPreview.js"></script>
  1123. <script src="{!! env('APP_ASSETS') !!}js/jquery.validate.min.js"></script>
  1124. <script src="{!! env('APP_ASSETS') !!}js/jquery.form.js"></script>
  1125. <script src="{!! env('APP_ASSETS') !!}js/NoSleep.min.js"></script>
  1126. <!-- Riday Admin App -->
  1127. <script src="//js.pusher.com/3.1/pusher.min.js"></script>
  1128. <script src="{!! env('APP_ASSETS') !!}js/template.js"></script>
  1129. <script type="text/javascript">
  1130. var progress_img = '<img src="{!! env('APP_ASSETS') !!}images/preloader-1.svg" style="height: 25px;">';
  1131. </script>
  1132. <script>
  1133. //screen.orientation.lock('');
  1134. nosleep();
  1135. function nosleep()
  1136. {
  1137. var noSleep = new NoSleep();
  1138. noSleep.enable();
  1139. }
  1140. </script>
  1141. <!-- AUDIO.JS -->
  1142. <script type="text/javascript">
  1143. const CACHE_NAME = "audioCache";
  1144. const FILE_NAME = 'https://admin.meemapp.net/notif-order.mp3';
  1145. (function main(){
  1146. updateStatus();
  1147. })();
  1148. // Update the status field
  1149. function updateStatus() {
  1150. isCached().then(value => {
  1151. });
  1152. }
  1153. function isCached() {
  1154. return window.caches.open(CACHE_NAME)
  1155. .then(cache => cache.match(FILE_NAME))
  1156. .then(Boolean);
  1157. }
  1158. function addToCache() {
  1159. window.caches.open(CACHE_NAME)
  1160. .then(cache => cache.add(FILE_NAME))
  1161. .then(() => console.log('cached audio file'))
  1162. .catch(e => console.error('failed to cache file', e))
  1163. .finally(updateStatus); // This only works in chrome/ff at the time of writing
  1164. }
  1165. function removeFromCache() {
  1166. window.caches.open(CACHE_NAME)
  1167. .then(cache => cache.delete(FILE_NAME))
  1168. .then(() => console.log('removed cached file'))
  1169. .catch(e => console.error('failed to remove cached file', e))
  1170. .finally(updateStatus); // This only works in chrome/ff at the time of writing
  1171. }
  1172. </script>
  1173. <script>
  1174. if ('serviceWorker' in navigator) {
  1175. var file = "{!! env('APP_ASSETS') !!}js/audio_cache_sw.js"
  1176. navigator.serviceWorker.register(file)
  1177. .then(function(reg) {
  1178. console.log('Registration succeeded.');
  1179. }).catch(function(error) {
  1180. console.log('Registration failed with ' + error);
  1181. });
  1182. }
  1183. </script>
  1184. <!-- END AUDIO.JS -->
  1185. <script>
  1186. /*let src = "https://admin.meemapp.net/notif-order.mp3";
  1187. let audio = new Audio(src);
  1188. audio.loop = true;
  1189. audio.play();
  1190. */
  1191. addToCache();
  1192. var timeFormat = function(datetime){
  1193. var time =datetime;
  1194. var date = new Date(time);
  1195. date = date.getFullYear()+"-"+date.getMonth()+"-"+date.getDate()+" "+date.getHours()+":"+date.getMinutes()+":"+date.getMilliseconds();
  1196. return date;
  1197. };
  1198. 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 !!}";
  1199. var site_url = "{!! env('APP_URL') !!}";
  1200. logged_user = parseInt(logged_user);
  1201. $(function () {
  1202. $('[data-toggle="tooltip"]').tooltip();
  1203. // $('#dataTable').DataTable();
  1204. $("body").on("click",".notifications",function () {
  1205. $.ajax({
  1206. url:"{!! env('APP_URL') !!}read/notifications",
  1207. success:function (response) {
  1208. $(".badge-counter").attr("data-count",0);
  1209. $(".badge-counter").html("");
  1210. }
  1211. });
  1212. });
  1213. })
  1214. </script>
  1215. <script>
  1216. let src = "{!! env('APP_URL') !!}notif-order.mp3";
  1217. let audio = new Audio(src);
  1218. audio.loop = true;
  1219. @if(\Illuminate\Support\Facades\Auth::user()->role=="restaurant")
  1220. @if(Route::currentRouteName()=="OrderListing" || $placed_order)
  1221. @if((isset($is_pending_order) && !empty($is_pending_order)) || $placed_order)
  1222. audio.play();
  1223. @endif
  1224. @endif
  1225. @endif
  1226. var pusher = new Pusher('{{env("PUSHER_APP_KEY")}}', {
  1227. cluster: '{{env("PUSHER_APP_CLUSTER")}}',
  1228. encrypted: true
  1229. });
  1230. var notification_counter = parseInt($(".badge-counter").data('count'));
  1231. var new_order_count = parseInt($("#order-counter").html());
  1232. if(new_order_count=="")
  1233. new_order_count = 0;
  1234. var channel = pusher.subscribe("{!! env('PUHER_APP_CHANNEL') !!}");
  1235. channel.bind('App\\Events\\OrderNotification', function(data) {
  1236. console.log(data);
  1237. var order_resto_id = parseInt(data.order_resto_id);
  1238. if(order_resto_id==logged_user && data.notification_for=="update-order-status"){
  1239. $(".order-section").hide();
  1240. $(".no-order").show();
  1241. // location.reload();
  1242. audio.pause();
  1243. $("#orders-list").html('');
  1244. var after_pusher_status = $(".nav-link.active").data('status');
  1245. if(after_pusher_status && after_pusher_status=="")
  1246. after_pusher_status = "all";
  1247. $.ajax({
  1248. url:"{!! env('APP_URL') !!}liveorders/"+after_pusher_status,
  1249. success:function (response) {
  1250. //response = $.parseJSON(response);
  1251. if(response){
  1252. $.each(response.orders,function (i,v) {
  1253. var str='<li class="mlist_li" rel="detail" data-order-id="'+v.id+'">\n' +
  1254. ' <div class="box '+v.box_bg+' rounded-0">\n' +
  1255. ' <div class="media-list media-list-divided media-list-hover">\n' +
  1256. ' <div class="media align-items-center">\n' +
  1257. ' <div class="media-body">\n' +
  1258. ' <p>#'+v.order_ref+'</p>\n' +
  1259. ' <p> '+(v.campaign_type!=""?v.campaign_type:"Direct")+', '+v.created_at+'</p>\n' +
  1260. ' </div>\n' +
  1261. ' <div class="media-right gap-items">\n' +
  1262. ' <div class="user-social-acount text-center">\n' +
  1263. ' <p class="m-0 status">'+v.status+'</p>\n' +
  1264. ' <div class="d-flex align-items-center float-end">\n' +
  1265. ' <div class="circle-div '+v.bg+' text-center" data-min="'+v.remaining_min+'" data-color="'+v.bg_color+'">\n' +
  1266. ' <p class="mb-5 min">'+v.remaining_min+'<br />\n'+
  1267. ' Min</p>\n'+
  1268. ' </div>\n' +
  1269. ' </div>\n' +
  1270. ' </div>\n' +
  1271. ' </div>\n' +
  1272. ' </div>\n' +
  1273. ' </div>\n' +
  1274. ' </div>\n' +
  1275. '</li>';
  1276. counter = counter+1;
  1277. $("#orders-list").append(str);
  1278. });
  1279. $("span."+status).html(counter);
  1280. }
  1281. }
  1282. });
  1283. $.ajax({
  1284. url: "{!! env('APP_URL') !!}order/counts",
  1285. success: function (response) {
  1286. // response = $.parseJSON(response);
  1287. var total_accepted = 0;
  1288. var total = 0;
  1289. $.each(response,function (i,v) {
  1290. if(v.status=="Send_to_Kitchen" || v.status=="Accepted"){
  1291. total_accepted+=parseInt(v.status_count);
  1292. total+=parseInt(v.status_count);
  1293. $(".labelcenter.kitchen").text(total_accepted);
  1294. }
  1295. if(v.status=="On_Road"){
  1296. $(".labelcenter.route").text(v.status_count);
  1297. total+=parseInt(v.status_count);
  1298. }
  1299. if(v.status=="Placed"){
  1300. $(".labelcenter.new").html(v.status_count);
  1301. total+=parseInt(v.status_count);
  1302. if(parseInt(v.status_count) > 0){
  1303. $("#order-counter").html(v.status_count);
  1304. $("#order-counter").show();
  1305. }else{
  1306. audio.pause();
  1307. $("#order-counter").html(0);
  1308. $("#order-counter").hide();
  1309. }
  1310. }
  1311. });
  1312. $(".labelcenter.all").text(total);
  1313. }
  1314. });
  1315. $(".mlist_li[data-order-id="+data.order_id+"]").remove();
  1316. }
  1317. var resto_id = parseInt(data.resto_id);
  1318. if(resto_id==logged_user){
  1319. audio.play();
  1320. var new_order = (data.order_data);
  1321. var v = new_order;
  1322. var li = '<li class="mlist_li" rel="detail" data-order-id="'+v.id+'">\n' +
  1323. ' <div class="box bg-danger rounded-0">\n' +
  1324. ' <div class="media-list media-list-divided media-list-hover">\n' +
  1325. ' <div class="media align-items-center">\n' +
  1326. ' <div class="media-body">\n' +
  1327. ' <p>#'+v.order_ref+'</p>\n' +
  1328. ' <p> '+(v.campaign_type?v.campaign_type:"Direct")+', Just now</p>\n' +
  1329. ' </div>\n' +
  1330. ' <div class="media-right gap-items">\n' +
  1331. ' <div class="user-social-acount text-center">\n' +
  1332. ' <p class="m-0 status">New</p>\n' +
  1333. ' <div class="d-flex align-items-center float-end">\n' +
  1334. ' <div class="circle-div blu-bg text-center">\n' +
  1335. ' <p class="mb-5 min">0<br />\n' +
  1336. ' Min</p>\n' +
  1337. ' </div>\n' +
  1338. ' </div>\n' +
  1339. ' </div>\n' +
  1340. ' </div>\n' +
  1341. ' </div>\n' +
  1342. ' </div>\n' +
  1343. ' </div>\n' +
  1344. '</li>';
  1345. /* var action_list = '<div class="btn-group">\n' +
  1346. ' <a class="hover-primary dropdown-toggle no-caret" data-bs-toggle="dropdown"><i class="fa fa-ellipsis-h"></i></a>\n' +
  1347. ' <div class="dropdown-menu">\n' +
  1348. ' <a class="dropdown-item order-status" href="#!" data-id="'+new_order.id+'" data-status="Accepted">Accepted</a>\n' +
  1349. ' <a class="dropdown-item order-status" href="#!" data-id="'+new_order.id+'" data-status="Rejected">Rejected</a>\n' +
  1350. ' <a class="dropdown-item order-status" href="#!" data-id="'+new_order.id+'" data-status="Rejected_by_User">Rejected by User</a>\n' +
  1351. ' \n' +
  1352. ' </div>\n' +
  1353. ' </div>';
  1354. var row = '<tr class="special order-row" data-id="'+new_order.id+'">';
  1355. row+='<td>'+new_order.order_ref+'</td>';
  1356. row+='<td>'+timeFormat(new_order.created_at)+'</td>';
  1357. row+='<td>'+new_order.customer_name+'</td>';
  1358. row+='<td>'+ data.customer_mobile+ '</td>';
  1359. row+='<td>'+data.customer_location+'</td>';
  1360. row+='<td>'+new_order.order_type+'</td>';
  1361. // row+='<td>'+new_order.campaign_name+'</td>';
  1362. // row+='<td>'+new_order.campaign_date+'</td>';
  1363. row+='<td>'+new_order.campaign_type+'</td>';
  1364. row+='<td>'+data.total_price+'</td>';
  1365. /!* row+='<td>'+(new_order.order_deliver_time?new_order.order_deliver_time:"(اقرب وقت)\t")+'</td>';*!/
  1366. row+='<td><span class="badge badge-info-light">Placed</span></td>';
  1367. row+='<td>'+action_list+'</td>';
  1368. row+='</tr>';*/
  1369. $.ajax({
  1370. url: "{!! env('APP_URL') !!}order/counts",
  1371. success: function (response) {
  1372. // response = $.parseJSON(response);
  1373. var total_accepted = 0;
  1374. var total = 0;
  1375. $.each(response,function (i,v) {
  1376. if(v.status=="Send_to_Kitchen" || v.status=="Accepted"){
  1377. total_accepted+=parseInt(v.status_count);
  1378. total+=parseInt(v.status_count);
  1379. $(".labelcenter.kitchen").text(total_accepted);
  1380. }
  1381. if(v.status=="On_Road"){
  1382. $(".labelcenter.route").text(v.status_count);
  1383. total+=parseInt(v.status_count);
  1384. }
  1385. if(v.status=="Placed"){
  1386. $(".labelcenter.new").text(v.status_count);
  1387. total+=parseInt(v.status_count);
  1388. if(parseInt(v.status_count) > 0){
  1389. $("#order-counter").html(v.status_count);
  1390. $("#order-counter").show();
  1391. }
  1392. }
  1393. });
  1394. $(".labelcenter.all").text(total);
  1395. }
  1396. });
  1397. @if(\Illuminate\Support\Facades\Auth::user()->role=="restaurant")
  1398. @if(Route::currentRouteName()=="OrderListing")
  1399. $("#orders-list").prepend(li);
  1400. @endif
  1401. @endif
  1402. // $("#new-order-tables tbody").prepend(row);
  1403. // $("#new-orders-modal").modal();
  1404. setTimeout(function () {
  1405. $("#new-orders-modal").modal('hide');
  1406. },30000);
  1407. var notification = '<li>\n' +
  1408. ' <a href="{!! env('APP_URL') !!}order/show/'+data.order_id+'">\n' +
  1409. ' <i class="fa fa-users text-info"></i> '+data.message+'.\n' +
  1410. ' </a>\n' +
  1411. ' </li>';
  1412. $("#notifications").prepend(notification);
  1413. notification_counter += 1;
  1414. new_order_count += 1;
  1415. $(".badge-counter").attr('data-count',notification_counter);
  1416. $(".badge-counter").html(notification_counter);
  1417. $("#order-counter").html(new_order_count);
  1418. $("#order-counter").show();
  1419. }
  1420. });
  1421. $("body").on("click",".push-btn",function () {
  1422. $(".main-sidebar").toggleClass('sidebar-active')
  1423. });
  1424. $("body").on("click",".change-lang",function () {
  1425. var _lang = $(this).data('lang');
  1426. $.ajax({
  1427. url:"{!! env('APP_URL') !!}change/lang/"+_lang,
  1428. success:function(){
  1429. location.reload();
  1430. }
  1431. });
  1432. });
  1433. </script>
  1434. </html>
  1435. @yield('js')