mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
27 lines
516 B
PHP
27 lines
516 B
PHP
<?php
|
|
|
|
namespace App\Http\ViewComposers;
|
|
|
|
use Illuminate\View\View;
|
|
use App\Models\ProposalSnippet;
|
|
|
|
/**
|
|
* ClientPortalHeaderComposer.php.
|
|
*
|
|
* @copyright See LICENSE file that was distributed with this source code.
|
|
*/
|
|
class ProposalComposer
|
|
{
|
|
/**
|
|
* Bind data to the view.
|
|
*
|
|
* @param View $view
|
|
*
|
|
* @return void
|
|
*/
|
|
public function compose(View $view)
|
|
{
|
|
$view->with('snippets', ProposalSnippet::scope()->with('proposal_category')->orderBy('name')->get());
|
|
}
|
|
}
|