app.blade.php_prod 52 KB

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