2017-09-14 22:21:00 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
use View;
|
|
|
|
|
|
|
|
class ViewComposerServiceProvider extends ServiceProvider
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Register bindings in the container.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function boot()
|
|
|
|
{
|
|
|
|
// All
|
|
|
|
View::composer(
|
|
|
|
'*', 'App\Http\ViewComposers\All'
|
|
|
|
);
|
|
|
|
|
2018-05-25 16:57:58 +03:00
|
|
|
// Suggestions
|
|
|
|
View::composer(
|
2018-06-25 18:40:49 +03:00
|
|
|
['partials.admin.content'], 'App\Http\ViewComposers\Suggestions'
|
2018-05-25 16:57:58 +03:00
|
|
|
);
|
|
|
|
|
2018-11-16 18:33:39 +03:00
|
|
|
// Notifications
|
|
|
|
View::composer(
|
|
|
|
['partials.admin.content'], 'App\Http\ViewComposers\Notifications'
|
|
|
|
);
|
|
|
|
|
2017-09-14 22:21:00 +03:00
|
|
|
// Add company info to menu
|
|
|
|
View::composer(
|
|
|
|
['partials.admin.menu', 'partials.customer.menu'], 'App\Http\ViewComposers\Menu'
|
|
|
|
);
|
|
|
|
|
|
|
|
// Add notifications to header
|
|
|
|
View::composer(
|
2018-10-23 18:47:55 +03:00
|
|
|
['partials.wizard.header', 'partials.admin.header', 'partials.customer.header'], 'App\Http\ViewComposers\Header'
|
2017-09-14 22:21:00 +03:00
|
|
|
);
|
|
|
|
|
|
|
|
// Add limits to index
|
|
|
|
View::composer(
|
|
|
|
'*.index', 'App\Http\ViewComposers\Index'
|
|
|
|
);
|
|
|
|
|
|
|
|
// Add Modules
|
|
|
|
View::composer(
|
|
|
|
'modules.*', 'App\Http\ViewComposers\Modules'
|
|
|
|
);
|
2018-04-26 16:04:27 +03:00
|
|
|
|
2018-04-26 18:40:04 +03:00
|
|
|
// Add recurring
|
|
|
|
View::composer(
|
|
|
|
['partials.form.recurring',], 'App\Http\ViewComposers\Recurring'
|
|
|
|
);
|
|
|
|
|
2018-04-26 16:04:27 +03:00
|
|
|
// Add logo
|
|
|
|
View::composer(
|
|
|
|
['incomes.invoices.invoice', 'expenses.bills.bill'], 'App\Http\ViewComposers\Logo'
|
|
|
|
);
|
2018-10-17 20:58:46 +03:00
|
|
|
|
|
|
|
// Add Invoice Text
|
|
|
|
View::composer(
|
2019-02-13 12:57:55 +03:00
|
|
|
['incomes.invoices.*', 'customers.invoices.*'], 'App\Http\ViewComposers\InvoiceText'
|
2018-10-17 20:58:46 +03:00
|
|
|
);
|
2017-09-14 22:21:00 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Register the service provider.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function register()
|
|
|
|
{
|
|
|
|
//
|
|
|
|
}
|
|
|
|
}
|