var/cache/dev/twig/18/180fca46cde27f5151af5f5ac7bb1caf.php line 453

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* fos/parcels/view_parcel.html.twig */
  16. class __TwigTemplate_9ba2ddc99e46a3f9212d7bd469af39a5 extends Template
  17. {
  18. private Source $source;
  19. /**
  20. * @var array<string, Template>
  21. */
  22. private array $macros = [];
  23. public function __construct(Environment $env)
  24. {
  25. parent::__construct($env);
  26. $this->source = $this->getSourceContext();
  27. $this->blocks = [
  28. 'firstnav' => [$this, 'block_firstnav'],
  29. 'secondnav' => [$this, 'block_secondnav'],
  30. 'current' => [$this, 'block_current'],
  31. 'secondarylinkblock' => [$this, 'block_secondarylinkblock'],
  32. 'stylesheets' => [$this, 'block_stylesheets'],
  33. 'main' => [$this, 'block_main'],
  34. ];
  35. }
  36. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  37. {
  38. // line 1
  39. return "fos/base.html.twig";
  40. }
  41. protected function doDisplay(array $context, array $blocks = []): iterable
  42. {
  43. $macros = $this->macros;
  44. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  45. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "fos/parcels/view_parcel.html.twig"));
  46. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  47. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "fos/parcels/view_parcel.html.twig"));
  48. $this->parent = $this->loadTemplate("fos/base.html.twig", "fos/parcels/view_parcel.html.twig", 1);
  49. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  50. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  51. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  52. }
  53. // line 5
  54. /**
  55. * @return iterable<null|scalar|\Stringable>
  56. */
  57. public function block_firstnav(array $context, array $blocks = []): iterable
  58. {
  59. $macros = $this->macros;
  60. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  61. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "firstnav"));
  62. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  63. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "firstnav"));
  64. // line 6
  65. yield " ";
  66. yield $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Parcels\\DefaultController::nav"));
  67. yield "
  68. ";
  69. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  70. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  71. yield from [];
  72. }
  73. // line 8
  74. /**
  75. * @return iterable<null|scalar|\Stringable>
  76. */
  77. public function block_secondnav(array $context, array $blocks = []): iterable
  78. {
  79. $macros = $this->macros;
  80. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  81. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "secondnav"));
  82. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  83. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "secondnav"));
  84. // line 9
  85. yield "
  86. <script src=\"https://printjs-4de6.kxcdn.com/print.min.js\"></script>
  87. <link rel=\"stylesheet\" type=\"text/css\" href=\"https://printjs-4de6.kxcdn.com/print.min.css\">
  88. <script src=\"https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.1/jspdf.umd.min.js\"></script>
  89. <script src=\"https://cdnjs.cloudflare.com/ajax/libs/html2canvas/1.4.1/html2canvas.min.js\"
  90. integrity=\"sha512-BNaRQnYJYiPSqHHDb58B0yaPfCu+Wgds8Gp/gU33kqBtgNS4tSPHuGibyoeqMV/TJlSKda6FXzoEyYGjTe+vXA==\"
  91. crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\"></script>
  92. <script src=\"https://cdnjs.cloudflare.com/ajax/libs/dompurify/2.4.0/purify.min.js\" integrity=\"sha512-/hVAZO5POxCKdZMSLefw30xEVwjm94PAV9ynjskGbIpBvHO9EBplEcdUlBdCKutpZsF+La8Ag4gNrG0gAOn3Ig==\" crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\"></script>
  93. ";
  94. // line 22
  95. yield "
  96. <!-- Second Nav -->
  97. <nav class=\"navbar-second navbar navbar-default navbar-static-top\" role=\"navigation\">
  98. <div class=\"container-fluid\">
  99. <div class=\"navbar-header\">
  100. <button type=\"button\" class=\"navbar-toggle collapsed\" data-toggle=\"collapse\"
  101. data-target=\"#bs-example-navbar-collapse-1\">
  102. <span class=\"sr-only\">Toggle navigation</span>
  103. <span class=\"icon-bar\"></span>
  104. <span class=\"icon-bar\"></span>
  105. <span class=\"icon-bar\"></span>
  106. </button>
  107. <!-- Brand -->
  108. ";
  109. // line 36
  110. yield from $this->unwrap()->yieldBlock('current', $context, $blocks);
  111. // line 39
  112. yield " </div>
  113. <div class=\"collapse navbar-collapse animated fadeIn\" id=\"bs-example-navbar-collapse-1\">
  114. <ul class=\"nav navbar-nav animated fadeIn\">
  115. ";
  116. // line 43
  117. yield from $this->unwrap()->yieldBlock('secondarylinkblock', $context, $blocks);
  118. // line 49
  119. yield " </ul>
  120. <ul class=\"nav navbar-nav navbar-right\">
  121. <li class=\"\"><a></a></li>
  122. ";
  123. // line 53
  124. yield " </ul>
  125. </div><!-- /.navbar-collapse -->
  126. </div><!-- /.container-fluid -->
  127. </nav>
  128. ";
  129. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  130. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  131. yield from [];
  132. }
  133. // line 36
  134. /**
  135. * @return iterable<null|scalar|\Stringable>
  136. */
  137. public function block_current(array $context, array $blocks = []): iterable
  138. {
  139. $macros = $this->macros;
  140. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  141. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "current"));
  142. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  143. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "current"));
  144. // line 37
  145. yield " <span class=\"navbar-brand\" href=\"#\"><i class=\"fa fa-gears\"></i> PARCEL TO ";
  146. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["transaction"]) || array_key_exists("transaction", $context) ? $context["transaction"] : (function () { throw new RuntimeError('Variable "transaction" does not exist.', 37, $this->source); })()), "wayBill", [], "any", false, false, false, 37), "toStation", [], "any", false, false, false, 37), "html", null, true);
  147. yield "</span>
  148. ";
  149. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  150. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  151. yield from [];
  152. }
  153. // line 43
  154. /**
  155. * @return iterable<null|scalar|\Stringable>
  156. */
  157. public function block_secondarylinkblock(array $context, array $blocks = []): iterable
  158. {
  159. $macros = $this->macros;
  160. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  161. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "secondarylinkblock"));
  162. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  163. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "secondarylinkblock"));
  164. // line 44
  165. yield " ";
  166. // line 45
  167. yield " ";
  168. // line 46
  169. yield " <li class=\"\"><a href=\"";
  170. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 46, $this->source); })()), "request", [], "any", false, false, false, 46), "headers", [], "any", false, false, false, 46), "get", ["referer"], "method", false, false, false, 46), "html", null, true);
  171. yield "\"><i class=\"fa fa-arrow-circle-left\"></i> Back</a></li>
  172. ";
  173. // line 48
  174. yield " ";
  175. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  176. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  177. yield from [];
  178. }
  179. // line 60
  180. /**
  181. * @return iterable<null|scalar|\Stringable>
  182. */
  183. public function block_stylesheets(array $context, array $blocks = []): iterable
  184. {
  185. $macros = $this->macros;
  186. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  187. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
  188. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  189. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
  190. // line 61
  191. yield " <style>
  192. /*@import \"../../../../../web/assets/css/print.css\";*/
  193. h6{
  194. font-weight: bold;
  195. }
  196. h3 {
  197. /*font-size: 20px;*/
  198. }
  199. h5,h3,h4,p {
  200. padding: 0px;
  201. font-family: \"Amaranth\", sans-serif;
  202. background: #ffffff;
  203. }
  204. legend {
  205. border: none;
  206. padding: 5px;
  207. }
  208. .print-area h5, .print-area h3, .print-area h4 {
  209. padding: 0px;
  210. font-family: \"Nova Flat\", sans-serif;
  211. background: #ffffff;
  212. border: none;
  213. margin: 0;
  214. }
  215. .print-area p {
  216. font-size: 12px;
  217. padding: 4px;
  218. margin: 0px;
  219. line-height: 10px;
  220. border: none;
  221. }
  222. hr {
  223. margin-top: 1px;
  224. margin-bottom: 1px;
  225. border-top: 2px dashed rgba(0, 0, 0, 0.99);
  226. }
  227. .print-area hr {
  228. border-top: 1px dashed rgba(0, 0, 0, 0.99);
  229. }
  230. .print-area {
  231. width: 28%;
  232. background: white;
  233. /*border: 1px dotted;*/
  234. padding: 2%;
  235. display: none;
  236. /*background-color: firebrick;*/
  237. }
  238. .print-area table {
  239. font-family: 'Fjord One', serif;
  240. }
  241. element.style {
  242. }
  243. fieldset {
  244. display: block;
  245. margin-left: 0px;
  246. margin-right: 2px;
  247. border-top: 1px dotted black;
  248. }
  249. .kkk fieldset{
  250. float: right;
  251. width: 40%;
  252. }
  253. .detail{
  254. padding: 0px;
  255. font-size: 11px;
  256. border: none;
  257. }
  258. @media print {
  259. .sf-toolbar, .sf-display-none, .sf-minitoolbar {
  260. display: none;
  261. }
  262. .print-area {
  263. display: block;
  264. }
  265. @page {
  266. margin: 0 !important;
  267. }
  268. html {
  269. margin: 0 !important;
  270. }
  271. body {margin:0 !important;}
  272. .print-area {
  273. width: 100%;
  274. }
  275. .pro {
  276. display: none;
  277. }
  278. .sf-toolbar, .sf-toolbarreset, .sf-minitoolbar {
  279. display: none;
  280. }
  281. /*.page-break {display: block; page-break-before: always }*/
  282. .page-break {
  283. page-break-before: avoid;
  284. }
  285. .page-break {
  286. page-break-after: always;
  287. }
  288. pre, blockquote {
  289. page-break-inside: avoid;
  290. }
  291. }
  292. .parcel {
  293. font-family: 'Big Shoulders Text', cursive;
  294. margin-bottom: 10px;
  295. margin-left: 10px;
  296. }
  297. .parcel h3, .parcel span{
  298. font-family: 'Merriweather', serif;
  299. margin-top: 15px;
  300. }
  301. .sender_receiver .col-lg-6 + fieldset {
  302. box-shadow: 5px 3px 20px #888888;
  303. }
  304. .sender_receiver fieldset{
  305. background-color: beige;
  306. border-top: 1px solid #d3cece;
  307. }
  308. .sender_receiver fieldset legend{
  309. background-color: beige;
  310. border: 1px solid #d3cece;
  311. }
  312. .sender_receiver fieldset h5{
  313. background: none;
  314. }
  315. .destinations {
  316. float: left;
  317. width: 50%;
  318. padding: 10px;
  319. font-family: 'Open Sans', sans-serif;
  320. margin-bottom: 15px;
  321. }
  322. .destinations h4, .destinations b {
  323. font-family: 'Merriweather', serif;
  324. }
  325. .destinations h3 {
  326. margin-bottom: 10px;
  327. }
  328. .description {
  329. font-size: 37px;
  330. margin-left: 10px;
  331. }
  332. .all_parcels{
  333. text-transform: uppercase;
  334. -ms-transform: rotate(90deg);
  335. -moz-transform: rotate(90deg);
  336. -webkit-transform: rotate(90deg);
  337. -o-transform: rotate(90deg);
  338. margin-top: 115px;
  339. width: 430px;
  340. margin-left: -60px;
  341. }
  342. .payment button, .print, .payment a {
  343. width: 150px;
  344. border-radius: 30px;
  345. }
  346. .payment .cash {
  347. float: right;
  348. }
  349. .payment .cash img {
  350. height: 20px;
  351. }
  352. </style>
  353. ";
  354. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  355. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  356. yield from [];
  357. }
  358. // line 261
  359. /**
  360. * @return iterable<null|scalar|\Stringable>
  361. */
  362. public function block_main(array $context, array $blocks = []): iterable
  363. {
  364. $macros = $this->macros;
  365. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  366. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
  367. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  368. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
  369. // line 262
  370. yield " <div class=\"row pro\" style=\"padding: 10px 0px 20px 20px; /*border-right: 1px solid #888888;*/ background: #FFFFFF; /*box-shadow: 5px 3px 20px #888888;*/\">
  371. <h3 style=\"font-family:Serif;margin-top: 30px;\">WayBill: ";
  372. // line 263
  373. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["transaction"]) || array_key_exists("transaction", $context) ? $context["transaction"] : (function () { throw new RuntimeError('Variable "transaction" does not exist.', 263, $this->source); })()), "wayBill", [], "any", false, false, false, 263), "id", [], "any", false, false, false, 263), "html", null, true);
  374. yield " - ";
  375. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["transaction"]) || array_key_exists("transaction", $context) ? $context["transaction"] : (function () { throw new RuntimeError('Variable "transaction" does not exist.', 263, $this->source); })()), "cuInvoiceNumber", [], "any", false, false, false, 263), "html", null, true);
  376. yield "</h3>
  377. <div class=\"col-lg-6 pro\">
  378. <div class=\"row sender_receiver\">
  379. <div class=\"col-lg-6\">
  380. <fieldset style=\"box-shadow: 5px 5px 0px #888888;\">
  381. <legend class=\"top-legend\">SENDER</legend>
  382. <div class=\"row\">
  383. <div class=\"col-lg-12\">
  384. <fieldset>
  385. <legend>Name</legend>
  386. <h5>";
  387. // line 275
  388. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::upper($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["transaction"]) || array_key_exists("transaction", $context) ? $context["transaction"] : (function () { throw new RuntimeError('Variable "transaction" does not exist.', 275, $this->source); })()), "waybill", [], "any", false, false, false, 275), "senderName", [], "any", false, false, false, 275)), "html", null, true);
  389. yield "</h5>
  390. </fieldset>
  391. </div>
  392. </div>
  393. <div class=\"row\">
  394. <div class=\"col-lg-12\">
  395. <fieldset>
  396. <legend>Phone</legend>
  397. <h5>";
  398. // line 283
  399. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["transaction"]) || array_key_exists("transaction", $context) ? $context["transaction"] : (function () { throw new RuntimeError('Variable "transaction" does not exist.', 283, $this->source); })()), "waybill", [], "any", false, false, false, 283), "senderPhoneNumber", [], "any", false, false, false, 283), "html", null, true);
  400. yield "</h5>
  401. </fieldset>
  402. </div>
  403. </div>
  404. <div class=\"row\">
  405. <div class=\"col-lg-12\">
  406. <fieldset>
  407. <legend>From</legend>
  408. <h5>";
  409. // line 291
  410. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["transaction"]) || array_key_exists("transaction", $context) ? $context["transaction"] : (function () { throw new RuntimeError('Variable "transaction" does not exist.', 291, $this->source); })()), "waybill", [], "any", false, false, false, 291), "fromStation", [], "any", false, false, false, 291), "html", null, true);
  411. yield "</h5>
  412. </fieldset>
  413. </div>
  414. </div>
  415. </fieldset>
  416. </div>
  417. <div class=\"col-lg-6\">
  418. <fieldset style=\"box-shadow:5px 5px 0px #888888\">
  419. <legend class=\"top-legend\">RECEIVER</legend>
  420. <div class=\"row\">
  421. <div class=\"col-lg-12\">
  422. <fieldset>
  423. <legend>Name</legend>
  424. <h5>";
  425. // line 305
  426. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::upper($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["transaction"]) || array_key_exists("transaction", $context) ? $context["transaction"] : (function () { throw new RuntimeError('Variable "transaction" does not exist.', 305, $this->source); })()), "wayBill", [], "any", false, false, false, 305), "receiverName", [], "any", false, false, false, 305)), "html", null, true);
  427. yield "</h5>
  428. </fieldset>
  429. </div>
  430. </div>
  431. <div class=\"row\">
  432. <div class=\"col-lg-12\">
  433. <fieldset>
  434. <legend>Phone</legend>
  435. <h5>";
  436. // line 313
  437. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["transaction"]) || array_key_exists("transaction", $context) ? $context["transaction"] : (function () { throw new RuntimeError('Variable "transaction" does not exist.', 313, $this->source); })()), "waybill", [], "any", false, false, false, 313), "receiverPhoneNumber", [], "any", false, false, false, 313), "html", null, true);
  438. yield "</h5>
  439. </fieldset>
  440. </div>
  441. </div>
  442. <div class=\"row\">
  443. <div class=\"col-lg-12\">
  444. <fieldset>
  445. <legend>To</legend>
  446. <h5>";
  447. // line 321
  448. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["transaction"]) || array_key_exists("transaction", $context) ? $context["transaction"] : (function () { throw new RuntimeError('Variable "transaction" does not exist.', 321, $this->source); })()), "waybill", [], "any", false, false, false, 321), "toStation", [], "any", false, false, false, 321), "html", null, true);
  449. yield "</h5>
  450. </fieldset>
  451. </div>
  452. </div>
  453. </fieldset>
  454. </div>
  455. </div>
  456. </div>
  457. <div class=\"receipt\" >
  458. <div class=\"row pro\">
  459. <div class=\"col-lg-4 col-md-6\">
  460. <fieldset align=\"center\" style=\"border: 1px dotted black; padding-bottom: 10px;\">
  461. <legend>Cost</legend>
  462. <table width=\"90%\" style=\"text-align: center; align-content: center;\">
  463. <tr>
  464. <td align=\"left\"><h5 align=\"left\" style=\"border: none;\">";
  465. // line 340
  466. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["transaction"]) || array_key_exists("transaction", $context) ? $context["transaction"] : (function () { throw new RuntimeError('Variable "transaction" does not exist.', 340, $this->source); })()), "taxPercentage", [], "any", false, false, false, 340), "html", null, true);
  467. yield "% V.A.T</h5></td>
  468. <td align=\"right\" style=\"font-family: 'Fjord One', Serif; font-weight: bolder;\">";
  469. // line 341
  470. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatNumber(CoreExtension::getAttribute($this->env, $this->source, (isset($context["transaction"]) || array_key_exists("transaction", $context) ? $context["transaction"] : (function () { throw new RuntimeError('Variable "transaction" does not exist.', 341, $this->source); })()), "taxAmount", [], "any", false, false, false, 341), 2, ".", ","), "html", null, true);
  471. yield "</td>
  472. </tr>
  473. <tr style=\"\">
  474. <td align=\"left\"><h5 align=\"left\" style=\"border: none;\">COST</h5></td>
  475. <td align=\"right\" style=\"font-family: 'Fjord One', Serif;font-weight: bolder;\">";
  476. // line 345
  477. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatNumber((CoreExtension::getAttribute($this->env, $this->source, (isset($context["transaction"]) || array_key_exists("transaction", $context) ? $context["transaction"] : (function () { throw new RuntimeError('Variable "transaction" does not exist.', 345, $this->source); })()), "grossAmount", [], "any", false, false, false, 345) - CoreExtension::getAttribute($this->env, $this->source, (isset($context["transaction"]) || array_key_exists("transaction", $context) ? $context["transaction"] : (function () { throw new RuntimeError('Variable "transaction" does not exist.', 345, $this->source); })()), "taxAmount", [], "any", false, false, false, 345)), 2, ".", ","), "html", null, true);
  478. yield "</td>
  479. </tr>
  480. ";
  481. // line 348
  482. $context['_parent'] = $context;
  483. $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["transaction"]) || array_key_exists("transaction", $context) ? $context["transaction"] : (function () { throw new RuntimeError('Variable "transaction" does not exist.', 348, $this->source); })()), "wayBillExpenses", [], "any", false, false, false, 348));
  484. foreach ($context['_seq'] as $context["_key"] => $context["expense"]) {
  485. // line 349
  486. yield " ";
  487. if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["expense"], "expenseType", [], "any", false, false, false, 349), "isAutomatic", [], "any", false, false, false, 349) == false)) {
  488. // line 350
  489. yield " <tr style=\"border-bottom: 1px solid black;\">
  490. <td align=\"left\"><h5 align=\"left\" style=\"border: none;\">";
  491. // line 351
  492. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::upper($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["expense"], "expenseType", [], "any", false, false, false, 351), "expenseName", [], "any", false, false, false, 351)), "html", null, true);
  493. yield "</h5></td>
  494. <td align=\"right\" style=\"font-family: 'Fjord One', Serif; font-weight: bolder;border-right: none;\">-";
  495. // line 352
  496. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["expense"], "amount", [], "any", false, false, false, 352), "html", null, true);
  497. yield "</td>
  498. </tr>
  499. ";
  500. // line 355
  501. yield " ";
  502. }
  503. // line 356
  504. yield " ";
  505. }
  506. $_parent = $context['_parent'];
  507. unset($context['_seq'], $context['_key'], $context['expense'], $context['_parent']);
  508. $context = array_intersect_key($context, $_parent) + $_parent;
  509. // line 357
  510. yield "
  511. <tr style=\"border-bottom: 2px double black;border-top: 2px double black;\">
  512. <td align=\"right\"><h4 align=\"left\" style=\"border: none;\">TOTAL</h4></td>
  513. <td align=\"right\" style=\"font-family: 'Fjord One', Serif; font-weight: bolder;\">KSH ";
  514. // line 360
  515. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatNumber(CoreExtension::getAttribute($this->env, $this->source, (isset($context["transaction"]) || array_key_exists("transaction", $context) ? $context["transaction"] : (function () { throw new RuntimeError('Variable "transaction" does not exist.', 360, $this->source); })()), "stationBalance", [], "any", false, false, false, 360)), "html", null, true);
  516. yield "</td>
  517. </tr>
  518. </table>
  519. </fieldset>
  520. <p style=\"border:none;\">Transaction by: ";
  521. // line 366
  522. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["transaction"]) || array_key_exists("transaction", $context) ? $context["transaction"] : (function () { throw new RuntimeError('Variable "transaction" does not exist.', 366, $this->source); })()), "waybill", [], "any", false, false, false, 366), "createdBy", [], "any", false, false, false, 366), "person", [], "any", false, false, false, 366), "secondName", [], "any", false, false, false, 366), "html", null, true);
  523. yield " ";
  524. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["transaction"]) || array_key_exists("transaction", $context) ? $context["transaction"] : (function () { throw new RuntimeError('Variable "transaction" does not exist.', 366, $this->source); })()), "waybill", [], "any", false, false, false, 366), "createdBy", [], "any", false, false, false, 366), "person", [], "any", false, false, false, 366), "sirName", [], "any", false, false, false, 366), "html", null, true);
  525. yield "</p>
  526. ";
  527. // line 371
  528. if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["transaction"]) || array_key_exists("transaction", $context) ? $context["transaction"] : (function () { throw new RuntimeError('Variable "transaction" does not exist.', 371, $this->source); })()), "isCancelled", [], "any", false, false, false, 371) == false)) {
  529. // line 372
  530. yield " ";
  531. if ((((CoreExtension::getAttribute($this->env, $this->source, (isset($context["transaction"]) || array_key_exists("transaction", $context) ? $context["transaction"] : (function () { throw new RuntimeError('Variable "transaction" does not exist.', 372, $this->source); })()), "isComplete", [], "any", false, false, false, 372) == false) || $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_BOS_USER")) || $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_STATION_ADMIN"))) {
  532. // line 373
  533. yield " ";
  534. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["cancelForm"]) || array_key_exists("cancelForm", $context) ? $context["cancelForm"] : (function () { throw new RuntimeError('Variable "cancelForm" does not exist.', 373, $this->source); })()), 'form_start');
  535. yield "
  536. <button type=\"submit\" class=\"btn btn-sm btn-warning \">cancel transaction</button>
  537. ";
  538. // line 375
  539. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["cancelForm"]) || array_key_exists("cancelForm", $context) ? $context["cancelForm"] : (function () { throw new RuntimeError('Variable "cancelForm" does not exist.', 375, $this->source); })()), 'form_end');
  540. yield "
  541. ";
  542. }
  543. // line 377
  544. yield " ";
  545. }
  546. // line 378
  547. yield " </div>
  548. </div>
  549. </div>
  550. </div>
  551. <div class=\"row\">
  552. <div class=\"row\">
  553. ";
  554. // line 389
  555. if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["transaction"]) || array_key_exists("transaction", $context) ? $context["transaction"] : (function () { throw new RuntimeError('Variable "transaction" does not exist.', 389, $this->source); })()), "isPaid", [], "any", false, false, false, 389)) {
  556. // line 390
  557. yield " ";
  558. if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["transaction"]) || array_key_exists("transaction", $context) ? $context["transaction"] : (function () { throw new RuntimeError('Variable "transaction" does not exist.', 390, $this->source); })()), "isCancelled", [], "any", false, false, false, 390) != true)) {
  559. // line 391
  560. yield " <div class=\"col-lg\">
  561. ";
  562. // line 393
  563. yield " <div class=\"row pro kkk\" style=\"padding: 10px 0px 20px 20px; background: #FFFFFF; margin-left: auto\">
  564. <div class=\"col-lg-12\">
  565. <fieldset>
  566. <legend>Print</legend>
  567. ";
  568. // line 397
  569. if ((isset($context["isCashCanChangeMpesa"]) || array_key_exists("isCashCanChangeMpesa", $context) ? $context["isCashCanChangeMpesa"] : (function () { throw new RuntimeError('Variable "isCashCanChangeMpesa" does not exist.', 397, $this->source); })())) {
  570. // line 398
  571. yield " <a href=\"";
  572. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("payment_request_view", ["waybill" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["transaction"]) || array_key_exists("transaction", $context) ? $context["transaction"] : (function () { throw new RuntimeError('Variable "transaction" does not exist.', 398, $this->source); })()), "wayBill", [], "any", false, false, false, 398), "id", [], "any", false, false, false, 398)]), "html", null, true);
  573. yield "\" class=\"btn btn-success\" style=\"float: left;\">
  574. <i><img src=\"";
  575. // line 399
  576. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("fos/images/m-pesa-icon.svg"), "html", null, true);
  577. yield "\" alt=\"\"></i>
  578. change payment to M-PESA
  579. </a>
  580. ";
  581. }
  582. // line 403
  583. yield "
  584. <div align=\"right\">
  585. ";
  586. // line 406
  587. yield " ";
  588. // line 407
  589. yield "
  590. ";
  591. // line 409
  592. if ( !(null === (isset($context["tims"]) || array_key_exists("tims", $context) ? $context["tims"] : (function () { throw new RuntimeError('Variable "tims" does not exist.', 409, $this->source); })()))) {
  593. // line 410
  594. yield " ";
  595. if (((CoreExtension::getAttribute($this->env, $this->source, (isset($context["tims"]) || array_key_exists("tims", $context) ? $context["tims"] : (function () { throw new RuntimeError('Variable "tims" does not exist.', 410, $this->source); })()), "type", [], "any", false, false, false, 410) == "TYPEC") && (CoreExtension::getAttribute($this->env, $this->source, (isset($context["tims"]) || array_key_exists("tims", $context) ? $context["tims"] : (function () { throw new RuntimeError('Variable "tims" does not exist.', 410, $this->source); })()), "supplierCode", [], "any", false, false, false, 410) == "PARGAMON"))) {
  596. // line 412
  597. yield " <a href=\"";
  598. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("receipt_action", ["waybill_" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["transaction"]) || array_key_exists("transaction", $context) ? $context["transaction"] : (function () { throw new RuntimeError('Variable "transaction" does not exist.', 412, $this->source); })()), "wayBill", [], "any", false, false, false, 412), "id", [], "any", false, false, false, 412)]), "html", null, true);
  599. yield "\" download=\"application/pdf\">
  600. <button type=\"button\" class=\"btn btn-success print\">
  601. <i class=\"fa fa-print\"></i>
  602. Print PDF
  603. </button>
  604. </a>
  605. ";
  606. } elseif (((CoreExtension::getAttribute($this->env, $this->source, // line 418
  607. (isset($context["tims"]) || array_key_exists("tims", $context) ? $context["tims"] : (function () { throw new RuntimeError('Variable "tims" does not exist.', 418, $this->source); })()), "type", [], "any", false, false, false, 418) == "TYPEC") && (CoreExtension::getAttribute($this->env, $this->source, (isset($context["tims"]) || array_key_exists("tims", $context) ? $context["tims"] : (function () { throw new RuntimeError('Variable "tims" does not exist.', 418, $this->source); })()), "supplierCode", [], "any", false, false, false, 418) == "TREMOL"))) {
  608. // line 419
  609. yield "
  610. <button type=\"button\" class=\"btn btn-success print\" onclick=\"print('/fos/receipt/g03/";
  611. // line 420
  612. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["transaction"]) || array_key_exists("transaction", $context) ? $context["transaction"] : (function () { throw new RuntimeError('Variable "transaction" does not exist.', 420, $this->source); })()), "wayBill", [], "any", false, false, false, 420), "id", [], "any", false, false, false, 420), "html", null, true);
  613. yield "')\">
  614. <i class=\"fa fa-print\"></i>
  615. Print Receipt
  616. </button>
  617. ";
  618. } else {
  619. // line 425
  620. yield " <button type=\"button\" class=\"btn btn-success print\" onclick=\"print('/fos/receipt/";
  621. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["transaction"]) || array_key_exists("transaction", $context) ? $context["transaction"] : (function () { throw new RuntimeError('Variable "transaction" does not exist.', 425, $this->source); })()), "wayBill", [], "any", false, false, false, 425), "id", [], "any", false, false, false, 425), "html", null, true);
  622. yield "')\">
  623. <i class=\"fa fa-print\"></i>
  624. Print Receipt
  625. </button>
  626. ";
  627. }
  628. // line 430
  629. yield " ";
  630. } else {
  631. // line 431
  632. yield " ----
  633. <button type=\"button\" class=\"btn btn-success print\" onclick=\"print('/fos/receipt/";
  634. // line 432
  635. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["transaction"]) || array_key_exists("transaction", $context) ? $context["transaction"] : (function () { throw new RuntimeError('Variable "transaction" does not exist.', 432, $this->source); })()), "wayBill", [], "any", false, false, false, 432), "id", [], "any", false, false, false, 432), "html", null, true);
  636. yield "')\">
  637. <i class=\"fa fa-print\"></i>
  638. Print Receipt
  639. </button>
  640. ";
  641. }
  642. // line 437
  643. yield "
  644. ";
  645. // line 446
  646. yield "
  647. </div>
  648. </fieldset>
  649. </div>
  650. </div>
  651. ";
  652. // line 453
  653. yield " </div>
  654. ";
  655. } else {
  656. // line 455
  657. yield " <div class=\"col-lg\">
  658. <fieldset>
  659. <legend>Print</legend>
  660. <div align=\"right\">
  661. <button type=\"button\" class=\"btn btn-danger print\" style=\"width: auto\" disabled>
  662. <i class=\"fa fa-print\"></i>
  663. this transaction is cancelled
  664. </button>
  665. </div>
  666. </fieldset>
  667. <b></b>
  668. </div>
  669. ";
  670. }
  671. // line 469
  672. yield " ";
  673. } else {
  674. // line 470
  675. yield " ";
  676. if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["transaction"]) || array_key_exists("transaction", $context) ? $context["transaction"] : (function () { throw new RuntimeError('Variable "transaction" does not exist.', 470, $this->source); })()), "isCancelled", [], "any", false, false, false, 470) != true)) {
  677. // line 471
  678. yield " <div class=\"col-lg\"s>
  679. <div class=\"row pro kkk\" style=\"padding: 10px 0px 20px 20px; background: #FFFFFF; margin-left: auto\">
  680. <div class=\"col-lg-12\">
  681. <fieldset class=\"payment\">
  682. <legend>Select Payment option</legend>
  683. ";
  684. // line 476
  685. if ((isset($context["isMpesaAvailable"]) || array_key_exists("isMpesaAvailable", $context) ? $context["isMpesaAvailable"] : (function () { throw new RuntimeError('Variable "isMpesaAvailable" does not exist.', 476, $this->source); })())) {
  686. // line 477
  687. yield " <a href=\"";
  688. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("payment_request_view", ["waybill" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["transaction"]) || array_key_exists("transaction", $context) ? $context["transaction"] : (function () { throw new RuntimeError('Variable "transaction" does not exist.', 477, $this->source); })()), "wayBill", [], "any", false, false, false, 477), "id", [], "any", false, false, false, 477)]), "html", null, true);
  689. yield "\" class=\"btn btn-success\" style=\"float: left;\">
  690. <i><img src=\"";
  691. // line 478
  692. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("fos/images/m-pesa-icon.svg"), "html", null, true);
  693. yield "\" alt=\"\"></i>
  694. M-PESA
  695. </a>
  696. ";
  697. } else {
  698. // line 482
  699. yield " <button ";
  700. yield " class=\"btn btn-success\" style=\"float: left;\" disabled>
  701. <i><img src=\"";
  702. // line 483
  703. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("fos/images/m-pesa-icon.svg"), "html", null, true);
  704. yield "\" alt=\"\"></i>
  705. M-PESA
  706. </button>
  707. ";
  708. }
  709. // line 487
  710. yield "
  711. ";
  712. // line 488
  713. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["cashPaymentOptionForm"]) || array_key_exists("cashPaymentOptionForm", $context) ? $context["cashPaymentOptionForm"] : (function () { throw new RuntimeError('Variable "cashPaymentOptionForm" does not exist.', 488, $this->source); })()), 'form_start');
  714. yield "
  715. <button type=\"submit\" class=\"btn btn-warning cash\">
  716. <i><img src=\"";
  717. // line 490
  718. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("fos/images/money_icon.png"), "html", null, true);
  719. yield "\" alt=\"\"></i>
  720. Cash
  721. </button>
  722. ";
  723. // line 493
  724. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["cashPaymentOptionForm"]) || array_key_exists("cashPaymentOptionForm", $context) ? $context["cashPaymentOptionForm"] : (function () { throw new RuntimeError('Variable "cashPaymentOptionForm" does not exist.', 493, $this->source); })()), 'form_end');
  725. yield "
  726. </fieldset>
  727. </div>
  728. </div>
  729. </div>
  730. ";
  731. }
  732. // line 500
  733. yield " ";
  734. }
  735. // line 501
  736. yield " </div>
  737. </div>
  738. ";
  739. // line 533
  740. yield "
  741. <div class=\" row pro\">
  742. ";
  743. // line 536
  744. $context['_parent'] = $context;
  745. $context['_seq'] = CoreExtension::ensureTraversable((isset($context["parcels"]) || array_key_exists("parcels", $context) ? $context["parcels"] : (function () { throw new RuntimeError('Variable "parcels" does not exist.', 536, $this->source); })()));
  746. foreach ($context['_seq'] as $context["_key"] => $context["parcel"]) {
  747. // line 537
  748. yield " <div class=\"col-lg-3 col-md-3 col-sm-6 col-xs-12\" style=\"background: #FFFFFF; /*box-shadow: 5px 3px 20px #888888;*/ margin-top: 10px; padding-top: 10px; margin-right: 20px;\">
  749. <div class=\"col-lg-12\">
  750. <fieldset>
  751. <legend>Parcel #";
  752. // line 540
  753. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["parcel"], "number", [], "any", false, false, false, 540), "html", null, true);
  754. yield "</legend>
  755. <h5>";
  756. // line 541
  757. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["parcel"], "description", [], "any", false, false, false, 541), "html", null, true);
  758. yield "</h5>
  759. </fieldset>
  760. <fieldset>
  761. <legend><i class=\"fa fa-arrow-circle-down\"></i></legend>
  762. <fieldset>
  763. <legend>Location</legend>
  764. <h5>IN OFFICE :";
  765. // line 548
  766. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["transaction"]) || array_key_exists("transaction", $context) ? $context["transaction"] : (function () { throw new RuntimeError('Variable "transaction" does not exist.', 548, $this->source); })()), "wayBill", [], "any", false, false, false, 548), "fromStation", [], "any", false, false, false, 548), "html", null, true);
  767. yield "
  768. <p class=\"detail\">From: <i class=\"fas fa-hand-point-right\"></i>";
  769. // line 549
  770. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["transaction"]) || array_key_exists("transaction", $context) ? $context["transaction"] : (function () { throw new RuntimeError('Variable "transaction" does not exist.', 549, $this->source); })()), "wayBill", [], "any", false, false, false, 549), "createdAt", [], "any", false, false, false, 549), "F jS, Y \\a\\t g:ia"), "html", null, true);
  771. yield "</p>
  772. ";
  773. // line 553
  774. yield " </h5>
  775. </fieldset>
  776. ";
  777. // line 557
  778. yield "
  779. ";
  780. // line 558
  781. yield $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Parcels\\ParcelController::getParcelDeliveryData", ["parcel_id" => CoreExtension::getAttribute($this->env, $this->source, $context["parcel"], "id", [], "any", false, false, false, 558)]));
  782. yield "
  783. ";
  784. // line 575
  785. yield "
  786. ";
  787. // line 589
  788. yield "
  789. ";
  790. // line 599
  791. yield " </fieldset>
  792. <div style=\"align-content: center; text-align: center;\">
  793. <img alt=\"Coding Sips\" src=\"/barcode?text=";
  794. // line 601
  795. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["transaction"]) || array_key_exists("transaction", $context) ? $context["transaction"] : (function () { throw new RuntimeError('Variable "transaction" does not exist.', 601, $this->source); })()), "wayBill", [], "any", false, false, false, 601), "id", [], "any", false, false, false, 601), "html", null, true);
  796. yield "/";
  797. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["parcel"], "number", [], "any", false, false, false, 601), "html", null, true);
  798. yield "&Codetype=Code128&size=60&print=true\" />
  799. </div>
  800. </div>
  801. </div>
  802. ";
  803. }
  804. $_parent = $context['_parent'];
  805. unset($context['_seq'], $context['_key'], $context['parcel'], $context['_parent']);
  806. $context = array_intersect_key($context, $_parent) + $_parent;
  807. // line 609
  808. yield "
  809. </div>
  810. ";
  811. // line 612
  812. if ((array_key_exists("sms", $context) && (isset($context["sms"]) || array_key_exists("sms", $context) ? $context["sms"] : (function () { throw new RuntimeError('Variable "sms" does not exist.', 612, $this->source); })()))) {
  813. // line 613
  814. yield " <hr>
  815. <div class=\"row\">
  816. <table class=\"table table-bordered\">
  817. <thead>
  818. <tr>
  819. <th>#</th>
  820. <th>RECEIVER</th>
  821. <th>STATUS</th>
  822. <th>Sent Via Phone</th>
  823. <th>MESSAGE</th>
  824. </tr>
  825. </thead>
  826. <tbody>
  827. ";
  828. // line 626
  829. $context['_parent'] = $context;
  830. $context['_seq'] = CoreExtension::ensureTraversable((isset($context["sms"]) || array_key_exists("sms", $context) ? $context["sms"] : (function () { throw new RuntimeError('Variable "sms" does not exist.', 626, $this->source); })()));
  831. $context['loop'] = [
  832. 'parent' => $context['_parent'],
  833. 'index0' => 0,
  834. 'index' => 1,
  835. 'first' => true,
  836. ];
  837. if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  838. $length = count($context['_seq']);
  839. $context['loop']['revindex0'] = $length - 1;
  840. $context['loop']['revindex'] = $length;
  841. $context['loop']['length'] = $length;
  842. $context['loop']['last'] = 1 === $length;
  843. }
  844. foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
  845. // line 627
  846. yield " <tr>
  847. <td>";
  848. // line 628
  849. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 628), "html", null, true);
  850. yield " </td>
  851. <td>";
  852. // line 629
  853. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["message"], "recepient", [], "any", false, false, false, 629), "html", null, true);
  854. yield "</td>
  855. <td>
  856. ";
  857. // line 632
  858. if (CoreExtension::getAttribute($this->env, $this->source, $context["message"], "status", [], "any", false, false, false, 632)) {
  859. // line 633
  860. yield " ";
  861. if (((CoreExtension::getAttribute($this->env, $this->source, $context["message"], "status", [], "any", false, false, false, 633) == "Success") || (CoreExtension::getAttribute($this->env, $this->source, $context["message"], "status", [], "any", false, false, false, 633) == "Sent"))) {
  862. // line 634
  863. yield " <span class=\"alert-success\">";
  864. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["message"], "status", [], "any", false, false, false, 634), "html", null, true);
  865. yield "</span>
  866. ";
  867. } else {
  868. // line 636
  869. yield " <span class=\"alert-danger\">
  870. ";
  871. // line 637
  872. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["message"], "status", [], "any", false, false, false, 637), "html", null, true);
  873. yield " <br>
  874. ";
  875. // line 638
  876. if ((CoreExtension::getAttribute($this->env, $this->source, $context["message"], "statusCode", [], "any", false, false, false, 638) < 1000)) {
  877. // line 639
  878. yield " ";
  879. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["statusChart"]) || array_key_exists("statusChart", $context) ? $context["statusChart"] : (function () { throw new RuntimeError('Variable "statusChart" does not exist.', 639, $this->source); })()), CoreExtension::getAttribute($this->env, $this->source, $context["message"], "statusCode", [], "any", false, false, false, 639), [], "array", false, false, false, 639), "html", null, true);
  880. yield " [";
  881. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["message"], "statusCode", [], "any", false, false, false, 639), "html", null, true);
  882. yield "]
  883. ";
  884. }
  885. // line 641
  886. yield " </span>
  887. ";
  888. }
  889. // line 643
  890. yield " ";
  891. } else {
  892. // line 644
  893. yield " <span>N/A</span>
  894. ";
  895. }
  896. // line 646
  897. yield "
  898. </td>
  899. <td>
  900. ";
  901. // line 649
  902. if (((CoreExtension::getAttribute($this->env, $this->source, $context["message"], "status", [], "any", false, false, false, 649) != "Success") || (CoreExtension::getAttribute($this->env, $this->source, $context["message"], "status", [], "any", false, false, false, 649) != "Sent"))) {
  903. // line 650
  904. yield " ";
  905. if (CoreExtension::getAttribute($this->env, $this->source, $context["message"], "manuallySent", [], "any", false, false, false, 650)) {
  906. // line 651
  907. yield " <i class=\"fas fa-check-circle\" style=\"color: green;\"></i>
  908. ";
  909. }
  910. // line 653
  911. yield " ";
  912. }
  913. // line 654
  914. yield " </td>
  915. <td>";
  916. // line 655
  917. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["message"], "sms", [], "any", false, false, false, 655), "html", null, true);
  918. yield "</td>
  919. </tr>
  920. ";
  921. ++$context['loop']['index0'];
  922. ++$context['loop']['index'];
  923. $context['loop']['first'] = false;
  924. if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
  925. --$context['loop']['revindex0'];
  926. --$context['loop']['revindex'];
  927. $context['loop']['last'] = 0 === $context['loop']['revindex0'];
  928. }
  929. }
  930. $_parent = $context['_parent'];
  931. unset($context['_seq'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
  932. $context = array_intersect_key($context, $_parent) + $_parent;
  933. // line 658
  934. yield " </tbody>
  935. </table>
  936. </div>
  937. ";
  938. }
  939. // line 663
  940. yield "
  941. <div class=\"print-area\" id=\"print-area\">
  942. </div>
  943. <script>
  944. let printReceipt = async () => {
  945. \$(\".se-pre-con\").fadeIn(\"slow\");
  946. let completeTransaction = await fetch(\"";
  947. // line 678
  948. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("register_transaction_as_complete", ["id" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["transaction"]) || array_key_exists("transaction", $context) ? $context["transaction"] : (function () { throw new RuntimeError('Variable "transaction" does not exist.', 678, $this->source); })()), "wayBill", [], "any", false, false, false, 678), "id", [], "any", false, false, false, 678)]), "html", null, true);
  949. yield "\", {
  950. method: 'POST'
  951. }).then(response => {
  952. response.json().then(json => {
  953. if(response.status === 200){
  954. printJS({
  955. printable:'print-area',
  956. type: 'html',
  957. css:'../../../../../assets/css/print.css'});
  958. }else{
  959. console.log('error occurred');
  960. }
  961. })
  962. }).finally(() => {
  963. \$(\".se-pre-con\").fadeOut(\"slow\");
  964. });
  965. };
  966. jQuery(document).bind(\"keyup keydown\", function(e){
  967. if(e.ctrlKey && e.keyCode === 80){
  968. console.log(\"printing ...\");
  969. printReceipt();
  970. }
  971. });
  972. window.jsPDF = window.jspdf.jsPDF;
  973. function download() {
  974. let renderHtml = \$('#print-area').html();
  975. let pdf = new jsPDF('p','mm', [254, 80]);
  976. pdf.html(renderHtml, {
  977. callback: function (pdf) {
  978. window.open(pdf.output('bloburl'));
  979. }
  980. });
  981. }
  982. // download();
  983. // \$( document ).ready(function() {
  984. // window.jsPDF = window.jspdf.jsPDF;
  985. //
  986. // // Default export is a4 paper, portrait, using millimeters for units
  987. // var doc = window.jsPDF;
  988. // var specialElementHandlers = {
  989. // '#editor': function (element, renderer) {
  990. // return true;
  991. // }
  992. // };
  993. //
  994. // doc.html(\$('.receipt-print').html(), 15, 15, {
  995. // 'width': 170,
  996. // 'elementHandlers': specialElementHandlers
  997. // });
  998. // doc.save('sample-file.pdf');
  999. // });
  1000. function save() {
  1001. var content = [\"your-content-here\"];
  1002. var bl = new Blob(content, {type: \"application/pdf\"});
  1003. var a = document.createElement(\"a\");
  1004. a.href = URL.createObjectURL(\"http://localhost:8000/fos/receipt/";
  1005. // line 740
  1006. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["transaction"]) || array_key_exists("transaction", $context) ? $context["transaction"] : (function () { throw new RuntimeError('Variable "transaction" does not exist.', 740, $this->source); })()), "wayBill", [], "any", false, false, false, 740), "id", [], "any", false, false, false, 740), "html", null, true);
  1007. yield "\");
  1008. a.download = \"";
  1009. // line 741
  1010. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["transaction"]) || array_key_exists("transaction", $context) ? $context["transaction"] : (function () { throw new RuntimeError('Variable "transaction" does not exist.', 741, $this->source); })()), "wayBill", [], "any", false, false, false, 741), "id", [], "any", false, false, false, 741), "html", null, true);
  1011. yield ".pdf\";
  1012. a.hidden = true;
  1013. document.body.appendChild(a);
  1014. a.click();
  1015. }
  1016. function print(url){
  1017. // \$(\".se-pre-con\").fadeIn(\"slow\");
  1018. // printJS(url);
  1019. printJS({
  1020. printable: url,
  1021. type:'pdf',
  1022. showModal:true,
  1023. modalMessage: 'Downloading receipt please wait!',
  1024. onError: function (error) {
  1025. console.log(error);
  1026. alert('Could not generate receipt please try again ')
  1027. }
  1028. });
  1029. }
  1030. </script>
  1031. ";
  1032. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1033. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1034. yield from [];
  1035. }
  1036. /**
  1037. * @codeCoverageIgnore
  1038. */
  1039. public function getTemplateName(): string
  1040. {
  1041. return "fos/parcels/view_parcel.html.twig";
  1042. }
  1043. /**
  1044. * @codeCoverageIgnore
  1045. */
  1046. public function isTraitable(): bool
  1047. {
  1048. return false;
  1049. }
  1050. /**
  1051. * @codeCoverageIgnore
  1052. */
  1053. public function getDebugInfo(): array
  1054. {
  1055. return array ( 1153 => 741, 1149 => 740, 1084 => 678, 1067 => 663, 1060 => 658, 1043 => 655, 1040 => 654, 1037 => 653, 1033 => 651, 1030 => 650, 1028 => 649, 1023 => 646, 1019 => 644, 1016 => 643, 1012 => 641, 1004 => 639, 1002 => 638, 998 => 637, 995 => 636, 989 => 634, 986 => 633, 984 => 632, 978 => 629, 974 => 628, 971 => 627, 954 => 626, 939 => 613, 937 => 612, 932 => 609, 916 => 601, 912 => 599, 908 => 589, 905 => 575, 900 => 558, 897 => 557, 892 => 553, 888 => 549, 884 => 548, 874 => 541, 870 => 540, 865 => 537, 861 => 536, 856 => 533, 852 => 501, 849 => 500, 839 => 493, 833 => 490, 828 => 488, 825 => 487, 818 => 483, 814 => 482, 807 => 478, 802 => 477, 800 => 476, 793 => 471, 790 => 470, 787 => 469, 771 => 455, 767 => 453, 759 => 446, 756 => 437, 748 => 432, 745 => 431, 742 => 430, 733 => 425, 725 => 420, 722 => 419, 720 => 418, 710 => 412, 707 => 410, 705 => 409, 701 => 407, 699 => 406, 695 => 403, 688 => 399, 683 => 398, 681 => 397, 675 => 393, 672 => 391, 669 => 390, 667 => 389, 654 => 378, 651 => 377, 646 => 375, 640 => 373, 637 => 372, 635 => 371, 625 => 366, 616 => 360, 611 => 357, 605 => 356, 602 => 355, 597 => 352, 593 => 351, 590 => 350, 587 => 349, 583 => 348, 577 => 345, 570 => 341, 566 => 340, 544 => 321, 533 => 313, 522 => 305, 505 => 291, 494 => 283, 483 => 275, 466 => 263, 463 => 262, 450 => 261, 242 => 61, 229 => 60, 218 => 48, 213 => 46, 211 => 45, 209 => 44, 196 => 43, 182 => 37, 169 => 36, 153 => 53, 148 => 49, 146 => 43, 140 => 39, 138 => 36, 122 => 22, 108 => 9, 95 => 8, 81 => 6, 68 => 5, 45 => 1,);
  1056. }
  1057. public function getSourceContext(): Source
  1058. {
  1059. return new Source("{% extends 'fos/base.html.twig' %}
  1060. {% block firstnav %}
  1061. {{ render(controller('App\\\\Parcels\\\\DefaultController::nav')) }}
  1062. {% endblock %}
  1063. {% block secondnav %}
  1064. <script src=\"https://printjs-4de6.kxcdn.com/print.min.js\"></script>
  1065. <link rel=\"stylesheet\" type=\"text/css\" href=\"https://printjs-4de6.kxcdn.com/print.min.css\">
  1066. <script src=\"https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.1/jspdf.umd.min.js\"></script>
  1067. <script src=\"https://cdnjs.cloudflare.com/ajax/libs/html2canvas/1.4.1/html2canvas.min.js\"
  1068. integrity=\"sha512-BNaRQnYJYiPSqHHDb58B0yaPfCu+Wgds8Gp/gU33kqBtgNS4tSPHuGibyoeqMV/TJlSKda6FXzoEyYGjTe+vXA==\"
  1069. crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\"></script>
  1070. <script src=\"https://cdnjs.cloudflare.com/ajax/libs/dompurify/2.4.0/purify.min.js\" integrity=\"sha512-/hVAZO5POxCKdZMSLefw30xEVwjm94PAV9ynjskGbIpBvHO9EBplEcdUlBdCKutpZsF+La8Ag4gNrG0gAOn3Ig==\" crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\"></script>
  1071. {# <script src=\"https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.3.2/jspdf.min.js\"></script>#}
  1072. <!-- Second Nav -->
  1073. <nav class=\"navbar-second navbar navbar-default navbar-static-top\" role=\"navigation\">
  1074. <div class=\"container-fluid\">
  1075. <div class=\"navbar-header\">
  1076. <button type=\"button\" class=\"navbar-toggle collapsed\" data-toggle=\"collapse\"
  1077. data-target=\"#bs-example-navbar-collapse-1\">
  1078. <span class=\"sr-only\">Toggle navigation</span>
  1079. <span class=\"icon-bar\"></span>
  1080. <span class=\"icon-bar\"></span>
  1081. <span class=\"icon-bar\"></span>
  1082. </button>
  1083. <!-- Brand -->
  1084. {% block current %}
  1085. <span class=\"navbar-brand\" href=\"#\"><i class=\"fa fa-gears\"></i> PARCEL TO {{ transaction.wayBill.toStation }}</span>
  1086. {% endblock %}
  1087. </div>
  1088. <div class=\"collapse navbar-collapse animated fadeIn\" id=\"bs-example-navbar-collapse-1\">
  1089. <ul class=\"nav navbar-nav animated fadeIn\">
  1090. {% block secondarylinkblock %}
  1091. {#<li><a href=\"{{ path('new-parcel') }}\"><i class=\"fa fa-plus-circle\"></i> Register Parcel</a></li>#}
  1092. {#<li class=\"\"><a href=\"#\"><i class=\"fa fa-th-list\"></i> Parcels</a></li>#}
  1093. <li class=\"\"><a href=\"{{ app.request.headers.get('referer') }}\"><i class=\"fa fa-arrow-circle-left\"></i> Back</a></li>
  1094. {#<li class=\"active\"><a href=\"\"><i class=\"fa fa-plus-circle\"></i> View Parcel #{{ transaction.waybill.parcel.id }}</a></li>#}
  1095. {% endblock %}
  1096. </ul>
  1097. <ul class=\"nav navbar-nav navbar-right\">
  1098. <li class=\"\"><a></a></li>
  1099. {#<li><p class=\"navbar-text\"></p></li>#}
  1100. </ul>
  1101. </div><!-- /.navbar-collapse -->
  1102. </div><!-- /.container-fluid -->
  1103. </nav>
  1104. {% endblock %}
  1105. {% block stylesheets %}
  1106. <style>
  1107. /*@import \"../../../../../web/assets/css/print.css\";*/
  1108. h6{
  1109. font-weight: bold;
  1110. }
  1111. h3 {
  1112. /*font-size: 20px;*/
  1113. }
  1114. h5,h3,h4,p {
  1115. padding: 0px;
  1116. font-family: \"Amaranth\", sans-serif;
  1117. background: #ffffff;
  1118. }
  1119. legend {
  1120. border: none;
  1121. padding: 5px;
  1122. }
  1123. .print-area h5, .print-area h3, .print-area h4 {
  1124. padding: 0px;
  1125. font-family: \"Nova Flat\", sans-serif;
  1126. background: #ffffff;
  1127. border: none;
  1128. margin: 0;
  1129. }
  1130. .print-area p {
  1131. font-size: 12px;
  1132. padding: 4px;
  1133. margin: 0px;
  1134. line-height: 10px;
  1135. border: none;
  1136. }
  1137. hr {
  1138. margin-top: 1px;
  1139. margin-bottom: 1px;
  1140. border-top: 2px dashed rgba(0, 0, 0, 0.99);
  1141. }
  1142. .print-area hr {
  1143. border-top: 1px dashed rgba(0, 0, 0, 0.99);
  1144. }
  1145. .print-area {
  1146. width: 28%;
  1147. background: white;
  1148. /*border: 1px dotted;*/
  1149. padding: 2%;
  1150. display: none;
  1151. /*background-color: firebrick;*/
  1152. }
  1153. .print-area table {
  1154. font-family: 'Fjord One', serif;
  1155. }
  1156. element.style {
  1157. }
  1158. fieldset {
  1159. display: block;
  1160. margin-left: 0px;
  1161. margin-right: 2px;
  1162. border-top: 1px dotted black;
  1163. }
  1164. .kkk fieldset{
  1165. float: right;
  1166. width: 40%;
  1167. }
  1168. .detail{
  1169. padding: 0px;
  1170. font-size: 11px;
  1171. border: none;
  1172. }
  1173. @media print {
  1174. .sf-toolbar, .sf-display-none, .sf-minitoolbar {
  1175. display: none;
  1176. }
  1177. .print-area {
  1178. display: block;
  1179. }
  1180. @page {
  1181. margin: 0 !important;
  1182. }
  1183. html {
  1184. margin: 0 !important;
  1185. }
  1186. body {margin:0 !important;}
  1187. .print-area {
  1188. width: 100%;
  1189. }
  1190. .pro {
  1191. display: none;
  1192. }
  1193. .sf-toolbar, .sf-toolbarreset, .sf-minitoolbar {
  1194. display: none;
  1195. }
  1196. /*.page-break {display: block; page-break-before: always }*/
  1197. .page-break {
  1198. page-break-before: avoid;
  1199. }
  1200. .page-break {
  1201. page-break-after: always;
  1202. }
  1203. pre, blockquote {
  1204. page-break-inside: avoid;
  1205. }
  1206. }
  1207. .parcel {
  1208. font-family: 'Big Shoulders Text', cursive;
  1209. margin-bottom: 10px;
  1210. margin-left: 10px;
  1211. }
  1212. .parcel h3, .parcel span{
  1213. font-family: 'Merriweather', serif;
  1214. margin-top: 15px;
  1215. }
  1216. .sender_receiver .col-lg-6 + fieldset {
  1217. box-shadow: 5px 3px 20px #888888;
  1218. }
  1219. .sender_receiver fieldset{
  1220. background-color: beige;
  1221. border-top: 1px solid #d3cece;
  1222. }
  1223. .sender_receiver fieldset legend{
  1224. background-color: beige;
  1225. border: 1px solid #d3cece;
  1226. }
  1227. .sender_receiver fieldset h5{
  1228. background: none;
  1229. }
  1230. .destinations {
  1231. float: left;
  1232. width: 50%;
  1233. padding: 10px;
  1234. font-family: 'Open Sans', sans-serif;
  1235. margin-bottom: 15px;
  1236. }
  1237. .destinations h4, .destinations b {
  1238. font-family: 'Merriweather', serif;
  1239. }
  1240. .destinations h3 {
  1241. margin-bottom: 10px;
  1242. }
  1243. .description {
  1244. font-size: 37px;
  1245. margin-left: 10px;
  1246. }
  1247. .all_parcels{
  1248. text-transform: uppercase;
  1249. -ms-transform: rotate(90deg);
  1250. -moz-transform: rotate(90deg);
  1251. -webkit-transform: rotate(90deg);
  1252. -o-transform: rotate(90deg);
  1253. margin-top: 115px;
  1254. width: 430px;
  1255. margin-left: -60px;
  1256. }
  1257. .payment button, .print, .payment a {
  1258. width: 150px;
  1259. border-radius: 30px;
  1260. }
  1261. .payment .cash {
  1262. float: right;
  1263. }
  1264. .payment .cash img {
  1265. height: 20px;
  1266. }
  1267. </style>
  1268. {% endblock %}
  1269. {% block main %}
  1270. <div class=\"row pro\" style=\"padding: 10px 0px 20px 20px; /*border-right: 1px solid #888888;*/ background: #FFFFFF; /*box-shadow: 5px 3px 20px #888888;*/\">
  1271. <h3 style=\"font-family:Serif;margin-top: 30px;\">WayBill: {{ transaction.wayBill.id }} - {{ transaction.cuInvoiceNumber }}</h3>
  1272. <div class=\"col-lg-6 pro\">
  1273. <div class=\"row sender_receiver\">
  1274. <div class=\"col-lg-6\">
  1275. <fieldset style=\"box-shadow: 5px 5px 0px #888888;\">
  1276. <legend class=\"top-legend\">SENDER</legend>
  1277. <div class=\"row\">
  1278. <div class=\"col-lg-12\">
  1279. <fieldset>
  1280. <legend>Name</legend>
  1281. <h5>{{ transaction.waybill.senderName | upper }}</h5>
  1282. </fieldset>
  1283. </div>
  1284. </div>
  1285. <div class=\"row\">
  1286. <div class=\"col-lg-12\">
  1287. <fieldset>
  1288. <legend>Phone</legend>
  1289. <h5>{{ transaction.waybill.senderPhoneNumber }}</h5>
  1290. </fieldset>
  1291. </div>
  1292. </div>
  1293. <div class=\"row\">
  1294. <div class=\"col-lg-12\">
  1295. <fieldset>
  1296. <legend>From</legend>
  1297. <h5>{{ transaction.waybill.fromStation }}</h5>
  1298. </fieldset>
  1299. </div>
  1300. </div>
  1301. </fieldset>
  1302. </div>
  1303. <div class=\"col-lg-6\">
  1304. <fieldset style=\"box-shadow:5px 5px 0px #888888\">
  1305. <legend class=\"top-legend\">RECEIVER</legend>
  1306. <div class=\"row\">
  1307. <div class=\"col-lg-12\">
  1308. <fieldset>
  1309. <legend>Name</legend>
  1310. <h5>{{ transaction.wayBill.receiverName | upper }}</h5>
  1311. </fieldset>
  1312. </div>
  1313. </div>
  1314. <div class=\"row\">
  1315. <div class=\"col-lg-12\">
  1316. <fieldset>
  1317. <legend>Phone</legend>
  1318. <h5>{{ transaction.waybill.receiverPhoneNumber }}</h5>
  1319. </fieldset>
  1320. </div>
  1321. </div>
  1322. <div class=\"row\">
  1323. <div class=\"col-lg-12\">
  1324. <fieldset>
  1325. <legend>To</legend>
  1326. <h5>{{ transaction.waybill.toStation }}</h5>
  1327. </fieldset>
  1328. </div>
  1329. </div>
  1330. </fieldset>
  1331. </div>
  1332. </div>
  1333. </div>
  1334. <div class=\"receipt\" >
  1335. <div class=\"row pro\">
  1336. <div class=\"col-lg-4 col-md-6\">
  1337. <fieldset align=\"center\" style=\"border: 1px dotted black; padding-bottom: 10px;\">
  1338. <legend>Cost</legend>
  1339. <table width=\"90%\" style=\"text-align: center; align-content: center;\">
  1340. <tr>
  1341. <td align=\"left\"><h5 align=\"left\" style=\"border: none;\">{{ transaction.taxPercentage }}% V.A.T</h5></td>
  1342. <td align=\"right\" style=\"font-family: 'Fjord One', Serif; font-weight: bolder;\">{{ (transaction.taxAmount) | number_format(2, '.', ',') }}</td>
  1343. </tr>
  1344. <tr style=\"\">
  1345. <td align=\"left\"><h5 align=\"left\" style=\"border: none;\">COST</h5></td>
  1346. <td align=\"right\" style=\"font-family: 'Fjord One', Serif;font-weight: bolder;\">{{ (transaction.grossAmount - transaction.taxAmount) | number_format(2, '.', ',') }}</td>
  1347. </tr>
  1348. {% for expense in transaction.wayBillExpenses %}
  1349. {% if expense.expenseType.isAutomatic == false %}
  1350. <tr style=\"border-bottom: 1px solid black;\">
  1351. <td align=\"left\"><h5 align=\"left\" style=\"border: none;\">{{ expense.expenseType.expenseName | upper }}</h5></td>
  1352. <td align=\"right\" style=\"font-family: 'Fjord One', Serif; font-weight: bolder;border-right: none;\">-{{ expense.amount }}</td>
  1353. </tr>
  1354. {#{% set expenseAmount = (expenseAmount + expense.amount) %}#}
  1355. {% endif %}
  1356. {% endfor %}
  1357. <tr style=\"border-bottom: 2px double black;border-top: 2px double black;\">
  1358. <td align=\"right\"><h4 align=\"left\" style=\"border: none;\">TOTAL</h4></td>
  1359. <td align=\"right\" style=\"font-family: 'Fjord One', Serif; font-weight: bolder;\">KSH {{ (transaction.stationBalance ) | number_format }}</td>
  1360. </tr>
  1361. </table>
  1362. </fieldset>
  1363. <p style=\"border:none;\">Transaction by: {{ transaction.waybill.createdBy.person.secondName }} {{ transaction.waybill.createdBy.person.sirName }}</p>
  1364. {% if transaction.isCancelled == false %}
  1365. {% if transaction.isComplete == false or is_granted('ROLE_BOS_USER') or is_granted('ROLE_STATION_ADMIN') %}
  1366. {{ form_start(cancelForm) }}
  1367. <button type=\"submit\" class=\"btn btn-sm btn-warning \">cancel transaction</button>
  1368. {{ form_end(cancelForm) }}
  1369. {% endif %}
  1370. {% endif %}
  1371. </div>
  1372. </div>
  1373. </div>
  1374. </div>
  1375. <div class=\"row\">
  1376. <div class=\"row\">
  1377. {% if transaction.isPaid %}
  1378. {% if transaction.isCancelled != true %}
  1379. <div class=\"col-lg\">
  1380. {#{% if transaction.isCancelled == false and isCancellable == true %}#}
  1381. <div class=\"row pro kkk\" style=\"padding: 10px 0px 20px 20px; background: #FFFFFF; margin-left: auto\">
  1382. <div class=\"col-lg-12\">
  1383. <fieldset>
  1384. <legend>Print</legend>
  1385. {% if isCashCanChangeMpesa %}
  1386. <a href=\"{{ path('payment_request_view', {'waybill': transaction.wayBill.id}) }}\" class=\"btn btn-success\" style=\"float: left;\">
  1387. <i><img src=\"{{ asset('fos/images/m-pesa-icon.svg') }}\" alt=\"\"></i>
  1388. change payment to M-PESA
  1389. </a>
  1390. {%endif%}
  1391. <div align=\"right\">
  1392. {#<a href=\"{{ path('pdf_report', {'id': transaction.waybill.id }) }}\" class=\"btn btn-success\" target=\"_blank\"><i class=\"fa fa-print\"></i> Print</a>#}
  1393. {#<a href=\"javascript:window.print()\" class=\"btn btn-success\" target=\"_blank\"><i class=\"fa fa-print\"></i> Print</a>#}
  1394. {% if tims is not null %}
  1395. {% if tims.type == 'TYPEC' and tims.supplierCode == 'PARGAMON' %}
  1396. {# {% if tims.type == 'TYPEC' and tims.supplierCode == 'PARGAMON' and is_granted('ROLE_BOS_USER')%}#}
  1397. <a href=\"{{ path('receipt_action', {'waybill_': transaction.wayBill.id }) }}\" download=\"application/pdf\">
  1398. <button type=\"button\" class=\"btn btn-success print\">
  1399. <i class=\"fa fa-print\"></i>
  1400. Print PDF
  1401. </button>
  1402. </a>
  1403. {% elseif tims.type == 'TYPEC' and tims.supplierCode == 'TREMOL' %}
  1404. <button type=\"button\" class=\"btn btn-success print\" onclick=\"print('/fos/receipt/g03/{{ transaction.wayBill.id }}')\">
  1405. <i class=\"fa fa-print\"></i>
  1406. Print Receipt
  1407. </button>
  1408. {% else %}
  1409. <button type=\"button\" class=\"btn btn-success print\" onclick=\"print('/fos/receipt/{{ transaction.wayBill.id }}')\">
  1410. <i class=\"fa fa-print\"></i>
  1411. Print Receipt
  1412. </button>
  1413. {% endif %}
  1414. {% else %}
  1415. ----
  1416. <button type=\"button\" class=\"btn btn-success print\" onclick=\"print('/fos/receipt/{{ transaction.wayBill.id }}')\">
  1417. <i class=\"fa fa-print\"></i>
  1418. Print Receipt
  1419. </button>
  1420. {% endif %}
  1421. {# <button type=\"button\" class=\"btn btn-success print\" onclick=\"printReceipt()\">#}
  1422. {# <i class=\"fa fa-print\"></i>#}
  1423. {# Print#}
  1424. {# </button>#}
  1425. {# <button type=\"button\" class=\"btn btn-success print\" onclick=\"save()\">#}
  1426. {# <i class=\"fa fa-print\"></i>#}
  1427. {# Print#}
  1428. {# </button>#}
  1429. </div>
  1430. </fieldset>
  1431. </div>
  1432. </div>
  1433. {#{% endif %}#}
  1434. </div>
  1435. {% else %}
  1436. <div class=\"col-lg\">
  1437. <fieldset>
  1438. <legend>Print</legend>
  1439. <div align=\"right\">
  1440. <button type=\"button\" class=\"btn btn-danger print\" style=\"width: auto\" disabled>
  1441. <i class=\"fa fa-print\"></i>
  1442. this transaction is cancelled
  1443. </button>
  1444. </div>
  1445. </fieldset>
  1446. <b></b>
  1447. </div>
  1448. {% endif %}
  1449. {% else %}
  1450. {% if transaction.isCancelled != true %}
  1451. <div class=\"col-lg\"s>
  1452. <div class=\"row pro kkk\" style=\"padding: 10px 0px 20px 20px; background: #FFFFFF; margin-left: auto\">
  1453. <div class=\"col-lg-12\">
  1454. <fieldset class=\"payment\">
  1455. <legend>Select Payment option</legend>
  1456. {% if isMpesaAvailable %}
  1457. <a href=\"{{ path('payment_request_view', {'waybill': transaction.wayBill.id}) }}\" class=\"btn btn-success\" style=\"float: left;\">
  1458. <i><img src=\"{{ asset('fos/images/m-pesa-icon.svg') }}\" alt=\"\"></i>
  1459. M-PESA
  1460. </a>
  1461. {%else%}
  1462. <button {#href=\"{{ path('payment_request_view', {'waybill': transaction.wayBill.id}) }}\"#} class=\"btn btn-success\" style=\"float: left;\" disabled>
  1463. <i><img src=\"{{ asset('fos/images/m-pesa-icon.svg') }}\" alt=\"\"></i>
  1464. M-PESA
  1465. </button>
  1466. {%endif%}
  1467. {{ form_start(cashPaymentOptionForm) }}
  1468. <button type=\"submit\" class=\"btn btn-warning cash\">
  1469. <i><img src=\"{{ asset('fos/images/money_icon.png') }}\" alt=\"\"></i>
  1470. Cash
  1471. </button>
  1472. {{ form_end(cashPaymentOptionForm) }}
  1473. </fieldset>
  1474. </div>
  1475. </div>
  1476. </div>
  1477. {% endif %}
  1478. {% endif %}
  1479. </div>
  1480. </div>
  1481. {# <div class=\"row\" style=\"padding: 10px 0px 20px 20px; border-right: 1px solid #888888; background: #FFFFFF; box-shadow: 5px 3px 20px #888888;\">
  1482. {{ form_start(form) }}
  1483. <fieldset>
  1484. <legend>WayBill Expense</legend>
  1485. <div class=\"row\">
  1486. <div class=\"col-lg-3 col-md-3\">
  1487. <label for=\"sender_name\">Expense Type</label>
  1488. {{ form_widget(form.expenseType,{'attr':{'class':'form-control' }} ) }}
  1489. <div class=\"invalid-feedback\">
  1490. {{ form_errors(form.expenseType) }}
  1491. </div>
  1492. </div>
  1493. <div class=\"col-lg-2 col-md-4\">
  1494. <label for=\"sender_name\">Amount</label>
  1495. {{ form_widget(form.amount,{'attr':{'class':'form-control' }} ) }}
  1496. <div class=\"invalid-feedback\">
  1497. {{ form_errors(form.amount) }}
  1498. </div>
  1499. </div>
  1500. </div>
  1501. <div class=\"row\" style=\"margin-top: 10px;\">
  1502. <div class=\"col-lg-1 col-md-1\">
  1503. <button type=\"submit\" class=\"btn btn-success right-align\">Save</button>
  1504. </div>
  1505. </div>
  1506. </fieldset>
  1507. {{ form_end(form) }}
  1508. </div>#}
  1509. <div class=\" row pro\">
  1510. {% for parcel in parcels %}
  1511. <div class=\"col-lg-3 col-md-3 col-sm-6 col-xs-12\" style=\"background: #FFFFFF; /*box-shadow: 5px 3px 20px #888888;*/ margin-top: 10px; padding-top: 10px; margin-right: 20px;\">
  1512. <div class=\"col-lg-12\">
  1513. <fieldset>
  1514. <legend>Parcel #{{ parcel.number }}</legend>
  1515. <h5>{{ parcel.description }}</h5>
  1516. </fieldset>
  1517. <fieldset>
  1518. <legend><i class=\"fa fa-arrow-circle-down\"></i></legend>
  1519. <fieldset>
  1520. <legend>Location</legend>
  1521. <h5>IN OFFICE :{{ transaction.wayBill.fromStation }}
  1522. <p class=\"detail\">From: <i class=\"fas fa-hand-point-right\"></i>{{ transaction.wayBill.createdAt | date(\"F jS, Y \\\\a\\\\t g:ia\") }}</p>
  1523. {# {% if parcel.isEnRoute %}
  1524. <p class=\"detail\">To: <i class=\"fas fa-hand-point-right\"></i>{{ parcel.enRouteFrom | date(\"F jS, Y \\\\a\\\\t g:ia\") }}</p>
  1525. {% endif %}#}
  1526. </h5>
  1527. </fieldset>
  1528. {#{{ render(controller('App\\\\Parcels\\\\DefaultController::nav')) }}#}
  1529. {{ render(controller('App\\\\Parcels\\\\ParcelController::getParcelDeliveryData',{'parcel_id':parcel.id})) }}
  1530. {#{% if parcel.isEnRoute %}
  1531. <fieldset>
  1532. <legend>En route</legend>
  1533. <h5>REG: {{ parcel.vehicle.regNumber }}
  1534. <p class=\"detail\">Loaded By: {{ transaction.waybill.createdBy.person.secondName }} {{ transaction.waybill.createdBy.person.sirName }}</p>
  1535. {% if parcel.isEnRoute %}
  1536. <p class=\"detail\">From: <i class=\"fas fa-hand-point-right\"></i>{{ parcel.enRouteFrom | date(\"F jS, Y \\\\a\\\\t g:ia\") }}</p>
  1537. {% endif %}
  1538. {% if parcel.isReceived %}
  1539. <p class=\"detail\">To: <i class=\"fas fa-hand-point-right\"></i>{{ parcel.receivedAt | date(\"F jS, Y \\\\a\\\\t g:ia\") }}</p>
  1540. {% endif %}
  1541. </h5>
  1542. </fieldset>
  1543. {% endif %}#}
  1544. {#{% if parcel.isReceived %}
  1545. <fieldset>
  1546. <legend>Received By</legend>
  1547. <h5>USER: {{ parcel.receivedBy.person.firstName | upper }} {{ parcel.receivedBy.person.secondName | upper }} {{parcel.receivedBy.person.sirName | upper }}
  1548. {% if parcel.isReceived %}
  1549. <p class=\"detail\">From: <i class=\"fas fa-hand-point-right\"></i>{{ parcel.receivedAt | date(\"F jS, Y \\\\a\\\\t g:ia\") }}</p>
  1550. {% endif %}
  1551. {% if transaction.wayBill.isCollected %}
  1552. <p class=\"detail\">to: <i class=\"fas fa-hand-point-right\"></i>{{ parcel.collectedAt | date(\"F jS, Y \\\\a\\\\t g:ia\") }}</p>
  1553. {% endif %}
  1554. </h5>
  1555. </fieldset>
  1556. {% endif %}#}
  1557. {#{% if parcel.isCollected %}
  1558. <fieldset>
  1559. <legend>Collected By</legend>
  1560. <h5>National ID: {{ parcel.collectorNationalId }}</h5>
  1561. <h5>USER: {{ parcel.collectedOfficerBy.person.firstName | upper }} {{ parcel.collectedOfficerBy.person.secondName | upper }} {{parcel.collectedOfficerBy.person.sirName | upper }}</h5>
  1562. <p class=\"detail\">At: <i class=\"fas fa-hand-point-right\"></i>{{ parcel.collectedAt | date(\"F jS, Y \\\\a\\\\t g:ia\") }}</p>
  1563. </fieldset>
  1564. {% endif %}#}
  1565. </fieldset>
  1566. <div style=\"align-content: center; text-align: center;\">
  1567. <img alt=\"Coding Sips\" src=\"/barcode?text={{ transaction.wayBill.id }}/{{ parcel.number }}&Codetype=Code128&size=60&print=true\" />
  1568. </div>
  1569. </div>
  1570. </div>
  1571. {% endfor %}
  1572. </div>
  1573. {% if sms is defined and sms %}
  1574. <hr>
  1575. <div class=\"row\">
  1576. <table class=\"table table-bordered\">
  1577. <thead>
  1578. <tr>
  1579. <th>#</th>
  1580. <th>RECEIVER</th>
  1581. <th>STATUS</th>
  1582. <th>Sent Via Phone</th>
  1583. <th>MESSAGE</th>
  1584. </tr>
  1585. </thead>
  1586. <tbody>
  1587. {% for message in sms %}
  1588. <tr>
  1589. <td>{{ loop.index }} </td>
  1590. <td>{{ message.recepient }}</td>
  1591. <td>
  1592. {% if message.status %}
  1593. {% if message.status == 'Success' or message.status == 'Sent' %}
  1594. <span class=\"alert-success\">{{ message.status }}</span>
  1595. {% else %}
  1596. <span class=\"alert-danger\">
  1597. {{ message.status }}{#[{{ message.statusCode }}]#} <br>
  1598. {% if message.statusCode < 1000 %}
  1599. {{ statusChart[message.statusCode] }} [{{ message.statusCode }}]
  1600. {% endif %}
  1601. </span>
  1602. {% endif %}
  1603. {% else %}
  1604. <span>N/A</span>
  1605. {% endif %}
  1606. </td>
  1607. <td>
  1608. {% if message.status != 'Success' or message.status != 'Sent' %}
  1609. {% if message.manuallySent %}
  1610. <i class=\"fas fa-check-circle\" style=\"color: green;\"></i>
  1611. {% endif %}
  1612. {% endif %}
  1613. </td>
  1614. <td>{{ message.sms }}</td>
  1615. </tr>
  1616. {% endfor %}
  1617. </tbody>
  1618. </table>
  1619. </div>
  1620. {% endif %}
  1621. <div class=\"print-area\" id=\"print-area\">
  1622. </div>
  1623. <script>
  1624. let printReceipt = async () => {
  1625. \$(\".se-pre-con\").fadeIn(\"slow\");
  1626. let completeTransaction = await fetch(\"{{ path('register_transaction_as_complete', {'id': transaction.wayBill.id }) }}\", {
  1627. method: 'POST'
  1628. }).then(response => {
  1629. response.json().then(json => {
  1630. if(response.status === 200){
  1631. printJS({
  1632. printable:'print-area',
  1633. type: 'html',
  1634. css:'../../../../../assets/css/print.css'});
  1635. }else{
  1636. console.log('error occurred');
  1637. }
  1638. })
  1639. }).finally(() => {
  1640. \$(\".se-pre-con\").fadeOut(\"slow\");
  1641. });
  1642. };
  1643. jQuery(document).bind(\"keyup keydown\", function(e){
  1644. if(e.ctrlKey && e.keyCode === 80){
  1645. console.log(\"printing ...\");
  1646. printReceipt();
  1647. }
  1648. });
  1649. window.jsPDF = window.jspdf.jsPDF;
  1650. function download() {
  1651. let renderHtml = \$('#print-area').html();
  1652. let pdf = new jsPDF('p','mm', [254, 80]);
  1653. pdf.html(renderHtml, {
  1654. callback: function (pdf) {
  1655. window.open(pdf.output('bloburl'));
  1656. }
  1657. });
  1658. }
  1659. // download();
  1660. // \$( document ).ready(function() {
  1661. // window.jsPDF = window.jspdf.jsPDF;
  1662. //
  1663. // // Default export is a4 paper, portrait, using millimeters for units
  1664. // var doc = window.jsPDF;
  1665. // var specialElementHandlers = {
  1666. // '#editor': function (element, renderer) {
  1667. // return true;
  1668. // }
  1669. // };
  1670. //
  1671. // doc.html(\$('.receipt-print').html(), 15, 15, {
  1672. // 'width': 170,
  1673. // 'elementHandlers': specialElementHandlers
  1674. // });
  1675. // doc.save('sample-file.pdf');
  1676. // });
  1677. function save() {
  1678. var content = [\"your-content-here\"];
  1679. var bl = new Blob(content, {type: \"application/pdf\"});
  1680. var a = document.createElement(\"a\");
  1681. a.href = URL.createObjectURL(\"http://localhost:8000/fos/receipt/{{ transaction.wayBill.id }}\");
  1682. a.download = \"{{ transaction.wayBill.id }}.pdf\";
  1683. a.hidden = true;
  1684. document.body.appendChild(a);
  1685. a.click();
  1686. }
  1687. function print(url){
  1688. // \$(\".se-pre-con\").fadeIn(\"slow\");
  1689. // printJS(url);
  1690. printJS({
  1691. printable: url,
  1692. type:'pdf',
  1693. showModal:true,
  1694. modalMessage: 'Downloading receipt please wait!',
  1695. onError: function (error) {
  1696. console.log(error);
  1697. alert('Could not generate receipt please try again ')
  1698. }
  1699. });
  1700. }
  1701. </script>
  1702. {% endblock %}
  1703. ", "fos/parcels/view_parcel.html.twig", "/var/www/html/courier/templates/fos/parcels/view_parcel.html.twig");
  1704. }
  1705. }