app.blade.php_27apil-2 57 KB

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