Skip to content

Commit f7a1cd2

Browse files
committed
more flexible template / compatible with tailwind
1 parent 320ecde commit f7a1cd2

File tree

9 files changed

+578
-475
lines changed

9 files changed

+578
-475
lines changed

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ php artisan vendor:publish --tag="invoices-config"
3838
This is the contents of the published config file:
3939

4040
```php
41+
use Finller\Invoice\Invoice;
42+
use Finller\Invoice\InvoiceDiscount;
43+
use Finller\Invoice\InvoiceItem;
44+
use Finller\Invoice\InvoiceType;
45+
4146
return [
4247

4348
'model_invoice' => Invoice::class,
@@ -109,7 +114,9 @@ return [
109114

110115
'default_logo' => null,
111116

112-
'default_template' => 'default',
117+
'default_color' => '#050038',
118+
119+
'default_template' => 'default.layout',
113120

114121
/**
115122
* ISO 4217 currency code
@@ -121,7 +128,10 @@ return [
121128
*
122129
* @see Available options https://github.com/barryvdh/laravel-dompdf#configuration
123130
*/
124-
'pdf_options' => [],
131+
'pdf_options' => [
132+
'isPhpEnabled' => true,
133+
],
134+
125135
'paper_options' => [
126136
'paper' => 'a4',
127137
'orientation' => 'portrait',

config/invoices.php

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<?php
22

3-
// config for Finller/Invoice
4-
53
use Finller\Invoice\Invoice;
64
use Finller\Invoice\InvoiceDiscount;
75
use Finller\Invoice\InvoiceItem;
@@ -78,7 +76,12 @@
7876

7977
'default_logo' => null,
8078

81-
'default_template' => 'default',
79+
/**
80+
* Define the color of the header line
81+
*/
82+
'default_color' => '#050038',
83+
84+
'default_template' => 'default.layout',
8285

8386
/**
8487
* ISO 4217 currency code
@@ -90,7 +93,10 @@
9093
*
9194
* @see Available options https://github.com/barryvdh/laravel-dompdf#configuration
9295
*/
93-
'pdf_options' => [],
96+
'pdf_options' => [
97+
'isPhpEnabled' => true,
98+
],
99+
94100
'paper_options' => [
95101
'paper' => 'a4',
96102
'orientation' => 'portrait',

resources/lang/en/invoice.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
'quantity' => 'Qty',
2222
'discount_name' => 'Discount',
2323

24+
'from' => 'Bill From',
25+
'to' => 'Bill To',
26+
2427
'states' => [
2528
'draft' => 'Draft',
2629
'pending' => 'Pending',

resources/lang/fr/invoice.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
'quantity' => 'Qté',
2222
'discount_name' => 'Remise',
2323

24+
'from' => 'De',
25+
'to' => 'Pour',
26+
2427
'states' => [
2528
'draft' => 'Brouillon',
2629
'pending' => 'En attente',

0 commit comments

Comments
 (0)