|
6 | 6 | <title><?php echo $title; ?></title> |
7 | 7 | <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> |
8 | 8 | <base href="<?php echo $base; ?>"> |
9 | | -<link href="view/stylesheet/stylesheet.css" rel="stylesheet"> |
10 | 9 | <link href="view/stylesheet/main.css" rel="stylesheet"> |
11 | 10 | <script src="view\javascript\jquery\jquery-3.3.1.min.js"></script> |
12 | 11 | <script src="view\javascript\bootstrap\js\bootstrap.js"></script> |
|
18 | 17 | } |
19 | 18 | </style> |
20 | 19 | </head> |
21 | | -<body style="padding-top:80px;"> |
| 20 | +<body style="padding-top:0;"> |
22 | 21 | <div class="container"> |
23 | | -<?php foreach ($invoices as $invoices) { ?> |
| 22 | +<?php foreach ($invoices as $invoice) { ?> |
24 | 23 | <?php if (!empty($header_html)) { ?> |
25 | 24 | <div class="invoice-custom-header"><?php echo $header_html; ?></div> |
26 | 25 | <?php } ?> |
27 | | - <table style="width:100%; margin:0; border-collapse:collapse;"> |
| 26 | + <div class="store_logo"> |
| 27 | + <div class="logo"> |
| 28 | + <img src="<?php echo '../image/' . $logo; ?>" title="<?php echo $invoice['payment_company']; ?>" /> |
| 29 | + <span class="title"><?php echo $text_invoice; ?></span> |
| 30 | + </div> |
| 31 | + </div> |
| 32 | + <table class="table table-bordered"> |
28 | 33 | <tr> |
29 | | - <td style="width:50%; vertical-align:top; padding:0;"> |
30 | | - <table style="width:100%; border-collapse:collapse;"> |
31 | | - <tr> |
32 | | - <td style="width:26%; vertical-align:top; padding:0;"> |
33 | | - <img src="<?php echo '../image/' . $logo; ?>" title="<?php echo $invoices['store_name']; ?>" style="width:24mm;" /> |
34 | | - </td> |
35 | | - <td style="width:21%; padding:0;"></td> |
36 | | - <td style="width:53%; vertical-align:top; padding:0;"> |
37 | | - <strong style="font-size:15px;"><?php echo $invoices['store_name']; ?></strong><br> |
38 | | - <?php echo $invoices['store_address']; ?><br> |
39 | | - <?php if ($invoices['store_locality']) { ?> |
40 | | - <?php echo $invoices['store_locality']; ?><br> |
41 | | - <?php } ?> |
42 | | - <?php echo $text_telephone; ?> <?php echo $invoices['store_telephone']; ?><br> |
43 | | - <?php if ($invoices['store_fax']) { ?> |
44 | | - <?php echo $text_fax; ?> <?php echo $invoices['store_fax']; ?><br> |
45 | | - <?php } ?> |
46 | | - <?php echo $text_tax_id; ?> <?php echo $invoices['store_nif']; ?><br> |
47 | | - <?php echo $invoices['store_email']; ?> |
48 | | - </td> |
49 | | - </tr> |
50 | | - </table> |
| 34 | + <td width="50%"><b><?php echo $invoice['payment_company']; ?></b><br> |
| 35 | + <?php echo $invoice['payment_address']; ?><br> |
| 36 | + <?php if ($invoice['payment_tax_id']) { ?> |
| 37 | + <?php echo $text_tax_id; ?> <?php echo $invoice['payment_tax_id']; ?><br> |
| 38 | + <?php } ?> |
| 39 | + <?php if ($invoice['telephone']) { ?> |
| 40 | + <?php echo $text_telephone; ?> <?php echo $invoice['telephone']; ?><br> |
| 41 | + <?php } ?> |
| 42 | + <?php echo $invoice['email']; ?> |
| 43 | + <?php if ($invoice['payment_company_id']) { ?> |
| 44 | + <br> |
| 45 | + <?php echo $text_company_id; ?> <?php echo $invoice['payment_company_id']; ?> |
| 46 | + <?php } ?></td> |
| 47 | + <td> |
| 48 | + <b><?php echo $text_date_added; ?></b> <?php echo $invoice['date_added']; ?><br> |
| 49 | + <b><?php echo $text_invoice_id; ?></b> <?php echo $invoice['invoice_prefix'] . $invoice['invoice_id']; ?><br> |
| 50 | + <b><?php echo $text_payment_method; ?></b> <?php echo $invoice['payment_method']; ?><br> |
| 51 | + <?php if ($invoice['shipping_method']) { ?> |
| 52 | + <b><?php echo $text_shipping_method; ?></b> <?php echo $invoice['shipping_method']; ?><br> |
| 53 | + <?php } ?> |
51 | 54 | </td> |
52 | | - <td style="vertical-align:top; padding:0;"></td> |
53 | 55 | </tr> |
| 56 | + </table> |
| 57 | + <table class="table table-bordered"> |
54 | 58 | <tr> |
55 | | - <td style="vertical-align:top; padding:0;"> |
56 | | - </td> |
57 | | - <td style="text-align:right; vertical-align:top; padding:0;"> |
58 | | - <b><?php echo mb_strtoupper($text_invoice, 'UTF-8'); ?>:</b> <?php echo $invoices['invoice_prefix'] . $invoices['invoice_id']; ?> <b>DATE:</b> <?php echo $invoices['date_added']; ?> |
59 | | - </td> |
| 59 | + <th><?php echo $text_to; ?></th> |
60 | 60 | </tr> |
61 | 61 | <tr> |
62 | | - <td style="vertical-align:top; padding:0;"></td> |
63 | | - <td style="text-align:left; vertical-align:top; padding:0;"><?php if ($invoices['payment_company']) { ?><strong><?php echo $invoices['payment_company']; ?></strong><br/><?php } ?><?php echo $invoices['payment_address']; ?><?php if ($invoices['payment_tax_id']) { ?><br/><?php echo $text_tax_id; ?> <?php echo $invoices['payment_tax_id']; ?><?php } ?><br/><?php echo $invoices['email']; ?><?php if ($invoices['telephone']) { ?><br/><?php echo $invoices['telephone']; ?><?php } ?><?php if ($invoices['payment_company_id']) { ?><br/><br/><?php echo $text_company_id; ?> <?php echo $invoices['payment_company_id']; ?><?php } ?></td> |
| 62 | + <td><b><?php echo $invoice['store_name']; ?></b><br> |
| 63 | + <?php echo $invoice['store_address']; ?><br> |
| 64 | + <?php if ($invoice['store_locality']) { ?> |
| 65 | + <?php echo $invoice['store_locality']; ?><br> |
| 66 | + <?php } ?> |
| 67 | + <?php echo $text_tax_id; ?> <?php echo $invoice['store_nif']; ?><br> |
| 68 | + <?php echo $text_telephone; ?> <?php echo $invoice['store_telephone']; ?><br> |
| 69 | + <?php if ($invoice['store_fax']) { ?> |
| 70 | + <?php echo $text_fax; ?> <?php echo $invoice['store_fax']; ?><br> |
| 71 | + <?php } ?> |
| 72 | + <?php echo $invoice['store_email']; ?></td> |
64 | 73 | </tr> |
65 | 74 | </table> |
66 | 75 | <table class="table table-bordered"> |
67 | 76 | <tr> |
68 | 77 | <th><?php echo $column_product; ?></th> |
| 78 | + <th><?php echo $column_model; ?></th> |
69 | 79 | <th class="text-right"><?php echo $column_quantity; ?></th> |
70 | 80 | <th class="text-right"><?php echo $column_price; ?></th> |
71 | 81 | <th class="text-right"><?php echo $column_discount; ?></th> |
72 | 82 | <th class="text-right"><?php echo $column_total; ?></th> |
73 | 83 | </tr> |
74 | | - <?php foreach ($invoices['product'] as $product) { ?> |
| 84 | + <?php foreach ($invoice['product'] as $product) { ?> |
75 | 85 | <tr> |
76 | 86 | <td><?php echo $product['name']; ?> |
77 | 87 | <?php foreach ($product['option'] as $option) { ?> |
78 | 88 | <br> |
79 | 89 | <small> - <?php echo $option['name']; ?>: <?php echo $option['value']; ?></small> |
80 | 90 | <?php } ?></td> |
| 91 | + <td><?php echo $product['model']; ?></td> |
81 | 92 | <td class="text-right"><?php echo $product['quantity']; ?></td> |
82 | 93 | <td class="text-right"><?php echo $product['price']; ?></td> |
83 | 94 | <td class="text-right"><?php echo $product['discount']; ?></td> |
84 | 95 | <td class="text-right"><?php echo $product['total']; ?></td> |
85 | 96 | </tr> |
86 | 97 | <?php } ?> |
87 | | - <?php foreach ($invoices['total'] as $total) { ?> |
| 98 | + <?php foreach ($invoice['total'] as $total) { ?> |
88 | 99 | <tr> |
89 | | - <td class="text-right" colspan="4"><b><?php echo $total['title']; ?>:</b></td> |
| 100 | + <td class="text-right" colspan="5"><b><?php echo $total['title']; ?>:</b></td> |
90 | 101 | <td class="text-right"><?php echo $total['text']; ?></td> |
91 | 102 | </tr> |
92 | 103 | <?php } ?> |
93 | 104 | </table> |
94 | | - <div style="text-align:left;"><b><?php echo $text_payment_method; ?></b> <?php echo $invoices['payment_method']; ?></div> |
95 | | - <?php if ($invoices['comment']) { ?> |
| 105 | + <?php if ($invoice['comment']) { ?> |
96 | 106 | <table class="table table-bordered"> |
97 | 107 | <tr> |
98 | 108 | <th><?php echo $column_comment; ?></th> |
99 | 109 | </tr> |
100 | 110 | <tr> |
101 | | - <td><?php echo $invoices['comment']; ?></td> |
| 111 | + <td><?php echo $invoice['comment']; ?></td> |
102 | 112 | </tr> |
103 | 113 | </table> |
104 | 114 | <?php } ?> |
|