mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-12 14:12:44 +01:00
Working on client portal header
This commit is contained in:
parent
6f90e1998e
commit
a8cd70fa16
26
app/Http/ViewComposers/ClientPortalHeaderComposer.php
Normal file
26
app/Http/ViewComposers/ClientPortalHeaderComposer.php
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Http\ViewComposers;
|
||||||
|
|
||||||
|
use Cache;
|
||||||
|
use Illuminate\View\View;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ClientPortalHeaderComposer.php.
|
||||||
|
*
|
||||||
|
* @copyright See LICENSE file that was distributed with this source code.
|
||||||
|
*/
|
||||||
|
class ClientPortalHeaderComposer
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Bind data to the view.
|
||||||
|
*
|
||||||
|
* @param View $view
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function compose(View $view)
|
||||||
|
{
|
||||||
|
$view->with('testing', 'value');
|
||||||
|
}
|
||||||
|
}
|
@ -14,14 +14,30 @@ class ComposerServiceProvider extends ServiceProvider
|
|||||||
public function boot()
|
public function boot()
|
||||||
{
|
{
|
||||||
view()->composer(
|
view()->composer(
|
||||||
['accounts.details', 'clients.edit', 'payments.edit', 'invoices.edit', 'accounts.localization'],
|
[
|
||||||
|
'accounts.details',
|
||||||
|
'clients.edit',
|
||||||
|
'payments.edit',
|
||||||
|
'invoices.edit',
|
||||||
|
'accounts.localization'
|
||||||
|
],
|
||||||
'App\Http\ViewComposers\TranslationComposer'
|
'App\Http\ViewComposers\TranslationComposer'
|
||||||
);
|
);
|
||||||
|
|
||||||
view()->composer(
|
view()->composer(
|
||||||
['header', 'tasks.edit'],
|
[
|
||||||
|
'header',
|
||||||
|
'tasks.edit'
|
||||||
|
],
|
||||||
'App\Http\ViewComposers\AppLanguageComposer'
|
'App\Http\ViewComposers\AppLanguageComposer'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
view()->composer(
|
||||||
|
[
|
||||||
|
'invited.dashboard',
|
||||||
|
],
|
||||||
|
'App\Http\ViewComposers\ClientPortalHeaderComposer'
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user