Invoice customization added

This commit is contained in:
Batuhan Baş
2018-10-17 20:58:46 +03:00
parent 906196cd36
commit 4eaf2692aa
11 changed files with 127 additions and 12 deletions

View File

@ -67,6 +67,10 @@ class FormServiceProvider extends ServiceProvider
'page', 'model' => null,
]);
Form::component('invoice_text', 'partials.form.invoice_text', [
'name', 'text', 'icon', 'values', 'selected' => null, 'attributes' => ['required' => 'required'], 'input_name', 'input_value', 'col' => 'col-md-6',
]);
Form::component('dateRange', 'partials.form.date_range', [
'name', 'text', 'icon', 'attributes' => ['required' => 'required'], 'value' => null, 'col' => 'col-md-6',
]);

View File

@ -53,6 +53,11 @@ class ViewComposerServiceProvider extends ServiceProvider
View::composer(
['incomes.invoices.invoice', 'expenses.bills.bill'], 'App\Http\ViewComposers\Logo'
);
// Add Invoice Text
View::composer(
['incomes.invoices.*'], 'App\Http\ViewComposers\InvoiceText'
);
}
/**