Skip to content

Commit

Permalink
more flexible template / compatible with tailwind
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinGab committed Nov 10, 2024
1 parent 320ecde commit f7a1cd2
Show file tree
Hide file tree
Showing 9 changed files with 578 additions and 475 deletions.
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ php artisan vendor:publish --tag="invoices-config"
This is the contents of the published config file:

```php
use Finller\Invoice\Invoice;
use Finller\Invoice\InvoiceDiscount;
use Finller\Invoice\InvoiceItem;
use Finller\Invoice\InvoiceType;

return [

'model_invoice' => Invoice::class,
Expand Down Expand Up @@ -109,7 +114,9 @@ return [

'default_logo' => null,

'default_template' => 'default',
'default_color' => '#050038',

'default_template' => 'default.layout',

/**
* ISO 4217 currency code
Expand All @@ -121,7 +128,10 @@ return [
*
* @see Available options https://github.com/barryvdh/laravel-dompdf#configuration
*/
'pdf_options' => [],
'pdf_options' => [
'isPhpEnabled' => true,
],

'paper_options' => [
'paper' => 'a4',
'orientation' => 'portrait',
Expand Down
14 changes: 10 additions & 4 deletions config/invoices.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

// config for Finller/Invoice

use Finller\Invoice\Invoice;
use Finller\Invoice\InvoiceDiscount;
use Finller\Invoice\InvoiceItem;
Expand Down Expand Up @@ -78,7 +76,12 @@

'default_logo' => null,

'default_template' => 'default',
/**
* Define the color of the header line
*/
'default_color' => '#050038',

'default_template' => 'default.layout',

/**
* ISO 4217 currency code
Expand All @@ -90,7 +93,10 @@
*
* @see Available options https://github.com/barryvdh/laravel-dompdf#configuration
*/
'pdf_options' => [],
'pdf_options' => [
'isPhpEnabled' => true,
],

'paper_options' => [
'paper' => 'a4',
'orientation' => 'portrait',
Expand Down
3 changes: 3 additions & 0 deletions resources/lang/en/invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
'quantity' => 'Qty',
'discount_name' => 'Discount',

'from' => 'Bill From',
'to' => 'Bill To',

'states' => [
'draft' => 'Draft',
'pending' => 'Pending',
Expand Down
3 changes: 3 additions & 0 deletions resources/lang/fr/invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
'quantity' => 'Qté',
'discount_name' => 'Remise',

'from' => 'De',
'to' => 'Pour',

'states' => [
'draft' => 'Brouillon',
'pending' => 'En attente',
Expand Down
Loading

0 comments on commit f7a1cd2

Please sign in to comment.