<?php

namespace App\Providers;

use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\Blade;

class AppServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap any application services.
     *
     * @return void
     */
    public function boot()
    {
        Blade::component('components.alert', 'alert'); 
        Blade::component('components.breadcrumb', 'breadcrumb'); 
        Blade::component('components.search', 'search'); 
        Blade::component('components.table', 'table'); 
        Blade::component('components.paginate', 'paginate_component'); 
        Blade::component('components.page', 'page'); 
        Blade::component('components.form', 'form'); 
    }

    /**
     * Register any application services.
     *
     * @return void
     */
    public function register()
    {
        $this->app->bind('App\Repositories\Contracts\UserRepositoryInterface',
        'App\Repositories\Eloquent\UserRepository');

        $this->app->bind('App\Repositories\Contracts\PermissionRepositoryInterface',
        'App\Repositories\Eloquent\PermissionRepository');

        $this->app->bind('App\Repositories\Contracts\RoleRepositoryInterface',
        'App\Repositories\Eloquent\RoleRepository');

        $this->app->bind('App\Repositories\Contracts\AgendamentoRepositoryInterface',
        'App\Repositories\Eloquent\AgendamentoRepository');
    }
}
