app.blade.php 60 KB

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