Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Oct 21, 2024. It is now read-only.

Block8/ui

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel package providing a simple, clean, admin user interface.

###Configuration:

#####1) UI Theme Primary Colour To change the default colour of the UI Package simply add the $color-primary variable at your app's dashboard.scss file.

$color-primary: "your-color";

#####2) Brand Logo To load a brand logo on top of sidebar simply declare the logo before extending the layout

Example: 
@php($logo = Storage::url($currentClient->logo))
@extends('ui::layouts.primary')

#####3) Notifications To enable laravel notifications module you simply need to:

a. Declare the notifications before extending the layout

Example: 
@php($notifications = Auth::user()->unreadNotifications)
@extends('ui::layouts.primary')

b. Make a NotificationController on your app for handling the notifications index page and return your custom view.

c. Register the routes at your web.php file.

Example: 
Route::get('/notifications', 'NotificationController@index')->name('notification.index');
Route::get('/notification/{notification}', '\Block8\UI\Http\Controllers\NotificationController@show')->name('notification.show');
Route::get('/notification/read-all/{user}', '\Block8\UI\Http\Controllers\NotificationController@markAllRead')->name('notification.mark-all-read'); 

###Components

1) Alerts

There are 3 types of alerts. Warning, danger and success. Declare the type variable and the icon of you choice

@section('alerts')
    @component('ui::alert')
        @slot('type', 'warning')
        @slot('icon', 'exclamation-circle')
                
        This is a bold <strong>alert</strong>.
    @endcomponent
@endsection
2) Alert-banner

You can show alert banners at the top of the main panel by adding alert-banner components into the alert-banners section.

@section('alert-banners')
    @component('ui::alert-banner')
        @slot('type', 'warning')
        @slot('icon', 'exclamation-circle')
        
        Hi <strong>{{ $user->name }}</strong>, your subscription is about to end.
    @endcomponent
@endsection

About

Simple Admin UI template with Laravel components.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.