<?php

//namespace App\Providers;

use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\View;
use Illuminate\Support\Facades\Auth;

class ViewServiceProvider extends ServiceProvider
{
    //public function boot(): void
    //{
        // This runs on every view that uses @extends
        //View::composer('*', function ($view) {
           // $layout = Auth::check() && Auth::user()->role === 'super_admin'
               // ? 'layouts.admin'
                //: 'layouts.app';

            // Share the correct layout with ALL views
           // $view->with('layout', $layout);
        //});
    //}
}