<?php

namespace App\Providers;

use Illuminate\Support\ServiceProvider;

class ViewComposerServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap the application services.
     *
     * @return void
     */
    public function boot()
    {
        view()->composer(
            ['users.show'],
            'App\Http\ViewComposers\UserHeaderComposer'
        );
        view()->composer(
            ['clients.show'],
            'App\Http\ViewComposers\ClientHeaderComposer'
        );
        view()->composer(
            ['tasks.show'],
            'App\Http\ViewComposers\TaskHeaderComposer'
        );
        view()->composer(
            ['projects.show'],
            'App\Http\ViewComposers\ProjectHeaderComposer'
        );
        view()->composer(
            ['leads.show'],
            'App\Http\ViewComposers\LeadHeaderComposer'
        );
        view()->composer(
            ['invoices.show'],
            'App\Http\ViewComposers\InvoiceHeaderComposer'
        );
    }

    /**
     * Register the application services.
     *
     * @return void
     */
    public function register()
    {
        //
    }
}
