diff --git a/config/adminlte.php b/config/adminlte.php index 9c71a48..51342b2 100644 --- a/config/adminlte.php +++ b/config/adminlte.php @@ -299,6 +299,12 @@ return [ 'url' => '/hr/players', 'can' => 'admin.userlist' ], + [ + 'text' => 'm_teams', + 'icon' => 'fas fa-user-friends', + 'url' => 'teams', + 'can' => 'teams.view' + ], [ 'text' => 'sm_hiring_man', 'icon' => 'far fa-calendar-plus', diff --git a/database/seeds/TeamSeeder.php b/database/seeds/TeamSeeder.php index 9353dad..d8e481d 100644 --- a/database/seeds/TeamSeeder.php +++ b/database/seeds/TeamSeeder.php @@ -12,6 +12,20 @@ class TeamSeeder extends Seeder */ public function run() { + + Permission::create([ + 'name' => 'teams.user.view.own' + ]); + + Permission::create([ + 'name' => 'teams.admin.view.all' + ]); + + // Has access to the teams feature + Permission::create([ + 'name' => 'teams.view' + ]); + Permission::create([ 'name' => 'teams.admin.create', ]); diff --git a/resources/lang/en/messages.php b/resources/lang/en/messages.php index 9be7687..5ea6393 100644 --- a/resources/lang/en/messages.php +++ b/resources/lang/en/messages.php @@ -605,6 +605,13 @@ return [ 'max_chars' => 'max characters', // Context: A number is added before max characters 'post' => 'Post', // Context: Post as in post comment + ], + + + 'teams' => [ + + 'm_teams_page' => 'Teams' + ] // ==================== END OF MAIN I18N FILE ====================== diff --git a/resources/views/dashboard/teams/teams.blade.php b/resources/views/dashboard/teams/teams.blade.php new file mode 100644 index 0000000..0f19270 --- /dev/null +++ b/resources/views/dashboard/teams/teams.blade.php @@ -0,0 +1,13 @@ +@extends('adminlte::page') + +@section('title', config('app.name') . ' | ' . __('messages.teams.m_teams_page')) + +@section('content_header') +

{{config('app.name')}} / {{__('messages.teams.m_teams_page')}}

+@stop + +@section('content') + + + +@stop