If you find this website useful, your sponsorship would greatly support its ongoing development and maintenance. Learn more

Dashboard

The dashboard is a simple Livewire class and view, its simple as you'll want to add your own changes on a per project basis.


    
    <?php
    namespace App\Http\Livewire\Admin;

    use Livewire\Component;

    class Dashboard extends Component
    {
        public function render()
        {
           abort_unless(auth()->user()->can('view_dashboard'), 403);

            return view('livewire.admin.dashboard');
        }
    }
        

The view sets the page and browser title and contains a box for an introduction.


    
    @section('title', 'Dashboard')

    <h1>Dashboard</h1>

    <div class="card">
        <p><b>Laravel AdminTW</b> is a free theme</p>
        <p>AdminTW is minimal theme presenting a clean sidebar and top bar and open areas for content to be displayed.</p>
        <p>AdminTW supports both light and dark mode based on the users OS.</p>
        <p>Provided are blade and Laravel Livewire components for common layout / UI elements and a complete test suite (Pest PHP).</p>
        <p>Read the <a href="https://laraveladmintw.com/docs">Documentation</a></p>
    </div>
        

© 2024 Laravel AdminTW. All rights reserved.

Built by David Carr