Skip to content

AbdoelMadjid/starter-laravel-10-smartadmin

Repository files navigation

Laravel Logo

Build Status Total Downloads Latest Stable Version License

GitHub WidgetBox

LinkedIn Gmail Facebook Twitter Instagram

Table of Contents
  1. About The Project
  2. Flat Form
  3. Application Development Plan
  4. Installation
  5. Roadmap Project
  6. Example
  7. License

About The Project

This application is an application for student competency achievements which is used as a report card for independent curriculum students. This application uses the smartadmin template. The Student Competency Achievement application was created to simplify the process of assessing teaching and learning activities at SMKN 1 Kadipaten.

(back to top)

Flat Form

(back to top)

Application Development Plan

The following is the development plan, the points of which will continue to be updated.

  • Role (more than 2 users)
  • User access is limited by active and inactive
  • On and off options of some features
  • Menu options to be displayed or not
  • ...

(back to top)

Installation

git clone https://github.com/AbdoelMadjid/starter-laravel-10-smartadmin.git
cd starter-laravel-10-smartadmin
composer install
composer dump-autoload
cp .env.example .env
php artisan key:generate
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=??
DB_USERNAME=root
DB_PASSWORD=
php artisan migrate
php artisan db:seed

(back to top)

Roadmap Project

Multi User

Role :

User Access

The access used is to sort roles, by filtering the submenu section with the following script:

@if (auth()->user()->role == 'Admin')
    @include('inc.mainmenu._menu_master')
@endif
@if (auth()->user()->role == 'Wali Kelas')
    @include('inc.mainmenu._menu_walikelas')
@endif
@if (auth()->user()->role == 'Guru Mapel')
    @include('inc.mainmenu._menu_gurumapel')
@endif
@if (auth()->user()->role == 'Siswa')
    @include('inc.mainmenu._menu_siswa')
@endif

Active and Deactivated Login Options, for roles if the position is inactive you cannot log in

  • Middleware CheckRoleStatus
    public function handle(Request $request, Closure $next)
    {
        if (Auth::check()) {
            $user = Auth::user();
            $roleStatus = OpsiLogin::where('peran', $user->role)->first();

            if ($roleStatus && $roleStatus->aktif === 'N') {
                Auth::logout();
                return back()->with('error', 'Peran Anda sedang dinonaktifkan. Silakan hubungi administrator.');
            }
        }

        return $next($request);
    }
  • Implementation
Route::get('/dashboard', [TemplateController::class, 'index'])->middleware(['auth', 'check.role.status']);

Show feature

  • Content Setting and Other Features

Several features are set to be displayed or not

Helper Fitures.php

    public static function getFiturAktif()
    {
        $fitur = AppFitur::where('aktif', 'Y')->get();
        $hasil = [];

        foreach ($fitur as $f) {
            // Mengambil view berdasarkan nama_fitur
            if (view()->exists("inc.fitur.{$f->nama_fitur}")) {
                $hasil[] = "inc.fitur.{$f->nama_fitur}";
            }
        }

        return $hasil;
    }

Implementation

    @foreach (App\Helpers\Fitures::getFiturAktif() as $fiturView)
        @include($fiturView)
    @endforeach

feature files are saved in View -> inc -> fitur

  • Mainmenu Show
    Several menu groups are created so that they can be displayed or not.

Helper Fitures.php

    public static function isMainMenuTemplateActive()
    {
        $fitur = AppFitur::where('nama_fitur', '_mainmenu_template')->first();
        return $fitur && $fitur->aktif === 'Y';
    }

Implementation

   @if (App\Helpers\Fitures::isMainMenuTemplateActive())
        @include('inc.mainmenu._menu_depelover')
        @include('inc.mainmenu._menu_intel_app')
        @include('inc.mainmenu._menu_tools_component_app')
        @include('inc.mainmenu._menu_plugin_addon_app')
        @include('inc.mainmenu._menu_layouts_app')
    @endif

(back to top)

Example

Halaman Awal
Halaman Login
Sidebar
Features


CRUD Features
Notification

(back to top)

License

The Laravel framework is open-sourced software licensed under the MIT license.

About

Aplikasi Rapor Kurikulum Merdeka menggunakan Laravel 10. (MASIH PROSES PENGEMBANGAN)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published