Server : Apache/2.4.18 (Ubuntu) System : Linux canvaswebdesign 3.13.0-71-generic #114-Ubuntu SMP Tue Dec 1 02:34:22 UTC 2015 x86_64 User : oppastar ( 1041) PHP Version : 7.0.33-0ubuntu0.16.04.15 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, Directory : /var/www/kanvakanva.com/public_html/application/views/admin/pdf/ |
Upload File : |
<!DOCTYPE html> <html> <head> <title><?= $title ?></title> <!-- CSS only --> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous"> <style> @page { margin-left: 10px; } body { font-family:arial !important; } .nobr { page-break-inside: avoid; } </style> </head> <body> <div style="clear:both; position:relative;"> <?php $count=0 ?> <?php foreach ($id_orders as $id_order) : ?> <div class="col-sm-6 mb-5" <?= ($count%2==0) ? 'style=" page-break-after: always; position:absolute; display: inline-block; vertical-align: top; left:0pt; width:50%;" ' : 'style="vertical-align: top; margin-left:51%; width:50%;" '; ?> > <table class="table border nobr"> <tr> <td colspan="4" style="font-size: 10px"> <img style="max-width:50px" src="https://www.kanvakanva.com/assets/frontend/img/logo.jpg" /> <p style="float: right;"> <?= strtoupper($data[$id_order]['order']->payment_type) ?></p> </td> </tr> <tr style="font-size: 13px;"> <td colspan="2"> <?= $data[$id_order]['order']->shipping_type ?> <br> Order : <?= $data[$id_order]['order']->id_orders ?> </td> <td colspan="2"> Berat : <?= ($data[$id_order]['weight']->berat/1000) ?> Kg <br> Ongkir : Rp. <?= number_format($data[$id_order]['order']->shipping_fee,0,',','.'); ?> </td> </tr> <tr style="font-size: 13px;"> <td colspan="2"> Kepada:<br> <strong><?= $data[$id_order]['order']->recipient_name ?></strong><br> <?= $data[$id_order]['order']->address ?>, <?= $data[$id_order]['order']->district ?>, <?= $data[$id_order]['order']->province ?>, <?= $data[$id_order]['order']->postcode ?><br> <?= $data[$id_order]['order']->phone ?> <td colspan="2"> Dari:<br> <strong><?= $configuration->website_name ?></strong><br> Jagakarsa, Jakarta Selatan<br> 081355033577 </td> </tr> <tr style="font-size: 12px;"> <td colspan="2">Produk</td> <td>Varian</td> <td>Jumlah</td> </tr> <?php foreach ( $data[$id_order]['order_details'] as $item ) : ?> <tr style="font-size: 11px;"> <td colspan="2" style="border-top: none; padding-top: 0; padding-bottom: 0;"><?= str_replace( $item->size , '', $item->item_name); ?></td> <td style="border-top: none; padding-top: 0; padding-bottom: 0;"> <?php $item->size = str_replace('Size : ', '', $item->size); $item->size = str_replace('Size: ', '', $item->size); echo $item->size; ?> </td> <td style="border-top: none; padding-top: 0; padding-bottom: 0;"><?= $item->quantity ?> pcs</td> </tr> <?php endforeach; ?> <tr style="font-size: 11px;"> <td colspan="4" style="border: none; padding-top: 0;"></td> </tr> </table> </div> <?php $count++; ?> <?php endforeach; ?> </div> </body> </html>