Advertisement
Guest User

Untitled

a guest
Feb 2nd, 2024
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 4.69 KB | None | 0 0
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <meta name="viewport"
  6.          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  7.     <meta http-equiv="X-UA-Compatible" content="ie=edge">
  8.     <title>Document</title>
  9.     <style>
  10.         .invoice-box {
  11.             max-width: 800px;
  12.             margin: auto;
  13.             padding: 30px;
  14.             border: 1px solid #eee;
  15.             box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  16.             font-size: 16px;
  17.             line-height: 24px;
  18.             font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif;
  19.             color: #555;
  20.         }
  21.  
  22.         .invoice-box table {
  23.             width: 100%;
  24.             line-height: inherit;
  25.             text-align: left;
  26.         }
  27.  
  28.         .invoice-box table td {
  29.             padding: 5px;
  30.             vertical-align: top;
  31.         }
  32.  
  33.         .invoice-box table tr td:nth-child(2) {
  34.             text-align: right;
  35.         }
  36.  
  37.         .invoice-box table tr.top table td {
  38.             padding-bottom: 20px;
  39.         }
  40.  
  41.         .invoice-box table tr.top table td.title {
  42.             font-size: 45px;
  43.             line-height: 45px;
  44.             color: #333;
  45.         }
  46.  
  47.         .invoice-box table tr.information table td {
  48.             padding-bottom: 40px;
  49.         }
  50.  
  51.         .invoice-box table tr.heading td {
  52.             background: #eee;
  53.             border-bottom: 1px solid #ddd;
  54.             font-weight: bold;
  55.         }
  56.  
  57.         .invoice-box table tr.details td {
  58.             padding-bottom: 20px;
  59.         }
  60.  
  61.         .invoice-box table tr.item td {
  62.             border-bottom: 1px solid #eee;
  63.         }
  64.  
  65.         .invoice-box table tr.item.last td {
  66.             border-bottom: none;
  67.         }
  68.  
  69.         .invoice-box table tr.total td:nth-child(2) {
  70.             border-top: 2px solid #eee;
  71.             font-weight: bold;
  72.         }
  73.  
  74.         @media only screen and (max-width: 600px) {
  75.             .invoice-box table tr.top table td {
  76.                 width: 100%;
  77.                 display: block;
  78.                 text-align: center;
  79.             }
  80.  
  81.             .invoice-box table tr.information table td {
  82.                 width: 100%;
  83.                 display: block;
  84.                 text-align: center;
  85.             }
  86.         }
  87.  
  88.         /** RTL **/
  89.         .rtl {
  90.             direction: rtl;
  91.             font-family: Tahoma, 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif;
  92.         }
  93.  
  94.         .rtl table {
  95.             text-align: right;
  96.         }
  97.  
  98.         .rtl table tr td:nth-child(2) {
  99.             text-align: left;
  100.         }
  101.     </style>
  102.  
  103. </head>
  104. <body>
  105. <div class="invoice-box">
  106.     <table cellpadding="0" cellspacing="0">
  107.         <tbody><tr class="top">
  108.             <td colspan="2">
  109.                 <table>
  110.                     <tbody><tr>
  111.                         <td class="title">
  112.                             <img src="https://demo.booknetic.com/public/images/logo.svg" style="width: 100%; max-width: 150px">
  113.                         </td>
  114.  
  115.                         <td>
  116.                             Invoice #2021000{appointment_id}<br>
  117.                             Created: {appointment_created_date}<br>
  118.                             Due: {appointment_date}
  119.                         </td>
  120.                     </tr>
  121.                     </tbody></table>
  122.             </td>
  123.         </tr>
  124.  
  125.         <tr class="information">
  126.             <td colspan="2">
  127.                 <table>
  128.                     <tbody><tr>
  129.                         <td>
  130.                             {company_name}<br>
  131.                             {company_phone}<br>
  132.                             {company_address}
  133.                         </td>
  134.  
  135.                         <td>
  136.                             {customer_full_name}<br>
  137.                             {customer_phone}<br>
  138.                             {customer_email}
  139.                         </td>
  140.                     </tr>
  141.                     </tbody></table>
  142.             </td>
  143.         </tr>
  144.  
  145.         <tr class="heading">
  146.             <td>Staff name</td>
  147.  
  148.             <td>Staff number</td>
  149.         </tr>
  150.  
  151.         <tr class="details">
  152.             <td>{staff_name}</td>
  153.  
  154.             <td>{staff_phone}</td>
  155.         </tr>
  156.  
  157.         <tr class="heading">
  158.             <td>Service</td>
  159.  
  160.             <td>Price</td>
  161.         </tr>
  162.  
  163.         <tr class="item">
  164.             <td>{service_name}</td>
  165.  
  166.             <td>{service_price}</td>
  167.         </tr>
  168.  
  169.  
  170.         <tr class="total">
  171.             <td></td>
  172.  
  173.             <td>Total: {appointment_sum_price}</td>
  174.         </tr>
  175.         </tbody></table>
  176. </div>
  177. </body>
  178. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement