Skip to content

Instantly share code, notes, and snippets.

@alfredoem
Created November 3, 2015 19:17
Show Gist options
  • Save alfredoem/c7a6fbcba33c57948132 to your computer and use it in GitHub Desktop.
Save alfredoem/c7a6fbcba33c57948132 to your computer and use it in GitHub Desktop.
Template for a invoice render with DomPDF
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Aloha!</title>
<style type="text/css">
* {
font-family: Verdana, Arial, sans-serif;
}
table{
font-size: x-small;
}
tfoot tr td{
font-weight: bold;
font-size: x-small;
}
.gray {
background-color: lightgray
}
</style>
</head>
<body>
<table width="100%">
<tr>
<td valign="top"><img src="{{asset('images/meteor-logo.png')}}" alt="" width="150"/></td>
<td align="right">
<h3>Shinra Electric power company</h3>
<pre>
Company representative name
Company address
Tax ID
phone
fax
</pre>
</td>
</tr>
</table>
<table width="100%">
<tr>
<td><strong>From:</strong> Linblum - Barrio teatral</td>
<td><strong>To:</strong> Linblum - Barrio Comercial</td>
</tr>
</table>
<br/>
<table width="100%">
<thead style="background-color: lightgray;">
<tr>
<th>#</th>
<th>Description</th>
<th>Quantity</th>
<th>Unit Price $</th>
<th>Total $</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td>Playstation IV - Black</td>
<td align="right">1</td>
<td align="right">1400.00</td>
<td align="right">1400.00</td>
</tr>
<tr>
<th scope="row">1</th>
<td>Metal Gear Solid - Phantom</td>
<td align="right">1</td>
<td align="right">105.00</td>
<td align="right">105.00</td>
</tr>
<tr>
<th scope="row">1</th>
<td>Final Fantasy XV - Game</td>
<td align="right">1</td>
<td align="right">130.00</td>
<td align="right">130.00</td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="3"></td>
<td align="right">Subtotal $</td>
<td align="right">1635.00</td>
</tr>
<tr>
<td colspan="3"></td>
<td align="right">Tax $</td>
<td align="right">294.3</td>
</tr>
<tr>
<td colspan="3"></td>
<td align="right">Total $</td>
<td align="right" class="gray">$ 1929.3</td>
</tr>
</tfoot>
</table>
</body>
</html>
@juli1403
Copy link

juli1403 commented Jul 3, 2019

Thx

@rexlManu
Copy link

Thx

@tumelo-mapheto
Copy link

Thanks for sharing.

@ZameelAmjed
Copy link

Thanks

@salhi197
Copy link

thanks :)

@juliomrafael
Copy link

good🤚

@inkomomutane
Copy link

thanks

@vittosheva
Copy link

Thanks, it's worth a lot

@awaisyousuf29
Copy link

it takes alot of time to load why?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment