app.blade.php27april-3 57 KB

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