app.blade.php_27apr 55 KB

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