Comments (4)
Strange. Use the following as the head of your template, that's works for me.
<head>
<title>{{ $invoice->name }}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<style type="text/css" media="screen">
html {
font-family: sans-serif;
line-height: 1.15;
margin: 0;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
font-weight: 400;
line-height: 1.5;
color: #212529;
text-align: left;
background-color: #fff;
font-size: 10px;
margin: 36pt;
}
h4 {
margin-top: 0;
margin-bottom: 0.5rem;
}
p {
margin-top: 0;
margin-bottom: 1rem;
}
strong {
font-weight: bolder;
}
img {
vertical-align: middle;
border-style: none;
}
table {
border-collapse: collapse;
}
th {
text-align: inherit;
}
h4, .h4 {
margin-bottom: 0.5rem;
font-weight: 500;
line-height: 1.2;
}
h4, .h4 {
font-size: 1.5rem;
}
.table {
width: 100%;
margin-bottom: 1rem;
color: #212529;
}
.table th,
.table td {
padding: 0.75rem;
vertical-align: top;
border-top: 1px solid #dee2e6;
}
.table thead th {
vertical-align: bottom;
border-bottom: 2px solid #dee2e6;
}
.table tbody + tbody {
border-top: 2px solid #dee2e6;
}
.mt-5 {
margin-top: 3rem !important;
}
.pr-0,
.px-0 {
padding-right: 0 !important;
}
.pl-0,
.px-0 {
padding-left: 0 !important;
}
.text-right {
text-align: right !important;
}
.text-center {
text-align: center !important;
}
.text-uppercase {
text-transform: uppercase !important;
}
* {
font-family: "DejaVu Sans";
}
body, h1, h2, h3, h4, h5, h6, table, th, tr, td, p, div {
line-height: 1.1;
}
.party-header {
font-size: 1.5rem;
font-weight: 400;
}
.total-amount {
font-size: 12px;
font-weight: 700;
}
.border-0 {
border: none !important;
}
</style>
</head>
from laravel-invoices.
@youssef-ghrib I think the wrong template will be installed when you use php artisan invoices:install
. If you do php artisan invoices:update
after the install the correct template will be added. That worked for me.
from laravel-invoices.
I tried php artisan invoices:update
but still same issue.
from laravel-invoices.
Works like a charm, Thank you 👍
from laravel-invoices.
Related Issues (20)
- Encryption of pdf with master password HOT 1
- Adding css "break-inside: auto;" HOT 3
- Typo in German translation
- Multiple Tax HOT 1
- Products number and serial number HOT 1
- Arabic Character issue HOT 1
- Malformed UTF-8 characters, possibly incorrectly encoded HOT 2
- How to add additional amount besides total taxes and total discount and auto-calculate it to the totals? HOT 1
- path to translations is incorrect HOT 1
- How to get the invoice number without saving the file to disk or outputting to browser HOT 2
- to be able to change the view file on the fly without it having to be fixed for populating credit notes
- file_exists(): open_basedir restriction in effect HOT 10
- php unit test keep receiving error: Invoice: unable to set tax twice HOT 1
- pdf file size HOT 3
- Can I add a Class for Salary Invoice type ? HOT 1
- Invocies without due date HOT 1
- Precalculation HOT 3
- Add inclusive tax option
- Add option to use Puppeteer with Browsershot as a PDF render engine
- Translate Carbon Date Format HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-invoices.