<?php

namespace App\Providers;

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

class AppServiceProvider extends ServiceProvider
{
    public function register(): void
    {
        //
    }

    public function boot(): void
    {
        // Register Blade components for anonymous usage like <x-card>, <x-button>, etc.
        Blade::component('components.card', 'card');
        Blade::component('components.button', 'button');
        Blade::component('components.stat-card', 'stat-card');
        Blade::component('components.form-input', 'form-input');
        Blade::component('components.badge', 'badge');
        Blade::component('components.modal', 'modal');
        Blade::component('components.breadcrumb', 'breadcrumb');
        Blade::component('components.sidebar', 'sidebar');
        Blade::component('components.navbar', 'navbar');
        Blade::component('components.footer', 'footer');
        Blade::component('components.table', 'table');
    }
}
