Setup pint & run code style fix
This commit is contained in:
@@ -17,404 +17,404 @@ return [
|
||||
|
||||
// Customer
|
||||
[
|
||||
"name" => "view customer",
|
||||
"ability" => "view-customer",
|
||||
"model" => Customer::class,
|
||||
'name' => 'view customer',
|
||||
'ability' => 'view-customer',
|
||||
'model' => Customer::class,
|
||||
],
|
||||
[
|
||||
"name" => "create customer",
|
||||
"ability" => "create-customer",
|
||||
"model" => Customer::class,
|
||||
"depends_on" => [
|
||||
'name' => 'create customer',
|
||||
'ability' => 'create-customer',
|
||||
'model' => Customer::class,
|
||||
'depends_on' => [
|
||||
'view-customer',
|
||||
'view-custom-field',
|
||||
]
|
||||
],
|
||||
],
|
||||
[
|
||||
"name" => "edit customer",
|
||||
"ability" => "edit-customer",
|
||||
"model" => Customer::class,
|
||||
"depends_on" => [
|
||||
'name' => 'edit customer',
|
||||
'ability' => 'edit-customer',
|
||||
'model' => Customer::class,
|
||||
'depends_on' => [
|
||||
'view-customer',
|
||||
'view-custom-field',
|
||||
]
|
||||
],
|
||||
],
|
||||
[
|
||||
"name" => "delete customer",
|
||||
"ability" => "delete-customer",
|
||||
"model" => Customer::class,
|
||||
"depends_on" => [
|
||||
'name' => 'delete customer',
|
||||
'ability' => 'delete-customer',
|
||||
'model' => Customer::class,
|
||||
'depends_on' => [
|
||||
'view-customer',
|
||||
]
|
||||
],
|
||||
],
|
||||
|
||||
// Item
|
||||
[
|
||||
"name" => "view item",
|
||||
"ability" => "view-item",
|
||||
"model" => Item::class,
|
||||
'name' => 'view item',
|
||||
'ability' => 'view-item',
|
||||
'model' => Item::class,
|
||||
],
|
||||
[
|
||||
"name" => "create item",
|
||||
"ability" => "create-item",
|
||||
"model" => Item::class,
|
||||
"depends_on" => [
|
||||
'name' => 'create item',
|
||||
'ability' => 'create-item',
|
||||
'model' => Item::class,
|
||||
'depends_on' => [
|
||||
'view-item',
|
||||
'view-tax-type'
|
||||
]
|
||||
'view-tax-type',
|
||||
],
|
||||
],
|
||||
[
|
||||
"name" => "edit item",
|
||||
"ability" => "edit-item",
|
||||
"model" => Item::class,
|
||||
"depends_on" => [
|
||||
'name' => 'edit item',
|
||||
'ability' => 'edit-item',
|
||||
'model' => Item::class,
|
||||
'depends_on' => [
|
||||
'view-item',
|
||||
]
|
||||
],
|
||||
],
|
||||
[
|
||||
"name" => "delete item",
|
||||
"ability" => "delete-item",
|
||||
"model" => Item::class,
|
||||
"depends_on" => [
|
||||
'name' => 'delete item',
|
||||
'ability' => 'delete-item',
|
||||
'model' => Item::class,
|
||||
'depends_on' => [
|
||||
'view-item',
|
||||
]
|
||||
],
|
||||
],
|
||||
|
||||
// Tax Type
|
||||
[
|
||||
"name" => "view tax type",
|
||||
"ability" => "view-tax-type",
|
||||
"model" => TaxType::class,
|
||||
'name' => 'view tax type',
|
||||
'ability' => 'view-tax-type',
|
||||
'model' => TaxType::class,
|
||||
],
|
||||
[
|
||||
"name" => "create tax type",
|
||||
"ability" => "create-tax-type",
|
||||
"model" => TaxType::class,
|
||||
"depends_on" => [
|
||||
'name' => 'create tax type',
|
||||
'ability' => 'create-tax-type',
|
||||
'model' => TaxType::class,
|
||||
'depends_on' => [
|
||||
'view-tax-type',
|
||||
]
|
||||
],
|
||||
],
|
||||
[
|
||||
"name" => "edit tax type",
|
||||
"ability" => "edit-tax-type",
|
||||
"model" => TaxType::class,
|
||||
"depends_on" => [
|
||||
'name' => 'edit tax type',
|
||||
'ability' => 'edit-tax-type',
|
||||
'model' => TaxType::class,
|
||||
'depends_on' => [
|
||||
'view-tax-type',
|
||||
]
|
||||
],
|
||||
],
|
||||
[
|
||||
"name" => "delete tax type",
|
||||
"ability" => "delete-tax-type",
|
||||
"model" => TaxType::class,
|
||||
"depends_on" => [
|
||||
'name' => 'delete tax type',
|
||||
'ability' => 'delete-tax-type',
|
||||
'model' => TaxType::class,
|
||||
'depends_on' => [
|
||||
'view-tax-type',
|
||||
]
|
||||
],
|
||||
],
|
||||
|
||||
// Estimate
|
||||
[
|
||||
"name" => "view estimate",
|
||||
"ability" => "view-estimate",
|
||||
"model" => Estimate::class,
|
||||
'name' => 'view estimate',
|
||||
'ability' => 'view-estimate',
|
||||
'model' => Estimate::class,
|
||||
],
|
||||
[
|
||||
"name" => "create estimate",
|
||||
"ability" => "create-estimate",
|
||||
"model" => Estimate::class,
|
||||
"depends_on" => [
|
||||
'name' => 'create estimate',
|
||||
'ability' => 'create-estimate',
|
||||
'model' => Estimate::class,
|
||||
'depends_on' => [
|
||||
'view-estimate',
|
||||
'view-item',
|
||||
'view-tax-type',
|
||||
'view-customer',
|
||||
'view-custom-field',
|
||||
'view-all-notes'
|
||||
]
|
||||
'view-all-notes',
|
||||
],
|
||||
],
|
||||
[
|
||||
"name" => "edit estimate",
|
||||
"ability" => "edit-estimate",
|
||||
"model" => Estimate::class,
|
||||
"depends_on" => [
|
||||
'name' => 'edit estimate',
|
||||
'ability' => 'edit-estimate',
|
||||
'model' => Estimate::class,
|
||||
'depends_on' => [
|
||||
'view-item',
|
||||
'view-estimate',
|
||||
'view-tax-type',
|
||||
'view-customer',
|
||||
'view-custom-field',
|
||||
'view-all-notes'
|
||||
]
|
||||
'view-all-notes',
|
||||
],
|
||||
],
|
||||
[
|
||||
"name" => "delete estimate",
|
||||
"ability" => "delete-estimate",
|
||||
"model" => Estimate::class,
|
||||
"depends_on" => [
|
||||
'name' => 'delete estimate',
|
||||
'ability' => 'delete-estimate',
|
||||
'model' => Estimate::class,
|
||||
'depends_on' => [
|
||||
'view-estimate',
|
||||
]
|
||||
],
|
||||
],
|
||||
[
|
||||
"name" => "send estimate",
|
||||
"ability" => "send-estimate",
|
||||
"model" => Estimate::class,
|
||||
'name' => 'send estimate',
|
||||
'ability' => 'send-estimate',
|
||||
'model' => Estimate::class,
|
||||
],
|
||||
|
||||
// Invoice
|
||||
[
|
||||
"name" => "view invoice",
|
||||
"ability" => "view-invoice",
|
||||
"model" => Invoice::class,
|
||||
'name' => 'view invoice',
|
||||
'ability' => 'view-invoice',
|
||||
'model' => Invoice::class,
|
||||
],
|
||||
[
|
||||
"name" => "create invoice",
|
||||
"ability" => "create-invoice",
|
||||
"model" => Invoice::class,
|
||||
'name' => 'create invoice',
|
||||
'ability' => 'create-invoice',
|
||||
'model' => Invoice::class,
|
||||
'owner_only' => false,
|
||||
"depends_on" => [
|
||||
'depends_on' => [
|
||||
'view-item',
|
||||
'view-invoice',
|
||||
'view-tax-type',
|
||||
'view-customer',
|
||||
'view-custom-field',
|
||||
'view-all-notes'
|
||||
]
|
||||
'view-all-notes',
|
||||
],
|
||||
],
|
||||
[
|
||||
"name" => "edit invoice",
|
||||
"ability" => "edit-invoice",
|
||||
"model" => Invoice::class,
|
||||
"depends_on" => [
|
||||
'name' => 'edit invoice',
|
||||
'ability' => 'edit-invoice',
|
||||
'model' => Invoice::class,
|
||||
'depends_on' => [
|
||||
'view-item',
|
||||
'view-invoice',
|
||||
'view-tax-type',
|
||||
'view-customer',
|
||||
'view-custom-field',
|
||||
'view-all-notes'
|
||||
]
|
||||
'view-all-notes',
|
||||
],
|
||||
],
|
||||
[
|
||||
"name" => "delete invoice",
|
||||
"ability" => "delete-invoice",
|
||||
"model" => Invoice::class,
|
||||
"depends_on" => [
|
||||
'view-invoice'
|
||||
]
|
||||
'name' => 'delete invoice',
|
||||
'ability' => 'delete-invoice',
|
||||
'model' => Invoice::class,
|
||||
'depends_on' => [
|
||||
'view-invoice',
|
||||
],
|
||||
],
|
||||
[
|
||||
"name" => "send invoice",
|
||||
"ability" => "send-invoice",
|
||||
"model" => Invoice::class,
|
||||
'name' => 'send invoice',
|
||||
'ability' => 'send-invoice',
|
||||
'model' => Invoice::class,
|
||||
],
|
||||
|
||||
// Recurring Invoice
|
||||
[
|
||||
"name" => "view recurring invoice",
|
||||
"ability" => "view-recurring-invoice",
|
||||
"model" => RecurringInvoice::class,
|
||||
'name' => 'view recurring invoice',
|
||||
'ability' => 'view-recurring-invoice',
|
||||
'model' => RecurringInvoice::class,
|
||||
],
|
||||
[
|
||||
"name" => "create recurring invoice",
|
||||
"ability" => "create-recurring-invoice",
|
||||
"model" => RecurringInvoice::class,
|
||||
"depends_on" => [
|
||||
'name' => 'create recurring invoice',
|
||||
'ability' => 'create-recurring-invoice',
|
||||
'model' => RecurringInvoice::class,
|
||||
'depends_on' => [
|
||||
'view-item',
|
||||
'view-recurring-invoice',
|
||||
'view-tax-type',
|
||||
'view-customer',
|
||||
'view-all-notes',
|
||||
'send-invoice'
|
||||
]
|
||||
'send-invoice',
|
||||
],
|
||||
],
|
||||
[
|
||||
"name" => "edit recurring invoice",
|
||||
"ability" => "edit-recurring-invoice",
|
||||
"model" => RecurringInvoice::class,
|
||||
"depends_on" => [
|
||||
'name' => 'edit recurring invoice',
|
||||
'ability' => 'edit-recurring-invoice',
|
||||
'model' => RecurringInvoice::class,
|
||||
'depends_on' => [
|
||||
'view-item',
|
||||
'view-recurring-invoice',
|
||||
'view-tax-type',
|
||||
'view-customer',
|
||||
'view-all-notes',
|
||||
'send-invoice'
|
||||
]
|
||||
'send-invoice',
|
||||
],
|
||||
],
|
||||
[
|
||||
"name" => "delete recurring invoice",
|
||||
"ability" => "delete-recurring-invoice",
|
||||
"model" => RecurringInvoice::class,
|
||||
"depends_on" => [
|
||||
'name' => 'delete recurring invoice',
|
||||
'ability' => 'delete-recurring-invoice',
|
||||
'model' => RecurringInvoice::class,
|
||||
'depends_on' => [
|
||||
'view-recurring-invoice',
|
||||
]
|
||||
],
|
||||
],
|
||||
|
||||
// Payment
|
||||
[
|
||||
"name" => "view payment",
|
||||
"ability" => "view-payment",
|
||||
"model" => Payment::class,
|
||||
'name' => 'view payment',
|
||||
'ability' => 'view-payment',
|
||||
'model' => Payment::class,
|
||||
],
|
||||
[
|
||||
"name" => "create payment",
|
||||
"ability" => "create-payment",
|
||||
"model" => Payment::class,
|
||||
"depends_on" => [
|
||||
'name' => 'create payment',
|
||||
'ability' => 'create-payment',
|
||||
'model' => Payment::class,
|
||||
'depends_on' => [
|
||||
'view-customer',
|
||||
'view-payment',
|
||||
'view-invoice',
|
||||
'view-custom-field',
|
||||
'view-all-notes'
|
||||
]
|
||||
'view-all-notes',
|
||||
],
|
||||
],
|
||||
[
|
||||
"name" => "edit payment",
|
||||
"ability" => "edit-payment",
|
||||
"model" => Payment::class,
|
||||
"depends_on" => [
|
||||
'name' => 'edit payment',
|
||||
'ability' => 'edit-payment',
|
||||
'model' => Payment::class,
|
||||
'depends_on' => [
|
||||
'view-customer',
|
||||
'view-payment',
|
||||
'view-invoice',
|
||||
'view-custom-field',
|
||||
'view-all-notes'
|
||||
]
|
||||
'view-all-notes',
|
||||
],
|
||||
],
|
||||
[
|
||||
"name" => "delete payment",
|
||||
"ability" => "delete-payment",
|
||||
"model" => Payment::class,
|
||||
"depends_on" => [
|
||||
'name' => 'delete payment',
|
||||
'ability' => 'delete-payment',
|
||||
'model' => Payment::class,
|
||||
'depends_on' => [
|
||||
'view-payment',
|
||||
]
|
||||
],
|
||||
],
|
||||
[
|
||||
"name" => "send payment",
|
||||
"ability" => "send-payment",
|
||||
"model" => Payment::class,
|
||||
'name' => 'send payment',
|
||||
'ability' => 'send-payment',
|
||||
'model' => Payment::class,
|
||||
],
|
||||
|
||||
// Expense
|
||||
[
|
||||
"name" => "view expense",
|
||||
"ability" => "view-expense",
|
||||
"model" => Expense::class,
|
||||
'name' => 'view expense',
|
||||
'ability' => 'view-expense',
|
||||
'model' => Expense::class,
|
||||
],
|
||||
[
|
||||
"name" => "create expense",
|
||||
"ability" => "create-expense",
|
||||
"model" => Expense::class,
|
||||
"depends_on" => [
|
||||
'name' => 'create expense',
|
||||
'ability' => 'create-expense',
|
||||
'model' => Expense::class,
|
||||
'depends_on' => [
|
||||
'view-customer',
|
||||
'view-expense',
|
||||
'view-custom-field',
|
||||
]
|
||||
],
|
||||
],
|
||||
[
|
||||
"name" => "edit expense",
|
||||
"ability" => "edit-expense",
|
||||
"model" => Expense::class,
|
||||
"depends_on" => [
|
||||
'name' => 'edit expense',
|
||||
'ability' => 'edit-expense',
|
||||
'model' => Expense::class,
|
||||
'depends_on' => [
|
||||
'view-customer',
|
||||
'view-expense',
|
||||
'view-custom-field',
|
||||
]
|
||||
],
|
||||
],
|
||||
[
|
||||
"name" => "delete expense",
|
||||
"ability" => "delete-expense",
|
||||
"model" => Expense::class,
|
||||
"depends_on" => [
|
||||
'name' => 'delete expense',
|
||||
'ability' => 'delete-expense',
|
||||
'model' => Expense::class,
|
||||
'depends_on' => [
|
||||
'view-expense',
|
||||
]
|
||||
],
|
||||
],
|
||||
|
||||
// Custom Field
|
||||
[
|
||||
"name" => "view custom field",
|
||||
"ability" => "view-custom-field",
|
||||
"model" => CustomField::class,
|
||||
'name' => 'view custom field',
|
||||
'ability' => 'view-custom-field',
|
||||
'model' => CustomField::class,
|
||||
],
|
||||
[
|
||||
"name" => "create custom field",
|
||||
"ability" => "create-custom-field",
|
||||
"model" => CustomField::class,
|
||||
"depends_on" => [
|
||||
'name' => 'create custom field',
|
||||
'ability' => 'create-custom-field',
|
||||
'model' => CustomField::class,
|
||||
'depends_on' => [
|
||||
'view-custom-field',
|
||||
]
|
||||
],
|
||||
],
|
||||
[
|
||||
"name" => "edit custom field",
|
||||
"ability" => "edit-custom-field",
|
||||
"model" => CustomField::class,
|
||||
"depends_on" => [
|
||||
'name' => 'edit custom field',
|
||||
'ability' => 'edit-custom-field',
|
||||
'model' => CustomField::class,
|
||||
'depends_on' => [
|
||||
'view-custom-field',
|
||||
]
|
||||
],
|
||||
],
|
||||
[
|
||||
"name" => "delete custom field",
|
||||
"ability" => "delete-custom-field",
|
||||
"model" => CustomField::class,
|
||||
"depends_on" => [
|
||||
'name' => 'delete custom field',
|
||||
'ability' => 'delete-custom-field',
|
||||
'model' => CustomField::class,
|
||||
'depends_on' => [
|
||||
'view-custom-field',
|
||||
]
|
||||
],
|
||||
],
|
||||
|
||||
// Financial Reports
|
||||
[
|
||||
"name" => "view financial reports",
|
||||
"ability" => "view-financial-reports",
|
||||
"model" => null,
|
||||
'name' => 'view financial reports',
|
||||
'ability' => 'view-financial-reports',
|
||||
'model' => null,
|
||||
],
|
||||
|
||||
// Exchange Rate Provider
|
||||
[
|
||||
"name" => "view exchange rate provider",
|
||||
"ability" => "view-exchange-rate-provider",
|
||||
"model" => ExchangeRateProvider::class,
|
||||
'name' => 'view exchange rate provider',
|
||||
'ability' => 'view-exchange-rate-provider',
|
||||
'model' => ExchangeRateProvider::class,
|
||||
'owner_only' => false,
|
||||
],
|
||||
[
|
||||
"name" => "create exchange rate provider",
|
||||
"ability" => "create-exchange-rate-provider",
|
||||
"model" => ExchangeRateProvider::class,
|
||||
'name' => 'create exchange rate provider',
|
||||
'ability' => 'create-exchange-rate-provider',
|
||||
'model' => ExchangeRateProvider::class,
|
||||
'owner_only' => false,
|
||||
"depends_on" => [
|
||||
'depends_on' => [
|
||||
'view-exchange-rate-provider',
|
||||
]
|
||||
],
|
||||
],
|
||||
[
|
||||
"name" => "edit exchange rate provider",
|
||||
"ability" => "edit-exchange-rate-provider",
|
||||
"model" => ExchangeRateProvider::class,
|
||||
'name' => 'edit exchange rate provider',
|
||||
'ability' => 'edit-exchange-rate-provider',
|
||||
'model' => ExchangeRateProvider::class,
|
||||
'owner_only' => false,
|
||||
"depends_on" => [
|
||||
'depends_on' => [
|
||||
'view-exchange-rate-provider',
|
||||
]
|
||||
],
|
||||
],
|
||||
[
|
||||
"name" => "delete exchange rate provider",
|
||||
"ability" => "delete-exchange-rate-provider",
|
||||
"model" => ExchangeRateProvider::class,
|
||||
'name' => 'delete exchange rate provider',
|
||||
'ability' => 'delete-exchange-rate-provider',
|
||||
'model' => ExchangeRateProvider::class,
|
||||
'owner_only' => false,
|
||||
"depends_on" => [
|
||||
'depends_on' => [
|
||||
'view-exchange-rate-provider',
|
||||
]
|
||||
],
|
||||
],
|
||||
|
||||
// Settings
|
||||
[
|
||||
"name" => "view company dashboard",
|
||||
"ability" => "dashboard",
|
||||
"model" => null,
|
||||
'name' => 'view company dashboard',
|
||||
'ability' => 'dashboard',
|
||||
'model' => null,
|
||||
],
|
||||
[
|
||||
"name" => "view all notes",
|
||||
"ability" => "view-all-notes",
|
||||
"model" => Note::class,
|
||||
'name' => 'view all notes',
|
||||
'ability' => 'view-all-notes',
|
||||
'model' => Note::class,
|
||||
],
|
||||
[
|
||||
"name" => "manage notes",
|
||||
"ability" => "manage-all-notes",
|
||||
"model" => Note::class,
|
||||
"depends_on" => [
|
||||
'view-all-notes'
|
||||
]
|
||||
]
|
||||
]
|
||||
'name' => 'manage notes',
|
||||
'ability' => 'manage-all-notes',
|
||||
'model' => Note::class,
|
||||
'depends_on' => [
|
||||
'view-all-notes',
|
||||
],
|
||||
],
|
||||
],
|
||||
];
|
||||
|
||||
@@ -168,7 +168,7 @@ return [
|
||||
InvoiceShelf\Providers\EventServiceProvider::class,
|
||||
InvoiceShelf\Providers\RouteServiceProvider::class,
|
||||
InvoiceShelf\Providers\DropboxServiceProvider::class,
|
||||
InvoiceShelf\Providers\ViewServiceProvider::class
|
||||
InvoiceShelf\Providers\ViewServiceProvider::class,
|
||||
],
|
||||
|
||||
/*
|
||||
@@ -220,6 +220,6 @@ return [
|
||||
'Flash' => Laracasts\Flash\Flash::class,
|
||||
// 'JWTAuth' => Tymon\JWTAuth\Facades\JWTAuth::class,
|
||||
'Pusher' => Pusher\Pusher::class,
|
||||
'Menu' => Lavary\Menu\Facade::class
|
||||
'Menu' => Lavary\Menu\Facade::class,
|
||||
],
|
||||
];
|
||||
|
||||
@@ -38,7 +38,7 @@ return [
|
||||
* Times-Roman, Times-Bold, Times-BoldItalic, Times-Italic,
|
||||
* Symbol, ZapfDingbats.
|
||||
*/
|
||||
"font_dir" => storage_path('fonts/'), // advised by dompdf (https://github.com/dompdf/dompdf/pull/782)
|
||||
'font_dir' => storage_path('fonts/'), // advised by dompdf (https://github.com/dompdf/dompdf/pull/782)
|
||||
|
||||
/**
|
||||
* The location of the DOMPDF font cache directory
|
||||
@@ -48,7 +48,7 @@ return [
|
||||
*
|
||||
* Note: This directory must exist and be writable by the webserver process.
|
||||
*/
|
||||
"font_cache" => storage_path('fonts/'),
|
||||
'font_cache' => storage_path('fonts/'),
|
||||
|
||||
/**
|
||||
* The location of a temporary directory.
|
||||
@@ -57,7 +57,7 @@ return [
|
||||
* The temporary directory is required to download remote images and when
|
||||
* using the PFDLib back end.
|
||||
*/
|
||||
"temp_dir" => sys_get_temp_dir(),
|
||||
'temp_dir' => sys_get_temp_dir(),
|
||||
|
||||
/**
|
||||
* ==== IMPORTANT ====
|
||||
@@ -71,20 +71,19 @@ return [
|
||||
* direct class use like:
|
||||
* $dompdf = new DOMPDF(); $dompdf->load_html($htmldata); $dompdf->render(); $pdfdata = $dompdf->output();
|
||||
*/
|
||||
"chroot" => realpath(base_path()),
|
||||
'chroot' => realpath(base_path()),
|
||||
|
||||
/**
|
||||
* Whether to enable font subsetting or not.
|
||||
*/
|
||||
"enable_font_subsetting" => false,
|
||||
'enable_font_subsetting' => false,
|
||||
|
||||
/**
|
||||
* The PDF rendering backend to use
|
||||
*
|
||||
* Valid settings are 'PDFLib', 'CPDF' (the bundled R&OS PDF class), 'GD' and
|
||||
* 'auto'. 'auto' will look for PDFLib and use it if found, or if not it will
|
||||
* fall back on CPDF. 'GD' renders PDFs to graphic files. {@link
|
||||
* Canvas_Factory} ultimately determines which rendering class to instantiate
|
||||
* fall back on CPDF. 'GD' renders PDFs to graphic files. {@link * Canvas_Factory} ultimately determines which rendering class to instantiate
|
||||
* based on this setting.
|
||||
*
|
||||
* Both PDFLib & CPDF rendering backends provide sufficient rendering
|
||||
@@ -106,7 +105,7 @@ return [
|
||||
* @link http://www.ros.co.nz/pdf
|
||||
* @link http://www.php.net/image
|
||||
*/
|
||||
"pdf_backend" => "CPDF",
|
||||
'pdf_backend' => 'CPDF',
|
||||
|
||||
/**
|
||||
* PDFlib license key
|
||||
@@ -132,7 +131,7 @@ return [
|
||||
* the desired content might be different (e.g. screen or projection view of html file).
|
||||
* Therefore allow specification of content here.
|
||||
*/
|
||||
"default_media_type" => "screen",
|
||||
'default_media_type' => 'screen',
|
||||
|
||||
/**
|
||||
* The default paper size.
|
||||
@@ -141,15 +140,16 @@ return [
|
||||
*
|
||||
* @see CPDF_Adapter::PAPER_SIZES for valid sizes ('letter', 'legal', 'A4', etc.)
|
||||
*/
|
||||
"default_paper_size" => "a4",
|
||||
'default_paper_size' => 'a4',
|
||||
|
||||
/**
|
||||
* The default font family
|
||||
*
|
||||
* Used if no suitable fonts can be found. This must exist in the font folder.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
"default_font" => "DejaVu Sans",
|
||||
'default_font' => 'DejaVu Sans',
|
||||
|
||||
/**
|
||||
* Image DPI setting
|
||||
@@ -184,7 +184,7 @@ return [
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
"dpi" => 96,
|
||||
'dpi' => 96,
|
||||
|
||||
/**
|
||||
* Enable inline PHP
|
||||
@@ -198,7 +198,7 @@ return [
|
||||
*
|
||||
* @var bool
|
||||
*/
|
||||
"enable_php" => false,
|
||||
'enable_php' => false,
|
||||
|
||||
/**
|
||||
* Enable inline Javascript
|
||||
@@ -208,7 +208,7 @@ return [
|
||||
*
|
||||
* @var bool
|
||||
*/
|
||||
"enable_javascript" => true,
|
||||
'enable_javascript' => true,
|
||||
|
||||
/**
|
||||
* Enable remote file access
|
||||
@@ -227,18 +227,17 @@ return [
|
||||
*
|
||||
* @var bool
|
||||
*/
|
||||
"enable_remote" => true,
|
||||
'enable_remote' => true,
|
||||
|
||||
/**
|
||||
* A ratio applied to the fonts height to be more like browsers' line height
|
||||
*/
|
||||
"font_height_ratio" => 1.1,
|
||||
'font_height_ratio' => 1.1,
|
||||
|
||||
/**
|
||||
* Use the more-than-experimental HTML5 Lib parser
|
||||
*/
|
||||
"enable_html5_parser" => true,
|
||||
'enable_html5_parser' => true,
|
||||
],
|
||||
|
||||
|
||||
];
|
||||
|
||||
@@ -52,43 +52,43 @@ return [
|
||||
* List of languages supported by Crater.
|
||||
*/
|
||||
'languages' => [
|
||||
["code" => "ar", "name" => "Arabic"],
|
||||
["code" => "nl", "name" => "Dutch"],
|
||||
["code" => "en", "name" => "English"],
|
||||
["code" => "fr", "name" => "French"],
|
||||
["code" => "de", "name" => "German"],
|
||||
["code" => "ja", "name" => "Japanese"],
|
||||
["code" => "it", "name" => "Italian"],
|
||||
["code" => "lv", "name" => "Latvian"],
|
||||
["code" => "pl", "name" => "Polish"],
|
||||
["code" => "pt_BR", "name" => "Portuguese (Brazilian)"],
|
||||
["code" => "sr", "name" => "Serbian Latin"],
|
||||
["code" => "ko", "name" => "Korean"],
|
||||
["code" => "es", "name" => "Spanish"],
|
||||
["code" => "sv", "name" => "Svenska"],
|
||||
["code" => "sk", "name" => "Slovak"],
|
||||
["code" => "vi", "name" => "Tiếng Việt"],
|
||||
["code" => "cs", "name" => "Czech"],
|
||||
["code" => "el", "name" => "Greek"],
|
||||
["code" => "hr", "name" => "Crotian"],
|
||||
["code" => "th", "name" => "ไทย"],
|
||||
['code' => 'ar', 'name' => 'Arabic'],
|
||||
['code' => 'nl', 'name' => 'Dutch'],
|
||||
['code' => 'en', 'name' => 'English'],
|
||||
['code' => 'fr', 'name' => 'French'],
|
||||
['code' => 'de', 'name' => 'German'],
|
||||
['code' => 'ja', 'name' => 'Japanese'],
|
||||
['code' => 'it', 'name' => 'Italian'],
|
||||
['code' => 'lv', 'name' => 'Latvian'],
|
||||
['code' => 'pl', 'name' => 'Polish'],
|
||||
['code' => 'pt_BR', 'name' => 'Portuguese (Brazilian)'],
|
||||
['code' => 'sr', 'name' => 'Serbian Latin'],
|
||||
['code' => 'ko', 'name' => 'Korean'],
|
||||
['code' => 'es', 'name' => 'Spanish'],
|
||||
['code' => 'sv', 'name' => 'Svenska'],
|
||||
['code' => 'sk', 'name' => 'Slovak'],
|
||||
['code' => 'vi', 'name' => 'Tiếng Việt'],
|
||||
['code' => 'cs', 'name' => 'Czech'],
|
||||
['code' => 'el', 'name' => 'Greek'],
|
||||
['code' => 'hr', 'name' => 'Crotian'],
|
||||
['code' => 'th', 'name' => 'ไทย'],
|
||||
],
|
||||
|
||||
/*
|
||||
* List of Fiscal Years
|
||||
*/
|
||||
'fiscal_years' => [
|
||||
['key' => 'january-december' , 'value' => '1-12'],
|
||||
['key' => 'february-january' , 'value' => '2-1'],
|
||||
['key' => 'march-february' , 'value' => '3-2'],
|
||||
['key' => 'april-march' , 'value' => '4-3'],
|
||||
['key' => 'may-april' , 'value' => '5-4'],
|
||||
['key' => 'june-may' , 'value' => '6-5'],
|
||||
['key' => 'july-june' , 'value' => '7-6'],
|
||||
['key' => 'august-july' , 'value' => '8-7'],
|
||||
['key' => 'september-august' , 'value' => '9-8'],
|
||||
['key' => 'january-december', 'value' => '1-12'],
|
||||
['key' => 'february-january', 'value' => '2-1'],
|
||||
['key' => 'march-february', 'value' => '3-2'],
|
||||
['key' => 'april-march', 'value' => '4-3'],
|
||||
['key' => 'may-april', 'value' => '5-4'],
|
||||
['key' => 'june-may', 'value' => '6-5'],
|
||||
['key' => 'july-june', 'value' => '7-6'],
|
||||
['key' => 'august-july', 'value' => '8-7'],
|
||||
['key' => 'september-august', 'value' => '9-8'],
|
||||
['key' => 'october-september', 'value' => '10-9'],
|
||||
['key' => 'november-october' , 'value' => '11-10'],
|
||||
['key' => 'november-october', 'value' => '11-10'],
|
||||
['key' => 'december-november', 'value' => '12-11'],
|
||||
],
|
||||
|
||||
@@ -123,7 +123,7 @@ return [
|
||||
'icon' => 'UserIcon',
|
||||
'owner_only' => false,
|
||||
'ability' => '',
|
||||
'model' => ''
|
||||
'model' => '',
|
||||
],
|
||||
[
|
||||
'title' => 'settings.menu_title.company_information',
|
||||
@@ -133,7 +133,7 @@ return [
|
||||
'icon' => 'OfficeBuildingIcon',
|
||||
'owner_only' => true,
|
||||
'ability' => '',
|
||||
'model' => ''
|
||||
'model' => '',
|
||||
],
|
||||
[
|
||||
'title' => 'settings.menu_title.preferences',
|
||||
@@ -143,7 +143,7 @@ return [
|
||||
'icon' => 'CogIcon',
|
||||
'owner_only' => true,
|
||||
'ability' => '',
|
||||
'model' => ''
|
||||
'model' => '',
|
||||
],
|
||||
[
|
||||
'title' => 'settings.menu_title.customization',
|
||||
@@ -153,7 +153,7 @@ return [
|
||||
'icon' => 'PencilAltIcon',
|
||||
'owner_only' => true,
|
||||
'ability' => '',
|
||||
'model' => ''
|
||||
'model' => '',
|
||||
],
|
||||
[
|
||||
'title' => 'settings.roles.title',
|
||||
@@ -163,7 +163,7 @@ return [
|
||||
'icon' => 'UserGroupIcon',
|
||||
'owner_only' => true,
|
||||
'ability' => '',
|
||||
'model' => ''
|
||||
'model' => '',
|
||||
],
|
||||
[
|
||||
'title' => 'settings.menu_title.exchange_rate',
|
||||
@@ -173,7 +173,7 @@ return [
|
||||
'icon' => 'CashIcon',
|
||||
'owner_only' => false,
|
||||
'ability' => 'view-exchange-rate-provider',
|
||||
'model' => ExchangeRateProvider::class
|
||||
'model' => ExchangeRateProvider::class,
|
||||
],
|
||||
[
|
||||
'title' => 'settings.menu_title.notifications',
|
||||
@@ -183,7 +183,7 @@ return [
|
||||
'icon' => 'BellIcon',
|
||||
'owner_only' => true,
|
||||
'ability' => '',
|
||||
'model' => ''
|
||||
'model' => '',
|
||||
],
|
||||
[
|
||||
'title' => 'settings.menu_title.tax_types',
|
||||
@@ -193,7 +193,7 @@ return [
|
||||
'icon' => 'CheckCircleIcon',
|
||||
'owner_only' => false,
|
||||
'ability' => 'view-tax-type',
|
||||
'model' => TaxType::class
|
||||
'model' => TaxType::class,
|
||||
],
|
||||
[
|
||||
'title' => 'settings.menu_title.payment_modes',
|
||||
@@ -203,7 +203,7 @@ return [
|
||||
'icon' => 'CreditCardIcon',
|
||||
'owner_only' => false,
|
||||
'ability' => 'view-payment',
|
||||
'model' => Payment::class
|
||||
'model' => Payment::class,
|
||||
],
|
||||
[
|
||||
'title' => 'settings.menu_title.custom_fields',
|
||||
@@ -213,7 +213,7 @@ return [
|
||||
'icon' => 'CubeIcon',
|
||||
'owner_only' => false,
|
||||
'ability' => 'view-custom-field',
|
||||
'model' => CustomField::class
|
||||
'model' => CustomField::class,
|
||||
],
|
||||
[
|
||||
'title' => 'settings.menu_title.notes',
|
||||
@@ -223,7 +223,7 @@ return [
|
||||
'icon' => 'ClipboardCheckIcon',
|
||||
'owner_only' => false,
|
||||
'ability' => 'view-all-notes',
|
||||
'model' => Note::class
|
||||
'model' => Note::class,
|
||||
],
|
||||
[
|
||||
'title' => 'settings.menu_title.expense_category',
|
||||
@@ -233,7 +233,7 @@ return [
|
||||
'icon' => 'ClipboardListIcon',
|
||||
'owner_only' => false,
|
||||
'ability' => 'view-expense',
|
||||
'model' => Expense::class
|
||||
'model' => Expense::class,
|
||||
],
|
||||
[
|
||||
'title' => 'settings.mail.mail_config',
|
||||
@@ -243,7 +243,7 @@ return [
|
||||
'icon' => 'MailIcon',
|
||||
'owner_only' => true,
|
||||
'ability' => '',
|
||||
'model' => ''
|
||||
'model' => '',
|
||||
],
|
||||
[
|
||||
'title' => 'settings.menu_title.file_disk',
|
||||
@@ -253,7 +253,7 @@ return [
|
||||
'icon' => 'FolderIcon',
|
||||
'owner_only' => true,
|
||||
'ability' => '',
|
||||
'model' => ''
|
||||
'model' => '',
|
||||
],
|
||||
[
|
||||
'title' => 'settings.menu_title.backup',
|
||||
@@ -263,7 +263,7 @@ return [
|
||||
'icon' => 'DatabaseIcon',
|
||||
'owner_only' => true,
|
||||
'ability' => '',
|
||||
'model' => ''
|
||||
'model' => '',
|
||||
],
|
||||
[
|
||||
'title' => 'settings.menu_title.update_app',
|
||||
@@ -273,7 +273,7 @@ return [
|
||||
'icon' => 'RefreshIcon',
|
||||
'owner_only' => true,
|
||||
'ability' => '',
|
||||
'model' => ''
|
||||
'model' => '',
|
||||
],
|
||||
],
|
||||
|
||||
@@ -289,7 +289,7 @@ return [
|
||||
'name' => 'Dashboard',
|
||||
'owner_only' => false,
|
||||
'ability' => 'dashboard',
|
||||
'model' => ''
|
||||
'model' => '',
|
||||
],
|
||||
[
|
||||
'title' => 'navigation.customers',
|
||||
@@ -299,7 +299,7 @@ return [
|
||||
'name' => 'Customers',
|
||||
'owner_only' => false,
|
||||
'ability' => 'view-customer',
|
||||
'model' => Customer::class
|
||||
'model' => Customer::class,
|
||||
],
|
||||
[
|
||||
'title' => 'navigation.items',
|
||||
@@ -309,7 +309,7 @@ return [
|
||||
'name' => 'Items',
|
||||
'owner_only' => false,
|
||||
'ability' => 'view-item',
|
||||
'model' => Item::class
|
||||
'model' => Item::class,
|
||||
],
|
||||
[
|
||||
'title' => 'navigation.estimates',
|
||||
@@ -319,7 +319,7 @@ return [
|
||||
'name' => 'Estimates',
|
||||
'owner_only' => false,
|
||||
'ability' => 'view-estimate',
|
||||
'model' => Estimate::class
|
||||
'model' => Estimate::class,
|
||||
],
|
||||
[
|
||||
'title' => 'navigation.invoices',
|
||||
@@ -329,7 +329,7 @@ return [
|
||||
'name' => 'Invoices',
|
||||
'owner_only' => false,
|
||||
'ability' => 'view-invoice',
|
||||
'model' => Invoice::class
|
||||
'model' => Invoice::class,
|
||||
],
|
||||
[
|
||||
'title' => 'navigation.recurring-invoices',
|
||||
@@ -339,7 +339,7 @@ return [
|
||||
'name' => 'Recurring Invoices',
|
||||
'owner_only' => false,
|
||||
'ability' => 'view-recurring-invoice',
|
||||
'model' => RecurringInvoice::class
|
||||
'model' => RecurringInvoice::class,
|
||||
],
|
||||
[
|
||||
'title' => 'navigation.payments',
|
||||
@@ -349,7 +349,7 @@ return [
|
||||
'name' => 'Payments',
|
||||
'owner_only' => false,
|
||||
'ability' => 'view-payment',
|
||||
'model' => Payment::class
|
||||
'model' => Payment::class,
|
||||
],
|
||||
[
|
||||
'title' => 'navigation.expenses',
|
||||
@@ -359,7 +359,7 @@ return [
|
||||
'name' => 'Expenses',
|
||||
'owner_only' => false,
|
||||
'ability' => 'view-expense',
|
||||
'model' => Expense::class
|
||||
'model' => Expense::class,
|
||||
],
|
||||
[
|
||||
'title' => 'navigation.modules',
|
||||
@@ -369,7 +369,7 @@ return [
|
||||
'name' => 'Modules',
|
||||
'owner_only' => true,
|
||||
'ability' => '',
|
||||
'model' => ''
|
||||
'model' => '',
|
||||
],
|
||||
[
|
||||
'title' => 'navigation.users',
|
||||
@@ -379,7 +379,7 @@ return [
|
||||
'name' => 'Users',
|
||||
'owner_only' => true,
|
||||
'ability' => '',
|
||||
'model' => ''
|
||||
'model' => '',
|
||||
],
|
||||
[
|
||||
'title' => 'navigation.reports',
|
||||
@@ -389,7 +389,7 @@ return [
|
||||
'name' => 'Reports',
|
||||
'owner_only' => false,
|
||||
'ability' => 'view-financial-reports',
|
||||
'model' => ''
|
||||
'model' => '',
|
||||
],
|
||||
[
|
||||
'title' => 'navigation.settings',
|
||||
@@ -399,7 +399,7 @@ return [
|
||||
'name' => 'Settings',
|
||||
'owner_only' => false,
|
||||
'ability' => '',
|
||||
'model' => ''
|
||||
'model' => '',
|
||||
],
|
||||
],
|
||||
|
||||
@@ -415,7 +415,7 @@ return [
|
||||
'ability' => '',
|
||||
'owner_only' => false,
|
||||
'group' => '',
|
||||
'model' => ''
|
||||
'model' => '',
|
||||
],
|
||||
[
|
||||
'title' => 'Invoices',
|
||||
@@ -425,7 +425,7 @@ return [
|
||||
'ability' => '',
|
||||
'owner_only' => false,
|
||||
'group' => '',
|
||||
'model' => ''
|
||||
'model' => '',
|
||||
],
|
||||
[
|
||||
'title' => 'Estimates',
|
||||
@@ -435,7 +435,7 @@ return [
|
||||
'owner_only' => false,
|
||||
'ability' => '',
|
||||
'group' => '',
|
||||
'model' => ''
|
||||
'model' => '',
|
||||
],
|
||||
[
|
||||
'title' => 'Payments',
|
||||
@@ -445,7 +445,7 @@ return [
|
||||
'owner_only' => false,
|
||||
'ability' => '',
|
||||
'group' => '',
|
||||
'model' => ''
|
||||
'model' => '',
|
||||
],
|
||||
[
|
||||
'title' => 'Settings',
|
||||
@@ -455,7 +455,7 @@ return [
|
||||
'owner_only' => false,
|
||||
'ability' => '',
|
||||
'group' => '',
|
||||
'model' => ''
|
||||
'model' => '',
|
||||
],
|
||||
],
|
||||
|
||||
@@ -463,15 +463,15 @@ return [
|
||||
* List of recurring invoice status
|
||||
*/
|
||||
'recurring_invoice_status' => [
|
||||
'create_status' => [
|
||||
'create_status' => [
|
||||
['key' => 'settings.preferences.active', 'value' => 'ACTIVE'],
|
||||
['key' => 'settings.preferences.on_hold', 'value' => 'ON_HOLD']
|
||||
],
|
||||
'update_status' => [
|
||||
['key' => 'settings.preferences.on_hold', 'value' => 'ON_HOLD'],
|
||||
],
|
||||
'update_status' => [
|
||||
['key' => 'settings.preferences.active', 'value' => 'ACTIVE'],
|
||||
['key' => 'settings.preferences.on_hold', 'value' => 'ON_HOLD'],
|
||||
['key' => 'settings.preferences.completed', 'value' => 'COMPLETED'],
|
||||
]
|
||||
],
|
||||
],
|
||||
|
||||
/*
|
||||
@@ -503,5 +503,5 @@ return [
|
||||
'Invoice',
|
||||
'Payment',
|
||||
'Expense',
|
||||
]
|
||||
],
|
||||
];
|
||||
|
||||
@@ -63,6 +63,6 @@ return [
|
||||
],
|
||||
|
||||
'cron_job' => [
|
||||
'auth_token' => env('CRON_JOB_AUTH_TOKEN', 0)
|
||||
'auth_token' => env('CRON_JOB_AUTH_TOKEN', 0),
|
||||
],
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user