app.blade.php_5 52 KB

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