### Access Theme Configuration and Helpers (PHP) Source: https://context7.com/laravel-backpack/theme-coreuiv4/llms.txt Provides examples of using helper functions to retrieve theme configuration values, access views, get URLs, and manage authentication. ```php // Get theme configuration value $layout = backpack_theme_config('layout'); // 'top_left' $headerClass = backpack_theme_config('classes.header'); // Get view with theme namespace $view = backpack_view('blank'); // 'backpack.theme-coreuiv4::blank' // Get theme URL $dashboardUrl = backpack_url('dashboard'); // '/admin/dashboard' // Check authentication if (backpack_auth()->check()) { $user = backpack_auth()->user(); } // Get authentication column $authColumn = backpack_authentication_column(); // 'email' $emailColumn = backpack_email_column(); // 'email' ``` -------------------------------- ### Switch to Another Theme (Bash) Source: https://context7.com/laravel-backpack/theme-coreuiv4/llms.txt Instructions for switching to a different Backpack theme, either by installing a new one or manually updating the configuration. ```bash # Install alternative theme php artisan backpack:require:theme-tabler # Or update config/backpack/ui.php manually # 'view_namespace' => 'backpack.theme-tabler::', ``` -------------------------------- ### Main Layout Example (top_left.blade.php) Source: https://context7.com/laravel-backpack/theme-coreuiv4/llms.txt Example Blade template for the 'top_left' main layout. It includes sections for head, sidebar, header, content, and scripts, using theme configuration for dynamic elements. ```blade {{-- resources/views/vendor/backpack/theme-coreuiv4/layouts/top_left.blade.php --}}
@include(backpack_view('inc.head')) @include(backpack_view('inc.sidebar'))Your custom content goes here