Initial commit

This commit is contained in:
amaliyya 2026-06-17 20:32:39 +07:00
commit a9d40bd912
144 changed files with 19486 additions and 0 deletions

18
.editorconfig Normal file
View File

@ -0,0 +1,18 @@
root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
[*.md]
trim_trailing_whitespace = false
[*.{yml,yaml}]
indent_size = 2
[docker-compose.yml]
indent_size = 4

65
.env.example Normal file
View File

@ -0,0 +1,65 @@
APP_NAME=Laravel
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_URL=http://localhost
APP_LOCALE=id
APP_FALLBACK_LOCALE=id
APP_FAKER_LOCALE=id_ID
APP_MAINTENANCE_DRIVER=file
# APP_MAINTENANCE_STORE=database
PHP_CLI_SERVER_WORKERS=4
BCRYPT_ROUNDS=12
LOG_CHANNEL=stack
LOG_STACK=single
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=mopss
DB_USERNAME=root
DB_PASSWORD=
SESSION_DRIVER=database
SESSION_LIFETIME=120
SESSION_ENCRYPT=false
SESSION_PATH=/
SESSION_DOMAIN=null
BROADCAST_CONNECTION=log
FILESYSTEM_DISK=public
QUEUE_CONNECTION=sync
CACHE_STORE=database
# CACHE_PREFIX=
MEMCACHED_HOST=127.0.0.1
REDIS_CLIENT=phpredis
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
MAIL_MAILER=log
MAIL_SCHEME=null
MAIL_HOST=127.0.0.1
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_FROM_ADDRESS="hello@example.com"
MAIL_FROM_NAME="${APP_NAME}"
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=
AWS_USE_PATH_STYLE_ENDPOINT=false
VITE_APP_NAME="${APP_NAME}"

11
.gitattributes vendored Normal file
View File

@ -0,0 +1,11 @@
* text=auto eol=lf
*.blade.php diff=html
*.css diff=css
*.html diff=html
*.md diff=markdown
*.php diff=php
/.github export-ignore
CHANGELOG.md export-ignore
.styleci.yml export-ignore

23
.gitignore vendored Normal file
View File

@ -0,0 +1,23 @@
/.phpunit.cache
/node_modules
/public/build
/public/hot
/public/storage
/storage/*.key
/storage/pail
/vendor
.env
.env.backup
.env.production
.phpactor.json
.phpunit.result.cache
Homestead.json
Homestead.yaml
npm-debug.log
yarn-error.log
/auth.json
/.fleet
/.idea
/.nova
/.vscode
/.zed

61
README.md Normal file
View File

@ -0,0 +1,61 @@
<p align="center"><a href="https://laravel.com" target="_blank"><img src="https://raw.githubusercontent.com/laravel/art/master/logo-lockup/5%20SVG/2%20CMYK/1%20Full%20Color/laravel-logolockup-cmyk-red.svg" width="400" alt="Laravel Logo"></a></p>
<p align="center">
<a href="https://github.com/laravel/framework/actions"><img src="https://github.com/laravel/framework/workflows/tests/badge.svg" alt="Build Status"></a>
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/dt/laravel/framework" alt="Total Downloads"></a>
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/v/laravel/framework" alt="Latest Stable Version"></a>
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/l/laravel/framework" alt="License"></a>
</p>
## About Laravel
Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:
- [Simple, fast routing engine](https://laravel.com/docs/routing).
- [Powerful dependency injection container](https://laravel.com/docs/container).
- Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage.
- Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent).
- Database agnostic [schema migrations](https://laravel.com/docs/migrations).
- [Robust background job processing](https://laravel.com/docs/queues).
- [Real-time event broadcasting](https://laravel.com/docs/broadcasting).
Laravel is accessible, powerful, and provides tools required for large, robust applications.
## Learning Laravel
Laravel has the most extensive and thorough [documentation](https://laravel.com/docs) and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework.
You may also try the [Laravel Bootcamp](https://bootcamp.laravel.com), where you will be guided through building a modern Laravel application from scratch.
If you don't feel like reading, [Laracasts](https://laracasts.com) can help. Laracasts contains thousands of video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library.
## Laravel Sponsors
We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the [Laravel Partners program](https://partners.laravel.com).
### Premium Partners
- **[Vehikl](https://vehikl.com)**
- **[Tighten Co.](https://tighten.co)**
- **[Kirschbaum Development Group](https://kirschbaumdevelopment.com)**
- **[64 Robots](https://64robots.com)**
- **[Curotec](https://www.curotec.com/services/technologies/laravel)**
- **[DevSquad](https://devsquad.com/hire-laravel-developers)**
- **[Redberry](https://redberry.international/laravel-development)**
- **[Active Logic](https://activelogic.com)**
## Contributing
Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions).
## Code of Conduct
In order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct).
## Security Vulnerabilities
If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [taylor@laravel.com](mailto:taylor@laravel.com). All security vulnerabilities will be promptly addressed.
## License
The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

View File

@ -0,0 +1,85 @@
<?php
namespace App\Filament\Resources;
use Filament\Forms;
use Filament\Tables;
use Filament\Forms\Form;
use App\Models\Classroom;
use Filament\Tables\Table;
use Filament\Resources\Resource;
use Filament\Forms\Components\Card;
use Illuminate\Database\Eloquent\Builder;
use App\Filament\Resources\ClassroomResource\Pages;
use Illuminate\Database\Eloquent\SoftDeletingScope;
use App\Filament\Resources\ClassroomResource\RelationManagers;
use Filament\Forms\Components\TextInput;
use Filament\Tables\Columns\TextColumn;
class ClassroomResource extends Resource
{
protected static ?string $model = Classroom::class;
protected static ?string $navigationIcon = 'heroicon-o-building-office';
protected static ?string $navigationLabel = 'Kelas';
protected static ?string $pluralLabel = 'Kelas';
protected static ?string $modelLabel = 'Kelas';
protected static ?string $slug = 'kelas';
public static function form(Form $form): Form
{
return $form
->schema([
Card::make()
->schema([
TextInput::make('name')
->label('Nama Kelas')
->required()
->placeholder('Masukkan nama kelas, max : 50 karakter')
->maxLength(50)
->unique(ignorable: fn (?Classroom $record) => $record),
])
]);
}
public static function table(Table $table): Table
{
return $table
->columns([
TextColumn::make('name')
->label('Kelas')
->searchable()
->badge()
->colors(['primary'])
->sortable(),
])
->filters([
//
])
->actions([
Tables\Actions\EditAction::make(),
Tables\Actions\DeleteAction::make(),
])
->bulkActions([
Tables\Actions\BulkActionGroup::make([
Tables\Actions\DeleteBulkAction::make(),
]),
]);
}
public static function getRelations(): array
{
return [
//
];
}
public static function getPages(): array
{
return [
'index' => Pages\ListClassrooms::route('/'),
'create' => Pages\CreateClassroom::route('/create'),
'edit' => Pages\EditClassroom::route('/{record}/edit'),
];
}
}

View File

@ -0,0 +1,12 @@
<?php
namespace App\Filament\Resources\ClassroomResource\Pages;
use App\Filament\Resources\ClassroomResource;
use Filament\Actions;
use Filament\Resources\Pages\CreateRecord;
class CreateClassroom extends CreateRecord
{
protected static string $resource = ClassroomResource::class;
}

View File

@ -0,0 +1,19 @@
<?php
namespace App\Filament\Resources\ClassroomResource\Pages;
use App\Filament\Resources\ClassroomResource;
use Filament\Actions;
use Filament\Resources\Pages\EditRecord;
class EditClassroom extends EditRecord
{
protected static string $resource = ClassroomResource::class;
protected function getHeaderActions(): array
{
return [
Actions\DeleteAction::make(),
];
}
}

View File

@ -0,0 +1,19 @@
<?php
namespace App\Filament\Resources\ClassroomResource\Pages;
use App\Filament\Resources\ClassroomResource;
use Filament\Actions;
use Filament\Resources\Pages\ListRecords;
class ListClassrooms extends ListRecords
{
protected static string $resource = ClassroomResource::class;
protected function getHeaderActions(): array
{
return [
Actions\CreateAction::make(),
];
}
}

View File

@ -0,0 +1,99 @@
<?php
namespace App\Filament\Resources;
use App\Filament\Resources\StudentActivitiesResource\Pages;
use App\Filament\Resources\StudentActivitiesResource\RelationManagers;
use App\Models\StudentActivities;
use Filament\Forms;
use Filament\Forms\Components\Card;
use Filament\Forms\Components\RichEditor;
use Filament\Forms\Components\TextInput;
use Filament\Forms\Form;
use Filament\Resources\Resource;
use Filament\Tables;
use Filament\Tables\Columns\TextColumn;
use Filament\Tables\Filters\Filter;
use Filament\Tables\Table;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\SoftDeletingScope;
class StudentActivitiesResource extends Resource
{
protected static ?string $model = StudentActivities::class;
protected static ?string $navigationIcon = 'heroicon-o-bell-alert';
protected static ?string $navigationLabel = 'Kegiatan Siswa';
protected static ?string $pluralLabel = 'Kegiatan Siswa';
protected static ?string $modelLabel = 'Kegiatan Siswa';
protected static ?string $slug = 'kegiatan-siswa';
public static function form(Form $form): Form
{
return $form
->schema([
Card::make()
->schema([
TextInput::make('name')
->label('Nama Kegiatan')
->required()
->maxLength(255),
RichEditor::make('description')
->label('Deskripsi Kegiatan')
->required()
->maxLength(65535)
->columnSpanFull(),
])
]);
}
public static function table(Table $table): Table
{
return $table
->columns([
TextColumn::make('name')
->label('Nama Kegiatan')
->searchable()
->sortable(),
TextColumn::make('created_at')
->label('Diupload')
->dateTime()
->badge()
->colors(['success'])
->sortable(),
])
->filters([
Filter::make('Kegiatan Terbaru')
->query(fn (Builder $query) => $query->orderBy('created_at', 'desc'))
->label('Kegiatan Terbaru'),
])
->actions([
Tables\Actions\ViewAction::make(),
Tables\Actions\EditAction::make(),
Tables\Actions\DeleteAction::make(),
])
->bulkActions([
Tables\Actions\BulkActionGroup::make([
Tables\Actions\DeleteBulkAction::make(),
]),
]);
}
public static function getRelations(): array
{
return [
//
];
}
public static function getPages(): array
{
return [
'index' => Pages\ListStudentActivities::route('/'),
'create' => Pages\CreateStudentActivities::route('/create'),
'edit' => Pages\EditStudentActivities::route('/{record}/edit'),
];
}
}

View File

@ -0,0 +1,12 @@
<?php
namespace App\Filament\Resources\StudentActivitiesResource\Pages;
use App\Filament\Resources\StudentActivitiesResource;
use Filament\Actions;
use Filament\Resources\Pages\CreateRecord;
class CreateStudentActivities extends CreateRecord
{
protected static string $resource = StudentActivitiesResource::class;
}

View File

@ -0,0 +1,19 @@
<?php
namespace App\Filament\Resources\StudentActivitiesResource\Pages;
use App\Filament\Resources\StudentActivitiesResource;
use Filament\Actions;
use Filament\Resources\Pages\EditRecord;
class EditStudentActivities extends EditRecord
{
protected static string $resource = StudentActivitiesResource::class;
protected function getHeaderActions(): array
{
return [
Actions\DeleteAction::make(),
];
}
}

View File

@ -0,0 +1,19 @@
<?php
namespace App\Filament\Resources\StudentActivitiesResource\Pages;
use App\Filament\Resources\StudentActivitiesResource;
use Filament\Actions;
use Filament\Resources\Pages\ListRecords;
class ListStudentActivities extends ListRecords
{
protected static string $resource = StudentActivitiesResource::class;
protected function getHeaderActions(): array
{
return [
Actions\CreateAction::make(),
];
}
}

View File

@ -0,0 +1,147 @@
<?php
namespace App\Filament\Resources;
use Filament\Forms;
use Filament\Tables;
use Filament\Forms\Form;
use Filament\Tables\Table;
use App\Models\StudentGrowth;
use Filament\Resources\Resource;
use Filament\Forms\Components\Card;
use Illuminate\Support\Facades\Auth;
use Filament\Forms\Components\Select;
use Filament\Tables\Columns\TextColumn;
use Filament\Forms\Components\TextInput;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\SoftDeletingScope;
use App\Filament\Resources\StudentGrowthResource\Pages;
use App\Filament\Resources\StudentGrowthResource\RelationManagers;
use Filament\Tables\Filters\SelectFilter;
class StudentGrowthResource extends Resource
{
protected static ?string $model = StudentGrowth::class;
protected static ?string $navigationIcon = 'heroicon-o-presentation-chart-line';
protected static ?string $navigationLabel = 'Perkembangan Siswa';
protected static ?string $pluralLabel = 'Perkembangan Siswa';
protected static ?string $modelLabel = 'Perkembangan Siswa';
protected static ?string $slug = 'perkembangan-siswa';
public static function form(Form $form): Form
{
return $form
->schema([
Card::make()
->schema([
Select::make('user_id')
->label('Guru')
->relationship('user', 'name')
->required()
->default(Auth::id())
->disabled()
->preload(),
Select::make('student_id')
->label('Siswa')
->relationship('student', 'name')
->required()
->preload(),
TextInput::make('incident')
->label('Kejadian')
->placeholder('Deskripsikan kejadian yang terjadi')
->required()
->maxLength(255),
TextInput::make('behavior')
->label('Perilaku')
->placeholder('Deskripsikan perilaku siswa terkait kejadian')
->required()
->maxLength(255),
TextInput::make('suggestion')
->label('Saran')
->placeholder('Berikan saran atau tindakan yang perlu diambil')
->required()
->maxLength(255),
])
]);
}
public static function table(Table $table): Table
{
return $table
->columns([
TextColumn::make('student.name')
->label('Siswa')
->sortable()
->badge()
->colors(['primary'])
->searchable(),
TextColumn::make('user.name')
->label('Mengetahui')
->sortable()
->badge()
->colors(['success'])
->searchable(),
TextColumn::make('incident')
->label('Kejadian & Perilaku')
->getStateUsing(function ($record) {
return "Kejadian : {$record->incident}\nPerilaku : {$record->behavior}";
})
->formatStateUsing(fn(string $state) => nl2br(e($state)))
->html()
->sortable()
->searchable(['incident', 'behavior']),
TextColumn::make('suggestion')
->label('Saran')
->sortable()
->searchable(),
])
->filters([
SelectFilter::make('student_id')
->label('Siswa')
->relationship('student', 'name')
->multiple()
->preload(),
])
->actions([
Tables\Actions\ViewAction::make(),
Tables\Actions\Action::make('download_pdf')
->label('Cetak')
->icon('heroicon-o-printer')
->url(fn ($record) => route('student-growth.download', ['student' => $record->student_id]))
->color('warning')
->requiresConfirmation(),
Tables\Actions\EditAction::make(),
Tables\Actions\DeleteAction::make(),
])
->bulkActions([
Tables\Actions\BulkActionGroup::make([
Tables\Actions\DeleteBulkAction::make(),
]),
]);
}
public static function getRelations(): array
{
return [
//
];
}
public static function getPages(): array
{
return [
'index' => Pages\ListStudentGrowths::route('/'),
'create' => Pages\CreateStudentGrowth::route('/create'),
'edit' => Pages\EditStudentGrowth::route('/{record}/edit'),
];
}
}

View File

@ -0,0 +1,19 @@
<?php
namespace App\Filament\Resources\StudentGrowthResource\Pages;
use Filament\Actions;
use Illuminate\Support\Facades\Auth;
use Filament\Resources\Pages\CreateRecord;
use App\Filament\Resources\StudentGrowthResource;
class CreateStudentGrowth extends CreateRecord
{
protected static string $resource = StudentGrowthResource::class;
protected function mutateFormDataBeforeCreate(array $data): array
{
$data['user_id'] = Auth::id();
return $data;
}
}

View File

@ -0,0 +1,27 @@
<?php
namespace App\Filament\Resources\StudentGrowthResource\Pages;
use Filament\Actions;
use Illuminate\Support\Facades\Auth;
use Filament\Resources\Pages\EditRecord;
use App\Filament\Resources\StudentGrowthResource;
class EditStudentGrowth extends EditRecord
{
protected static string $resource = StudentGrowthResource::class;
protected function mutateFormDataBeforeSave(array $data): array
{
$data['user_id'] = Auth::id();
return $data;
}
protected function getHeaderActions(): array
{
return [
Actions\DeleteAction::make(),
];
}
}

View File

@ -0,0 +1,19 @@
<?php
namespace App\Filament\Resources\StudentGrowthResource\Pages;
use App\Filament\Resources\StudentGrowthResource;
use Filament\Actions;
use Filament\Resources\Pages\ListRecords;
class ListStudentGrowths extends ListRecords
{
protected static string $resource = StudentGrowthResource::class;
protected function getHeaderActions(): array
{
return [
Actions\CreateAction::make(),
];
}
}

View File

@ -0,0 +1,158 @@
<?php
namespace App\Filament\Resources;
use Dom\Text;
use Filament\Forms;
use Filament\Tables;
use App\Models\Student;
use Filament\Forms\Form;
use Filament\Tables\Table;
use Filament\Resources\Resource;
use Filament\Forms\Components\Card;
use Filament\Forms\Components\Select;
use Filament\Tables\Columns\TextColumn;
use Filament\Forms\Components\TextInput;
use Filament\Tables\Columns\ImageColumn;
use Filament\Forms\Components\DatePicker;
use Filament\Forms\Components\FileUpload;
use Illuminate\Database\Eloquent\Builder;
use App\Filament\Resources\StudentResource\Pages;
use Illuminate\Database\Eloquent\SoftDeletingScope;
use App\Filament\Resources\StudentResource\RelationManagers;
class StudentResource extends Resource
{
protected static ?string $model = Student::class;
protected static ?string $navigationIcon = 'heroicon-o-user-group';
protected static ?string $navigationLabel = 'Siswa';
protected static ?string $pluralLabel = 'Siswa';
protected static ?string $modelLabel = 'Siswa';
protected static ?string $slug = 'siswa';
public static function getNavigationBadge(): ?string
{
return static::getModel()::count();
}
public static function form(Form $form): Form
{
return $form
->schema([
Card::make()
->schema([
FileUpload::make('avatar_url')
->label('Foto Siswa')
->image()
->disk('public')
->directory('student')
->imageCropAspectRatio('1:1')
->imageEditor()
->placeholder('Unggah foto siswa (opsional)')
->acceptedFileTypes(['image/*'])
->columnSpanFull(),
TextInput::make('nis')
->label('NIS')
->required()
->placeholder('Masukkan NIS, max : 16 karakter')
->unique(ignoreRecord: true)
->numeric()
->maxLength(16),
TextInput::make('name')
->label('Nama')
->required()
->placeholder('Masukkan nama lengkap siswa')
->maxLength(255),
DatePicker::make('date_of_birth')
->label('Tanggal Lahir')
->required()
->placeholder('Pilih tanggal lahir siswa'),
TextInput::make('place_of_birth')
->label('Tempat Lahir')
->required()
->placeholder('Masukkan tempat lahir siswa')
->maxLength(255),
Select::make('classroom_id')
->label('Kelas')
->relationship('classroom', 'name')
->required()
->placeholder('Pilih kelas siswa'),
Select::make('user_id')
->label('Orang Tua / Wali')
->relationship('user', 'name')
->required()
->unique(ignoreRecord: true)
->placeholder('Pilih akun pengguna untuk siswa'),
])
]);
}
public static function table(Table $table): Table
{
return $table
->columns([
ImageColumn::make('avatar_url')
->label('')
->circular()
->size(50),
TextColumn::make('nis')
->label('NIS')
->sortable()
->searchable(),
TextColumn::make('name')
->label('Siswa')
->sortable()
->searchable()
->wrap(),
TextColumn::make('classroom.name')
->label('Kelas')
->badge()
->colors(['primary'])
->sortable()
->searchable(),
TextColumn::make('user.name')
->label('Orang Tua / Wali')
->sortable()
->searchable(),
])
->filters([
//
])
->actions([
Tables\Actions\EditAction::make(),
Tables\Actions\DeleteAction::make(),
])
->bulkActions([
Tables\Actions\BulkActionGroup::make([
Tables\Actions\DeleteBulkAction::make(),
]),
]);
}
public static function getRelations(): array
{
return [
//
];
}
public static function getPages(): array
{
return [
'index' => Pages\ListStudents::route('/'),
'create' => Pages\CreateStudent::route('/create'),
'edit' => Pages\EditStudent::route('/{record}/edit'),
];
}
}

View File

@ -0,0 +1,12 @@
<?php
namespace App\Filament\Resources\StudentResource\Pages;
use App\Filament\Resources\StudentResource;
use Filament\Actions;
use Filament\Resources\Pages\CreateRecord;
class CreateStudent extends CreateRecord
{
protected static string $resource = StudentResource::class;
}

View File

@ -0,0 +1,19 @@
<?php
namespace App\Filament\Resources\StudentResource\Pages;
use App\Filament\Resources\StudentResource;
use Filament\Actions;
use Filament\Resources\Pages\EditRecord;
class EditStudent extends EditRecord
{
protected static string $resource = StudentResource::class;
protected function getHeaderActions(): array
{
return [
Actions\DeleteAction::make(),
];
}
}

View File

@ -0,0 +1,19 @@
<?php
namespace App\Filament\Resources\StudentResource\Pages;
use App\Filament\Resources\StudentResource;
use Filament\Actions;
use Filament\Resources\Pages\ListRecords;
class ListStudents extends ListRecords
{
protected static string $resource = StudentResource::class;
protected function getHeaderActions(): array
{
return [
Actions\CreateAction::make(),
];
}
}

View File

@ -0,0 +1,92 @@
<?php
namespace App\Filament\Resources;
use App\Filament\Resources\StudentSubjectResource\Pages;
use App\Filament\Resources\StudentSubjectResource\RelationManagers;
use App\Models\StudentSubject;
use Filament\Forms;
use Filament\Forms\Components\Card;
use Filament\Forms\Components\TextInput;
use Filament\Forms\Form;
use Filament\Resources\Resource;
use Filament\Tables;
use Filament\Tables\Columns\TextColumn;
use Filament\Tables\Table;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\SoftDeletingScope;
class StudentSubjectResource extends Resource
{
protected static ?string $model = StudentSubject::class;
protected static ?string $navigationIcon = 'heroicon-o-book-open';
protected static ?string $navigationLabel = 'Mata Pelajaran';
protected static ?string $pluralLabel = 'Mata Pelajaran';
protected static ?string $modelLabel = 'Mata Pelajaran';
protected static ?string $slug = 'mata-pelajaran';
public static function form(Form $form): Form
{
return $form
->schema([
Card::make()
->schema([
TextInput::make('name')
->label('Nama Mata Pelajaran')
->required()
->maxLength(255)
->unique(ignoreRecord: true)
->placeholder('Masukkan nama mata pelajaran'),
TextInput::make('description')
->label('Deskripsi')
->maxLength(500)
->placeholder('Masukkan deskripsi singkat mata pelajaran (opsional)'),
])
]);
}
public static function table(Table $table): Table
{
return $table
->columns([
TextColumn::make('name')
->label('Nama Mata Pelajaran')
->searchable()
->sortable()
->badge()
->colors(['primary'])
->wrap(),
])
->filters([
//
])
->actions([
Tables\Actions\ViewAction::make(),
Tables\Actions\EditAction::make(),
Tables\Actions\DeleteAction::make(),
])
->bulkActions([
Tables\Actions\BulkActionGroup::make([
Tables\Actions\DeleteBulkAction::make(),
]),
]);
}
public static function getRelations(): array
{
return [
//
];
}
public static function getPages(): array
{
return [
'index' => Pages\ListStudentSubjects::route('/'),
'create' => Pages\CreateStudentSubject::route('/create'),
'edit' => Pages\EditStudentSubject::route('/{record}/edit'),
];
}
}

View File

@ -0,0 +1,12 @@
<?php
namespace App\Filament\Resources\StudentSubjectResource\Pages;
use App\Filament\Resources\StudentSubjectResource;
use Filament\Actions;
use Filament\Resources\Pages\CreateRecord;
class CreateStudentSubject extends CreateRecord
{
protected static string $resource = StudentSubjectResource::class;
}

View File

@ -0,0 +1,19 @@
<?php
namespace App\Filament\Resources\StudentSubjectResource\Pages;
use App\Filament\Resources\StudentSubjectResource;
use Filament\Actions;
use Filament\Resources\Pages\EditRecord;
class EditStudentSubject extends EditRecord
{
protected static string $resource = StudentSubjectResource::class;
protected function getHeaderActions(): array
{
return [
Actions\DeleteAction::make(),
];
}
}

View File

@ -0,0 +1,19 @@
<?php
namespace App\Filament\Resources\StudentSubjectResource\Pages;
use App\Filament\Resources\StudentSubjectResource;
use Filament\Actions;
use Filament\Resources\Pages\ListRecords;
class ListStudentSubjects extends ListRecords
{
protected static string $resource = StudentSubjectResource::class;
protected function getHeaderActions(): array
{
return [
Actions\CreateAction::make(),
];
}
}

View File

@ -0,0 +1,128 @@
<?php
namespace App\Filament\Resources;
use Filament\Forms;
use Filament\Tables;
use Filament\Forms\Form;
use Filament\Tables\Table;
use App\Models\StudentTask;
use Filament\Resources\Resource;
use Filament\Forms\Components\Card;
use Filament\Forms\Components\Select;
use Filament\Forms\Components\Textarea;
use Filament\Tables\Columns\TextColumn;
use Filament\Forms\Components\TextInput;
use Filament\Forms\Components\FileUpload;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\SoftDeletingScope;
use App\Filament\Resources\StudentTaskResource\Pages;
use App\Filament\Resources\StudentTaskResource\RelationManagers;
use Filament\Tables\Filters\SelectFilter;
class StudentTaskResource extends Resource
{
protected static ?string $model = StudentTask::class;
protected static ?string $navigationIcon = 'heroicon-o-clipboard-document';
protected static ?string $navigationLabel = 'Tugas Siswa';
protected static ?string $pluralLabel = 'Tugas Siswa';
protected static ?string $modelLabel = 'Tugas Siswa';
protected static ?string $slug = 'tugas-siswa';
public static function form(Form $form): Form
{
return $form
->schema([
Card::make()
->schema([
TextInput::make('name')
->label('Nama Tugas')
->required()
->placeholder('Masukan nama tugas'),
Textarea::make('description')
->label('Deskripsi Tugas')
->required()
->placeholder('Masukan deskripsi tugas'),
Select::make('classroom_id')
->label('Kelas')
->relationship('classroom', 'name')
->required()
->placeholder('Pilih kelas'),
Select::make('subject_id')
->label('Mata Pelajaran')
->relationship('subject', 'name')
->required()
->placeholder('Pilih mata pelajaran'),
FileUpload::make('file')
->label('File Tugas')
->disk('public')
->directory('tugas-siswa')
->acceptedFileTypes(['application/pdf', 'image/*', 'application/msword', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'video/*'])
->nullable()
->placeholder('Unggah file tugas (opsional)')
])
]);
}
public static function table(Table $table): Table
{
return $table
->columns([
TextColumn::make('name')
->label('Nama Tugas')
->searchable()
->sortable(),
TextColumn::make('classroom.name')
->label('Kelas')
->badge()
->colors(['success'])
->searchable()
->sortable(),
TextColumn::make('subject.name')
->label('Mata Pelajaran')
->badge()
->colors(['primary'])
->searchable()
->sortable(),
])
->filters([
SelectFilter::make('classroom_id')
->label('Kelas')
->relationship('classroom', 'name')
->placeholder('Semua Kelas'),
])
->actions([
Tables\Actions\ViewAction::make(),
Tables\Actions\EditAction::make(),
Tables\Actions\DeleteAction::make(),
])
->bulkActions([
Tables\Actions\BulkActionGroup::make([
Tables\Actions\DeleteBulkAction::make(),
]),
]);
}
public static function getRelations(): array
{
return [
StudentTaskResource\RelationManagers\StudentGradeRelationManager::class,
];
}
public static function getPages(): array
{
return [
'index' => Pages\ListStudentTasks::route('/'),
'create' => Pages\CreateStudentTask::route('/create'),
'edit' => Pages\EditStudentTask::route('/{record}/edit'),
];
}
}

View File

@ -0,0 +1,12 @@
<?php
namespace App\Filament\Resources\StudentTaskResource\Pages;
use App\Filament\Resources\StudentTaskResource;
use Filament\Actions;
use Filament\Resources\Pages\CreateRecord;
class CreateStudentTask extends CreateRecord
{
protected static string $resource = StudentTaskResource::class;
}

View File

@ -0,0 +1,19 @@
<?php
namespace App\Filament\Resources\StudentTaskResource\Pages;
use App\Filament\Resources\StudentTaskResource;
use Filament\Actions;
use Filament\Resources\Pages\EditRecord;
class EditStudentTask extends EditRecord
{
protected static string $resource = StudentTaskResource::class;
protected function getHeaderActions(): array
{
return [
Actions\DeleteAction::make(),
];
}
}

View File

@ -0,0 +1,19 @@
<?php
namespace App\Filament\Resources\StudentTaskResource\Pages;
use App\Filament\Resources\StudentTaskResource;
use Filament\Actions;
use Filament\Resources\Pages\ListRecords;
class ListStudentTasks extends ListRecords
{
protected static string $resource = StudentTaskResource::class;
protected function getHeaderActions(): array
{
return [
Actions\CreateAction::make(),
];
}
}

View File

@ -0,0 +1,101 @@
<?php
namespace App\Filament\Resources\StudentTaskResource\RelationManagers;
use Filament\Forms;
use Filament\Tables;
use Filament\Forms\Form;
use Filament\Tables\Table;
use Filament\Forms\Components\TextInput;
use Filament\Forms\Components\FileUpload;
use Filament\Forms\Components\Select;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\SoftDeletingScope;
use Filament\Resources\RelationManagers\RelationManager;
class StudentGradeRelationManager extends RelationManager
{
protected static string $relationship = 'nilai';
protected static ?string $pluralLabel = 'Nilai Siswa';
protected static ?string $modelLabel = 'Nilai Siswa';
protected static ?string $pluralModelLabel = 'Nilai Siswa';
public function form(Form $form): Form
{
return $form
->schema([
Select::make('student_id')
->label('Siswa')
->options(function () {
$task = $this->getOwnerRecord();
if (!$task || !$task->classroom) {
return [];
}
$students = $task->classroom->students;
$studentIdsWithGrades = $task->nilai->pluck('student_id')->toArray();
$availableStudents = $students->whereNotIn('id', $studentIdsWithGrades);
return $availableStudents->pluck('name', 'id');
})
->placeholder('Pilih siswa')
->required(),
FileUpload::make('file')
->label('File Tugas')
->placeholder('Unggah file tugas'),
TextInput::make('grade')
->label('Nilai')
->required()
->numeric()
->placeholder('Masukkan nilai siswa'),
]);
}
public function table(Table $table): Table
{
return $table
->recordTitleAttribute('task_id')
->columns([
Tables\Columns\TextColumn::make('student.name')
->label('Siswa')
->sortable()
->searchable(),
Tables\Columns\TextColumn::make('task.name')
->label('Tugas')
->sortable()
->searchable(),
Tables\Columns\TextColumn::make('grade')
->label('Nilai')
->badge()
->colors(['success'])
->sortable()
->searchable(),
])
->filters([
//
])
->headerActions([
Tables\Actions\CreateAction::make(),
Tables\Actions\Action::make('Print PDF')
->label('Cetak PDF')
->icon('heroicon-o-printer')
->color('success')
->url(fn () => route('student-grade.download', ['task' => $this->getOwnerRecord()->id]))
->openUrlInNewTab()
->requiresConfirmation(),
])
->actions([
Tables\Actions\EditAction::make(),
Tables\Actions\DeleteAction::make(),
])
->bulkActions([
Tables\Actions\BulkActionGroup::make([
Tables\Actions\DeleteBulkAction::make(),
]),
]);
}
}

View File

@ -0,0 +1,144 @@
<?php
namespace App\Filament\Resources;
use Filament\Forms;
use App\Models\User;
use Filament\Tables;
use Filament\Forms\Form;
use Filament\Tables\Table;
use Filament\Resources\Resource;
use Filament\Forms\Components\Card;
use Filament\Forms\Components\Select;
use Filament\Tables\Columns\TextColumn;
use Filament\Forms\Components\TextInput;
use Filament\Forms\Components\DatePicker;
use Illuminate\Database\Eloquent\Builder;
use App\Filament\Resources\UserResource\Pages;
use Illuminate\Database\Eloquent\SoftDeletingScope;
use App\Filament\Resources\UserResource\RelationManagers;
class UserResource extends Resource
{
protected static ?string $model = User::class;
protected static ?string $navigationIcon = 'heroicon-o-users';
protected static ?string $navigationLabel = 'Pengguna';
protected static ?string $pluralLabel = 'Pengguna';
protected static ?string $modelLabel = 'Pengguna';
protected static ?string $slug = 'pengguna';
public static function form(Form $form): Form
{
return $form
->schema([
Card::make()
->schema([
TextInput::make('nik')
->label('NIK')
->required()
->placeholder('Masukkan NIK, max : 16 karakter')
->unique(ignoreRecord: true)
->maxLength(16),
TextInput::make('name')
->label('Nama Lengkap')
->required()
->placeholder('Masukkan nama lengkap, max : 50 karakter')
->maxLength(50),
DatePicker::make('birth_date')
->label('Tanggal Lahir')
->required()
->placeholder('Pilih tanggal lahir'),
TextInput::make('place_of_birth')
->label('Tempat Lahir')
->required()
->placeholder('Masukkan tempat lahir, max : 50 karakter')
->maxLength(50),
TextInput::make('email')
->label('Email')
->required()
->email()
->placeholder('Masukkan email, max : 50 karakter')
->maxLength(50),
TextInput::make('password')
->label('Password')
->required(fn ($context) => $context === 'create')
->password()
->placeholder('Masukkan password, min : 8 karakter')
->minLength(8)
->maxLength(255)
->dehydrateStateUsing(function ($state, $record) {
return $state ? bcrypt($state) : $record->password;
}),
Select::make('roles')
->label('Hak Akses')
->relationship('roles', 'name')
->preload()
->required()
->placeholder('Pilih peran pengguna'),
])
]);
}
public static function table(Table $table): Table
{
return $table
->columns([
TextColumn::make('nik')
->label('NIK')
->searchable()
->sortable(),
TextColumn::make('name')
->label('Nama Lengkap')
->searchable()
->sortable(),
TextColumn::make('email')
->label('Email')
->searchable()
->sortable(),
TextColumn::make('roles.name')
->label('Hak Akses')
->badge()
->colors(['success'])
->searchable()
->sortable(),
])
->filters([
//
])
->actions([
Tables\Actions\EditAction::make(),
Tables\Actions\DeleteAction::make(),
])
->bulkActions([
Tables\Actions\BulkActionGroup::make([
Tables\Actions\DeleteBulkAction::make(),
]),
]);
}
public static function getRelations(): array
{
return [
//
];
}
public static function getPages(): array
{
return [
'index' => Pages\ListUsers::route('/'),
'create' => Pages\CreateUser::route('/create'),
'edit' => Pages\EditUser::route('/{record}/edit'),
];
}
}

View File

@ -0,0 +1,12 @@
<?php
namespace App\Filament\Resources\UserResource\Pages;
use App\Filament\Resources\UserResource;
use Filament\Actions;
use Filament\Resources\Pages\CreateRecord;
class CreateUser extends CreateRecord
{
protected static string $resource = UserResource::class;
}

View File

@ -0,0 +1,19 @@
<?php
namespace App\Filament\Resources\UserResource\Pages;
use App\Filament\Resources\UserResource;
use Filament\Actions;
use Filament\Resources\Pages\EditRecord;
class EditUser extends EditRecord
{
protected static string $resource = UserResource::class;
protected function getHeaderActions(): array
{
return [
Actions\DeleteAction::make(),
];
}
}

View File

@ -0,0 +1,19 @@
<?php
namespace App\Filament\Resources\UserResource\Pages;
use App\Filament\Resources\UserResource;
use Filament\Actions;
use Filament\Resources\Pages\ListRecords;
class ListUsers extends ListRecords
{
protected static string $resource = UserResource::class;
protected function getHeaderActions(): array
{
return [
Actions\CreateAction::make(),
];
}
}

View File

@ -0,0 +1,8 @@
<?php
namespace App\Http\Controllers;
abstract class Controller
{
//
}

View File

@ -0,0 +1,25 @@
<?php
namespace App\Http\Controllers\PDF;
use Carbon\Carbon;
use App\Models\StudentTask;
use Illuminate\Http\Request;
use Barryvdh\DomPDF\Facade\Pdf;
use App\Http\Controllers\Controller;
class StudentGradeController extends Controller
{
public function generate($task)
{
$task = StudentTask::with(['nilai.student', 'classroom'])->findOrFail($task);
Carbon::setLocale('id');
$tanggal = Carbon::now()->translatedFormat('d F Y');
return Pdf::loadView('PDF.student-grade', [
'task' => $task,
'grades' => $task->nilai,
])->download('REKAP_NILAI_' . $task->name . '_' . $tanggal . '.pdf');
}
}

View File

@ -0,0 +1,26 @@
<?php
namespace App\Http\Controllers\PDF;
use Carbon\Carbon;
use App\Models\Student;
use Barryvdh\DomPDF\Facade\Pdf;
use App\Http\Controllers\Controller;
class StudentGrowthController extends Controller
{
public function generate(Student $student)
{
$growths = $student->growths()->with('user')->get();
Carbon::setLocale('id');
$tanggal = Carbon::now()->translatedFormat('d F Y');
$pdf = Pdf::loadView('PDF.student-growth', [
'student' => $student,
'growths' => $growths,
])->setPaper('A4', 'portrait');
return $pdf->download("LAPORAN_PERKEMBANGAN_SISWA_{$student->name}_{$tanggal}.pdf");
}
}

23
app/Models/Classroom.php Normal file
View File

@ -0,0 +1,23 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Classroom extends Model
{
protected $table = 'classroom';
protected $fillable = [
'name',
];
public function students()
{
return $this->hasMany(Student::class);
}
public function tasks()
{
return $this->hasMany(StudentTask::class);
}
}

39
app/Models/Student.php Normal file
View File

@ -0,0 +1,39 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Student extends Model
{
protected $table = 'student';
protected $fillable = [
'nis',
'name',
'date_of_birth',
'place_of_birth',
'classroom_id',
'user_id',
'avatar_url',
];
public function classroom()
{
return $this->belongsTo(Classroom::class);
}
public function user()
{
return $this->belongsTo(User::class);
}
public function tasks()
{
return $this->hasMany(StudentTask::class);
}
public function growths()
{
return $this->hasMany(StudentGrowth::class);
}
}

View File

@ -0,0 +1,15 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class StudentActivities extends Model
{
protected $table = 'student_activities';
protected $fillable = [
'name',
'description',
];
}

View File

@ -0,0 +1,26 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class StudentGrade extends Model
{
protected $table = 'student_grade';
protected $fillable = [
'student_id',
'task_id',
'file',
'grade',
];
public function student()
{
return $this->belongsTo(Student::class, 'student_id');
}
public function task()
{
return $this->belongsTo(StudentTask::class, 'task_id');
}
}

View File

@ -0,0 +1,28 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class StudentGrowth extends Model
{
protected $table = 'student_growth';
protected $fillable = [
'student_id',
'user_id',
'incident',
'behavior',
'suggestion',
];
public function student()
{
return $this->belongsTo(Student::class);
}
public function user()
{
return $this->belongsTo(User::class);
}
}

View File

@ -0,0 +1,14 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class StudentSubject extends Model
{
protected $table = 'student_subject';
protected $fillable = [
'name',
'description'
];
}

View File

@ -0,0 +1,33 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class StudentTask extends Model
{
protected $table = 'student_task';
protected $fillable = [
'name',
'description',
'classroom_id',
'subject_id',
'file',
];
public function classroom()
{
return $this->belongsTo(Classroom::class);
}
public function subject()
{
return $this->belongsTo(StudentSubject::class);
}
public function nilai()
{
return $this->hasMany(StudentGrade::class, 'task_id');
}
}

54
app/Models/User.php Normal file
View File

@ -0,0 +1,54 @@
<?php
namespace App\Models;
use Spatie\Permission\Traits\HasRoles;
use Illuminate\Support\Facades\Storage;
use Filament\Models\Contracts\HasAvatar;
use Illuminate\Notifications\Notifiable;
use Filament\Models\Contracts\FilamentUser;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Filament\Panel;
class User extends Authenticatable implements FilamentUser, HasAvatar
{
use HasFactory, Notifiable, HasRoles;
protected $fillable = [
'name',
'nik',
'birth_date',
'avatar_url',
'email',
'password',
];
protected $hidden = [
'password',
'remember_token',
];
protected function casts(): array
{
return [
'email_verified_at' => 'datetime',
'password' => 'hashed',
];
}
public function getFilamentAvatarUrl(): ?string
{
return $this->avatar_url ? Storage::url($this->avatar_url) : null;
}
public function canAccessPanel(Panel $panel): bool
{
return true;
}
public function getFilamentName(): string
{
return $this->name ?? $this->email ?? 'User';
}
}

View File

@ -0,0 +1,108 @@
<?php
namespace App\Policies;
use App\Models\User;
use App\Models\Classroom;
use Illuminate\Auth\Access\HandlesAuthorization;
class ClassroomPolicy
{
use HandlesAuthorization;
/**
* Determine whether the user can view any models.
*/
public function viewAny(User $user): bool
{
return $user->can('view_any_classroom');
}
/**
* Determine whether the user can view the model.
*/
public function view(User $user, Classroom $classroom): bool
{
return $user->can('view_classroom');
}
/**
* Determine whether the user can create models.
*/
public function create(User $user): bool
{
return $user->can('create_classroom');
}
/**
* Determine whether the user can update the model.
*/
public function update(User $user, Classroom $classroom): bool
{
return $user->can('update_classroom');
}
/**
* Determine whether the user can delete the model.
*/
public function delete(User $user, Classroom $classroom): bool
{
return $user->can('delete_classroom');
}
/**
* Determine whether the user can bulk delete.
*/
public function deleteAny(User $user): bool
{
return $user->can('delete_any_classroom');
}
/**
* Determine whether the user can permanently delete.
*/
public function forceDelete(User $user, Classroom $classroom): bool
{
return $user->can('force_delete_classroom');
}
/**
* Determine whether the user can permanently bulk delete.
*/
public function forceDeleteAny(User $user): bool
{
return $user->can('force_delete_any_classroom');
}
/**
* Determine whether the user can restore.
*/
public function restore(User $user, Classroom $classroom): bool
{
return $user->can('restore_classroom');
}
/**
* Determine whether the user can bulk restore.
*/
public function restoreAny(User $user): bool
{
return $user->can('restore_any_classroom');
}
/**
* Determine whether the user can replicate.
*/
public function replicate(User $user, Classroom $classroom): bool
{
return $user->can('replicate_classroom');
}
/**
* Determine whether the user can reorder.
*/
public function reorder(User $user): bool
{
return $user->can('reorder_classroom');
}
}

108
app/Policies/RolePolicy.php Normal file
View File

@ -0,0 +1,108 @@
<?php
namespace App\Policies;
use App\Models\User;
use Spatie\Permission\Models\Role;
use Illuminate\Auth\Access\HandlesAuthorization;
class RolePolicy
{
use HandlesAuthorization;
/**
* Determine whether the user can view any models.
*/
public function viewAny(User $user): bool
{
return $user->can('view_any_role');
}
/**
* Determine whether the user can view the model.
*/
public function view(User $user, Role $role): bool
{
return $user->can('view_role');
}
/**
* Determine whether the user can create models.
*/
public function create(User $user): bool
{
return $user->can('create_role');
}
/**
* Determine whether the user can update the model.
*/
public function update(User $user, Role $role): bool
{
return $user->can('update_role');
}
/**
* Determine whether the user can delete the model.
*/
public function delete(User $user, Role $role): bool
{
return $user->can('delete_role');
}
/**
* Determine whether the user can bulk delete.
*/
public function deleteAny(User $user): bool
{
return $user->can('delete_any_role');
}
/**
* Determine whether the user can permanently delete.
*/
public function forceDelete(User $user, Role $role): bool
{
return $user->can('{{ ForceDelete }}');
}
/**
* Determine whether the user can permanently bulk delete.
*/
public function forceDeleteAny(User $user): bool
{
return $user->can('{{ ForceDeleteAny }}');
}
/**
* Determine whether the user can restore.
*/
public function restore(User $user, Role $role): bool
{
return $user->can('{{ Restore }}');
}
/**
* Determine whether the user can bulk restore.
*/
public function restoreAny(User $user): bool
{
return $user->can('{{ RestoreAny }}');
}
/**
* Determine whether the user can replicate.
*/
public function replicate(User $user, Role $role): bool
{
return $user->can('{{ Replicate }}');
}
/**
* Determine whether the user can reorder.
*/
public function reorder(User $user): bool
{
return $user->can('{{ Reorder }}');
}
}

View File

@ -0,0 +1,108 @@
<?php
namespace App\Policies;
use App\Models\User;
use App\Models\StudentActivities;
use Illuminate\Auth\Access\HandlesAuthorization;
class StudentActivitiesPolicy
{
use HandlesAuthorization;
/**
* Determine whether the user can view any models.
*/
public function viewAny(User $user): bool
{
return $user->can('view_any_student::activities');
}
/**
* Determine whether the user can view the model.
*/
public function view(User $user, StudentActivities $studentActivities): bool
{
return $user->can('view_student::activities');
}
/**
* Determine whether the user can create models.
*/
public function create(User $user): bool
{
return $user->can('create_student::activities');
}
/**
* Determine whether the user can update the model.
*/
public function update(User $user, StudentActivities $studentActivities): bool
{
return $user->can('update_student::activities');
}
/**
* Determine whether the user can delete the model.
*/
public function delete(User $user, StudentActivities $studentActivities): bool
{
return $user->can('delete_student::activities');
}
/**
* Determine whether the user can bulk delete.
*/
public function deleteAny(User $user): bool
{
return $user->can('delete_any_student::activities');
}
/**
* Determine whether the user can permanently delete.
*/
public function forceDelete(User $user, StudentActivities $studentActivities): bool
{
return $user->can('force_delete_student::activities');
}
/**
* Determine whether the user can permanently bulk delete.
*/
public function forceDeleteAny(User $user): bool
{
return $user->can('force_delete_any_student::activities');
}
/**
* Determine whether the user can restore.
*/
public function restore(User $user, StudentActivities $studentActivities): bool
{
return $user->can('restore_student::activities');
}
/**
* Determine whether the user can bulk restore.
*/
public function restoreAny(User $user): bool
{
return $user->can('restore_any_student::activities');
}
/**
* Determine whether the user can replicate.
*/
public function replicate(User $user, StudentActivities $studentActivities): bool
{
return $user->can('replicate_student::activities');
}
/**
* Determine whether the user can reorder.
*/
public function reorder(User $user): bool
{
return $user->can('reorder_student::activities');
}
}

View File

@ -0,0 +1,108 @@
<?php
namespace App\Policies;
use App\Models\User;
use App\Models\StudentGrowth;
use Illuminate\Auth\Access\HandlesAuthorization;
class StudentGrowthPolicy
{
use HandlesAuthorization;
/**
* Determine whether the user can view any models.
*/
public function viewAny(User $user): bool
{
return $user->can('view_any_student::growth');
}
/**
* Determine whether the user can view the model.
*/
public function view(User $user, StudentGrowth $studentGrowth): bool
{
return $user->can('view_student::growth');
}
/**
* Determine whether the user can create models.
*/
public function create(User $user): bool
{
return $user->can('create_student::growth');
}
/**
* Determine whether the user can update the model.
*/
public function update(User $user, StudentGrowth $studentGrowth): bool
{
return $user->can('update_student::growth');
}
/**
* Determine whether the user can delete the model.
*/
public function delete(User $user, StudentGrowth $studentGrowth): bool
{
return $user->can('delete_student::growth');
}
/**
* Determine whether the user can bulk delete.
*/
public function deleteAny(User $user): bool
{
return $user->can('delete_any_student::growth');
}
/**
* Determine whether the user can permanently delete.
*/
public function forceDelete(User $user, StudentGrowth $studentGrowth): bool
{
return $user->can('force_delete_student::growth');
}
/**
* Determine whether the user can permanently bulk delete.
*/
public function forceDeleteAny(User $user): bool
{
return $user->can('force_delete_any_student::growth');
}
/**
* Determine whether the user can restore.
*/
public function restore(User $user, StudentGrowth $studentGrowth): bool
{
return $user->can('restore_student::growth');
}
/**
* Determine whether the user can bulk restore.
*/
public function restoreAny(User $user): bool
{
return $user->can('restore_any_student::growth');
}
/**
* Determine whether the user can replicate.
*/
public function replicate(User $user, StudentGrowth $studentGrowth): bool
{
return $user->can('replicate_student::growth');
}
/**
* Determine whether the user can reorder.
*/
public function reorder(User $user): bool
{
return $user->can('reorder_student::growth');
}
}

View File

@ -0,0 +1,108 @@
<?php
namespace App\Policies;
use App\Models\User;
use App\Models\Student;
use Illuminate\Auth\Access\HandlesAuthorization;
class StudentPolicy
{
use HandlesAuthorization;
/**
* Determine whether the user can view any models.
*/
public function viewAny(User $user): bool
{
return $user->can('view_any_student');
}
/**
* Determine whether the user can view the model.
*/
public function view(User $user, Student $student): bool
{
return $user->can('view_student');
}
/**
* Determine whether the user can create models.
*/
public function create(User $user): bool
{
return $user->can('create_student');
}
/**
* Determine whether the user can update the model.
*/
public function update(User $user, Student $student): bool
{
return $user->can('update_student');
}
/**
* Determine whether the user can delete the model.
*/
public function delete(User $user, Student $student): bool
{
return $user->can('delete_student');
}
/**
* Determine whether the user can bulk delete.
*/
public function deleteAny(User $user): bool
{
return $user->can('delete_any_student');
}
/**
* Determine whether the user can permanently delete.
*/
public function forceDelete(User $user, Student $student): bool
{
return $user->can('force_delete_student');
}
/**
* Determine whether the user can permanently bulk delete.
*/
public function forceDeleteAny(User $user): bool
{
return $user->can('force_delete_any_student');
}
/**
* Determine whether the user can restore.
*/
public function restore(User $user, Student $student): bool
{
return $user->can('restore_student');
}
/**
* Determine whether the user can bulk restore.
*/
public function restoreAny(User $user): bool
{
return $user->can('restore_any_student');
}
/**
* Determine whether the user can replicate.
*/
public function replicate(User $user, Student $student): bool
{
return $user->can('replicate_student');
}
/**
* Determine whether the user can reorder.
*/
public function reorder(User $user): bool
{
return $user->can('reorder_student');
}
}

View File

@ -0,0 +1,108 @@
<?php
namespace App\Policies;
use App\Models\User;
use App\Models\StudentSubject;
use Illuminate\Auth\Access\HandlesAuthorization;
class StudentSubjectPolicy
{
use HandlesAuthorization;
/**
* Determine whether the user can view any models.
*/
public function viewAny(User $user): bool
{
return $user->can('view_any_student::subject');
}
/**
* Determine whether the user can view the model.
*/
public function view(User $user, StudentSubject $studentSubject): bool
{
return $user->can('view_student::subject');
}
/**
* Determine whether the user can create models.
*/
public function create(User $user): bool
{
return $user->can('create_student::subject');
}
/**
* Determine whether the user can update the model.
*/
public function update(User $user, StudentSubject $studentSubject): bool
{
return $user->can('update_student::subject');
}
/**
* Determine whether the user can delete the model.
*/
public function delete(User $user, StudentSubject $studentSubject): bool
{
return $user->can('delete_student::subject');
}
/**
* Determine whether the user can bulk delete.
*/
public function deleteAny(User $user): bool
{
return $user->can('delete_any_student::subject');
}
/**
* Determine whether the user can permanently delete.
*/
public function forceDelete(User $user, StudentSubject $studentSubject): bool
{
return $user->can('force_delete_student::subject');
}
/**
* Determine whether the user can permanently bulk delete.
*/
public function forceDeleteAny(User $user): bool
{
return $user->can('force_delete_any_student::subject');
}
/**
* Determine whether the user can restore.
*/
public function restore(User $user, StudentSubject $studentSubject): bool
{
return $user->can('restore_student::subject');
}
/**
* Determine whether the user can bulk restore.
*/
public function restoreAny(User $user): bool
{
return $user->can('restore_any_student::subject');
}
/**
* Determine whether the user can replicate.
*/
public function replicate(User $user, StudentSubject $studentSubject): bool
{
return $user->can('replicate_student::subject');
}
/**
* Determine whether the user can reorder.
*/
public function reorder(User $user): bool
{
return $user->can('reorder_student::subject');
}
}

View File

@ -0,0 +1,108 @@
<?php
namespace App\Policies;
use App\Models\User;
use App\Models\StudentTask;
use Illuminate\Auth\Access\HandlesAuthorization;
class StudentTaskPolicy
{
use HandlesAuthorization;
/**
* Determine whether the user can view any models.
*/
public function viewAny(User $user): bool
{
return $user->can('view_any_student::task');
}
/**
* Determine whether the user can view the model.
*/
public function view(User $user, StudentTask $studentTask): bool
{
return $user->can('view_student::task');
}
/**
* Determine whether the user can create models.
*/
public function create(User $user): bool
{
return $user->can('create_student::task');
}
/**
* Determine whether the user can update the model.
*/
public function update(User $user, StudentTask $studentTask): bool
{
return $user->can('update_student::task');
}
/**
* Determine whether the user can delete the model.
*/
public function delete(User $user, StudentTask $studentTask): bool
{
return $user->can('delete_student::task');
}
/**
* Determine whether the user can bulk delete.
*/
public function deleteAny(User $user): bool
{
return $user->can('delete_any_student::task');
}
/**
* Determine whether the user can permanently delete.
*/
public function forceDelete(User $user, StudentTask $studentTask): bool
{
return $user->can('force_delete_student::task');
}
/**
* Determine whether the user can permanently bulk delete.
*/
public function forceDeleteAny(User $user): bool
{
return $user->can('force_delete_any_student::task');
}
/**
* Determine whether the user can restore.
*/
public function restore(User $user, StudentTask $studentTask): bool
{
return $user->can('restore_student::task');
}
/**
* Determine whether the user can bulk restore.
*/
public function restoreAny(User $user): bool
{
return $user->can('restore_any_student::task');
}
/**
* Determine whether the user can replicate.
*/
public function replicate(User $user, StudentTask $studentTask): bool
{
return $user->can('replicate_student::task');
}
/**
* Determine whether the user can reorder.
*/
public function reorder(User $user): bool
{
return $user->can('reorder_student::task');
}
}

144
app/Policies/UserPolicy.php Normal file
View File

@ -0,0 +1,144 @@
<?php
namespace App\Policies;
use App\Models\User;
use Illuminate\Auth\Access\HandlesAuthorization;
class UserPolicy
{
use HandlesAuthorization;
/**
* Determine whether the user can view any models.
*
* @param \App\Models\User $user
* @return bool
*/
public function viewAny(User $user): bool
{
return $user->can('view_any_user');
}
/**
* Determine whether the user can view the model.
*
* @param \App\Models\User $user
* @return bool
*/
public function view(User $user): bool
{
return $user->can('view_user');
}
/**
* Determine whether the user can create models.
*
* @param \App\Models\User $user
* @return bool
*/
public function create(User $user): bool
{
return $user->can('create_user');
}
/**
* Determine whether the user can update the model.
*
* @param \App\Models\User $user
* @return bool
*/
public function update(User $user): bool
{
return $user->can('update_user');
}
/**
* Determine whether the user can delete the model.
*
* @param \App\Models\User $user
* @return bool
*/
public function delete(User $user): bool
{
return $user->can('delete_user');
}
/**
* Determine whether the user can bulk delete.
*
* @param \App\Models\User $user
* @return bool
*/
public function deleteAny(User $user): bool
{
return $user->can('delete_any_user');
}
/**
* Determine whether the user can permanently delete.
*
* @param \App\Models\User $user
* @return bool
*/
public function forceDelete(User $user): bool
{
return $user->can('force_delete_user');
}
/**
* Determine whether the user can permanently bulk delete.
*
* @param \App\Models\User $user
* @return bool
*/
public function forceDeleteAny(User $user): bool
{
return $user->can('force_delete_any_user');
}
/**
* Determine whether the user can restore.
*
* @param \App\Models\User $user
* @return bool
*/
public function restore(User $user): bool
{
return $user->can('restore_user');
}
/**
* Determine whether the user can bulk restore.
*
* @param \App\Models\User $user
* @return bool
*/
public function restoreAny(User $user): bool
{
return $user->can('restore_any_user');
}
/**
* Determine whether the user can bulk restore.
*
* @param \App\Models\User $user
* @return bool
*/
public function replicate(User $user): bool
{
return $user->can('replicate_user');
}
/**
* Determine whether the user can reorder.
*
* @param \App\Models\User $user
* @return bool
*/
public function reorder(User $user): bool
{
return $user->can('reorder_user');
}
}

View File

@ -0,0 +1,24 @@
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*/
public function register(): void
{
//
}
/**
* Bootstrap any application services.
*/
public function boot(): void
{
//
}
}

View File

@ -0,0 +1,82 @@
<?php
namespace App\Providers\Filament;
use Filament\Pages;
use Filament\Panel;
use Filament\Widgets;
use Filament\PanelProvider;
use Filament\Support\Colors\Color;
use Orion\FilamentGreeter\GreeterPlugin;
use Filament\Http\Middleware\Authenticate;
use Jeffgreco13\FilamentBreezy\BreezyCore;
use Illuminate\Session\Middleware\StartSession;
use Illuminate\Cookie\Middleware\EncryptCookies;
use Filament\Http\Middleware\AuthenticateSession;
use BezhanSalleh\FilamentShield\FilamentShieldPlugin;
use Illuminate\Routing\Middleware\SubstituteBindings;
use Illuminate\View\Middleware\ShareErrorsFromSession;
use Filament\Http\Middleware\DisableBladeIconComponents;
use Filament\Http\Middleware\DispatchServingFilamentEvent;
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken;
use Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse;
class MPanelProvider extends PanelProvider
{
public function panel(Panel $panel): Panel
{
return $panel
->default()
->id('m')
->path('m')
->favicon(asset('img/favicon.png'))
->brandName('MOPSS')
->brandLogo(asset('img/brandLight.svg'))
->darkModeBrandLogo(asset('img/brandDark.svg'))
->brandLogoHeight('2.5rem')
->login()
->passwordReset()
->colors([
'primary' => Color::Blue,
])
->discoverResources(in: app_path('Filament/Resources'), for: 'App\\Filament\\Resources')
->discoverPages(in: app_path('Filament/Pages'), for: 'App\\Filament\\Pages')
->pages([
Pages\Dashboard::class,
])
->discoverWidgets(in: app_path('Filament/Widgets'), for: 'App\\Filament\\Widgets')
->widgets([
])
->middleware([
EncryptCookies::class,
AddQueuedCookiesToResponse::class,
StartSession::class,
AuthenticateSession::class,
ShareErrorsFromSession::class,
VerifyCsrfToken::class,
SubstituteBindings::class,
DisableBladeIconComponents::class,
DispatchServingFilamentEvent::class,
])
->authMiddleware([
Authenticate::class,
])
->plugins([
GreeterPlugin::make()
->message('Halo,')
->title('Pantau perkembangan anak dengan mudah')
->avatar(size: 'lg', enabled: true)
->columnSpan('full'),
FilamentShieldPlugin::make(),
BreezyCore::make()
->myProfile(
shouldRegisterUserMenu: true,
userMenuLabel: 'Profil',
shouldRegisterNavigation: false,
navigationGroup: 'Pengaturan',
hasAvatars: true,
slug: 'profil'
)
]);
}
}

18
artisan Normal file
View File

@ -0,0 +1,18 @@
#!/usr/bin/env php
<?php
use Illuminate\Foundation\Application;
use Symfony\Component\Console\Input\ArgvInput;
define('LARAVEL_START', microtime(true));
// Register the Composer autoloader...
require __DIR__.'/vendor/autoload.php';
// Bootstrap Laravel and handle the command...
/** @var Application $app */
$app = require_once __DIR__.'/bootstrap/app.php';
$status = $app->handleCommand(new ArgvInput);
exit($status);

18
bootstrap/app.php Normal file
View File

@ -0,0 +1,18 @@
<?php
use Illuminate\Foundation\Application;
use Illuminate\Foundation\Configuration\Exceptions;
use Illuminate\Foundation\Configuration\Middleware;
return Application::configure(basePath: dirname(__DIR__))
->withRouting(
web: __DIR__.'/../routes/web.php',
commands: __DIR__.'/../routes/console.php',
health: '/up',
)
->withMiddleware(function (Middleware $middleware) {
//
})
->withExceptions(function (Exceptions $exceptions) {
//
})->create();

2
bootstrap/cache/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*
!.gitignore

6
bootstrap/providers.php Normal file
View File

@ -0,0 +1,6 @@
<?php
return [
App\Providers\AppServiceProvider::class,
App\Providers\Filament\MPanelProvider::class,
];

83
composer.json Normal file
View File

@ -0,0 +1,83 @@
{
"$schema": "https://getcomposer.org/schema.json",
"name": "laravel/laravel",
"type": "project",
"description": "The skeleton application for the Laravel framework.",
"keywords": ["laravel", "framework"],
"license": "MIT",
"require": {
"php": "^8.2",
"barryvdh/laravel-dompdf": "^3.1",
"bezhansalleh/filament-shield": "^3.3",
"filament/filament": "3.3",
"jeffgreco13/filament-breezy": "^2.6",
"laravel-lang/common": "^6.7",
"laravel/framework": "^12.0",
"laravel/tinker": "^2.10.1",
"oriondevelops/filament-greeter": "^0.2.2",
"spatie/laravel-permission": "^6.18"
},
"require-dev": {
"fakerphp/faker": "^1.23",
"laravel/pail": "^1.2.2",
"laravel/pint": "^1.13",
"laravel/sail": "^1.41",
"mockery/mockery": "^1.6",
"nunomaduro/collision": "^8.6",
"phpunit/phpunit": "^11.5.3"
},
"autoload": {
"psr-4": {
"App\\": "app/",
"Database\\Factories\\": "database/factories/",
"Database\\Seeders\\": "database/seeders/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"scripts": {
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"@php artisan package:discover --ansi",
"@php artisan filament:upgrade"
],
"post-update-cmd": [
"@php artisan vendor:publish --tag=laravel-assets --ansi --force"
],
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"@php artisan key:generate --ansi",
"@php -r \"file_exists('database/database.sqlite') || touch('database/database.sqlite');\"",
"@php artisan migrate --graceful --ansi"
],
"dev": [
"Composer\\Config::disableProcessTimeout",
"npx concurrently -c \"#93c5fd,#c4b5fd,#fb7185,#fdba74\" \"php artisan serve\" \"php artisan queue:listen --tries=1\" \"php artisan pail --timeout=0\" \"npm run dev\" --names=server,queue,logs,vite"
],
"test": [
"@php artisan config:clear --ansi",
"@php artisan test"
]
},
"extra": {
"laravel": {
"dont-discover": []
}
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true,
"allow-plugins": {
"pestphp/pest-plugin": true,
"php-http/discovery": true
}
},
"minimum-stability": "stable",
"prefer-stable": true
}

12590
composer.lock generated Normal file

File diff suppressed because it is too large Load Diff

126
config/app.php Normal file
View File

@ -0,0 +1,126 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Application Name
|--------------------------------------------------------------------------
|
| This value is the name of your application, which will be used when the
| framework needs to place the application's name in a notification or
| other UI elements where an application name needs to be displayed.
|
*/
'name' => env('APP_NAME', 'Laravel'),
/*
|--------------------------------------------------------------------------
| Application Environment
|--------------------------------------------------------------------------
|
| This value determines the "environment" your application is currently
| running in. This may determine how you prefer to configure various
| services the application utilizes. Set this in your ".env" file.
|
*/
'env' => env('APP_ENV', 'production'),
/*
|--------------------------------------------------------------------------
| Application Debug Mode
|--------------------------------------------------------------------------
|
| When your application is in debug mode, detailed error messages with
| stack traces will be shown on every error that occurs within your
| application. If disabled, a simple generic error page is shown.
|
*/
'debug' => (bool) env('APP_DEBUG', false),
/*
|--------------------------------------------------------------------------
| Application URL
|--------------------------------------------------------------------------
|
| This URL is used by the console to properly generate URLs when using
| the Artisan command line tool. You should set this to the root of
| the application so that it's available within Artisan commands.
|
*/
'url' => env('APP_URL', 'http://localhost'),
/*
|--------------------------------------------------------------------------
| Application Timezone
|--------------------------------------------------------------------------
|
| Here you may specify the default timezone for your application, which
| will be used by the PHP date and date-time functions. The timezone
| is set to "UTC" by default as it is suitable for most use cases.
|
*/
'timezone' => 'Asia/Jakarta',
/*
|--------------------------------------------------------------------------
| Application Locale Configuration
|--------------------------------------------------------------------------
|
| The application locale determines the default locale that will be used
| by Laravel's translation / localization methods. This option can be
| set to any locale for which you plan to have translation strings.
|
*/
'locale' => env('APP_LOCALE', 'en'),
'fallback_locale' => env('APP_FALLBACK_LOCALE', 'en'),
'faker_locale' => env('APP_FAKER_LOCALE', 'en_US'),
/*
|--------------------------------------------------------------------------
| Encryption Key
|--------------------------------------------------------------------------
|
| This key is utilized by Laravel's encryption services and should be set
| to a random, 32 character string to ensure that all encrypted values
| are secure. You should do this prior to deploying the application.
|
*/
'cipher' => 'AES-256-CBC',
'key' => env('APP_KEY'),
'previous_keys' => [
...array_filter(
explode(',', env('APP_PREVIOUS_KEYS', ''))
),
],
/*
|--------------------------------------------------------------------------
| Maintenance Mode Driver
|--------------------------------------------------------------------------
|
| These configuration options determine the driver used to determine and
| manage Laravel's "maintenance mode" status. The "cache" driver will
| allow maintenance mode to be controlled across multiple machines.
|
| Supported drivers: "file", "cache"
|
*/
'maintenance' => [
'driver' => env('APP_MAINTENANCE_DRIVER', 'file'),
'store' => env('APP_MAINTENANCE_STORE', 'database'),
],
];

115
config/auth.php Normal file
View File

@ -0,0 +1,115 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Authentication Defaults
|--------------------------------------------------------------------------
|
| This option defines the default authentication "guard" and password
| reset "broker" for your application. You may change these values
| as required, but they're a perfect start for most applications.
|
*/
'defaults' => [
'guard' => env('AUTH_GUARD', 'web'),
'passwords' => env('AUTH_PASSWORD_BROKER', 'users'),
],
/*
|--------------------------------------------------------------------------
| Authentication Guards
|--------------------------------------------------------------------------
|
| Next, you may define every authentication guard for your application.
| Of course, a great default configuration has been defined for you
| which utilizes session storage plus the Eloquent user provider.
|
| All authentication guards have a user provider, which defines how the
| users are actually retrieved out of your database or other storage
| system used by the application. Typically, Eloquent is utilized.
|
| Supported: "session"
|
*/
'guards' => [
'web' => [
'driver' => 'session',
'provider' => 'users',
],
],
/*
|--------------------------------------------------------------------------
| User Providers
|--------------------------------------------------------------------------
|
| All authentication guards have a user provider, which defines how the
| users are actually retrieved out of your database or other storage
| system used by the application. Typically, Eloquent is utilized.
|
| If you have multiple user tables or models you may configure multiple
| providers to represent the model / table. These providers may then
| be assigned to any extra authentication guards you have defined.
|
| Supported: "database", "eloquent"
|
*/
'providers' => [
'users' => [
'driver' => 'eloquent',
'model' => env('AUTH_MODEL', App\Models\User::class),
],
// 'users' => [
// 'driver' => 'database',
// 'table' => 'users',
// ],
],
/*
|--------------------------------------------------------------------------
| Resetting Passwords
|--------------------------------------------------------------------------
|
| These configuration options specify the behavior of Laravel's password
| reset functionality, including the table utilized for token storage
| and the user provider that is invoked to actually retrieve users.
|
| The expiry time is the number of minutes that each reset token will be
| considered valid. This security feature keeps tokens short-lived so
| they have less time to be guessed. You may change this as needed.
|
| The throttle setting is the number of seconds a user must wait before
| generating more password reset tokens. This prevents the user from
| quickly generating a very large amount of password reset tokens.
|
*/
'passwords' => [
'users' => [
'provider' => 'users',
'table' => env('AUTH_PASSWORD_RESET_TOKEN_TABLE', 'password_reset_tokens'),
'expire' => 60,
'throttle' => 60,
],
],
/*
|--------------------------------------------------------------------------
| Password Confirmation Timeout
|--------------------------------------------------------------------------
|
| Here you may define the amount of seconds before a password confirmation
| window expires and users are asked to re-enter their password via the
| confirmation screen. By default, the timeout lasts for three hours.
|
*/
'password_timeout' => env('AUTH_PASSWORD_TIMEOUT', 10800),
];

108
config/cache.php Normal file
View File

@ -0,0 +1,108 @@
<?php
use Illuminate\Support\Str;
return [
/*
|--------------------------------------------------------------------------
| Default Cache Store
|--------------------------------------------------------------------------
|
| This option controls the default cache store that will be used by the
| framework. This connection is utilized if another isn't explicitly
| specified when running a cache operation inside the application.
|
*/
'default' => env('CACHE_STORE', 'database'),
/*
|--------------------------------------------------------------------------
| Cache Stores
|--------------------------------------------------------------------------
|
| Here you may define all of the cache "stores" for your application as
| well as their drivers. You may even define multiple stores for the
| same cache driver to group types of items stored in your caches.
|
| Supported drivers: "array", "database", "file", "memcached",
| "redis", "dynamodb", "octane", "null"
|
*/
'stores' => [
'array' => [
'driver' => 'array',
'serialize' => false,
],
'database' => [
'driver' => 'database',
'connection' => env('DB_CACHE_CONNECTION'),
'table' => env('DB_CACHE_TABLE', 'cache'),
'lock_connection' => env('DB_CACHE_LOCK_CONNECTION'),
'lock_table' => env('DB_CACHE_LOCK_TABLE'),
],
'file' => [
'driver' => 'file',
'path' => storage_path('framework/cache/data'),
'lock_path' => storage_path('framework/cache/data'),
],
'memcached' => [
'driver' => 'memcached',
'persistent_id' => env('MEMCACHED_PERSISTENT_ID'),
'sasl' => [
env('MEMCACHED_USERNAME'),
env('MEMCACHED_PASSWORD'),
],
'options' => [
// Memcached::OPT_CONNECT_TIMEOUT => 2000,
],
'servers' => [
[
'host' => env('MEMCACHED_HOST', '127.0.0.1'),
'port' => env('MEMCACHED_PORT', 11211),
'weight' => 100,
],
],
],
'redis' => [
'driver' => 'redis',
'connection' => env('REDIS_CACHE_CONNECTION', 'cache'),
'lock_connection' => env('REDIS_CACHE_LOCK_CONNECTION', 'default'),
],
'dynamodb' => [
'driver' => 'dynamodb',
'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY'),
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
'table' => env('DYNAMODB_CACHE_TABLE', 'cache'),
'endpoint' => env('DYNAMODB_ENDPOINT'),
],
'octane' => [
'driver' => 'octane',
],
],
/*
|--------------------------------------------------------------------------
| Cache Key Prefix
|--------------------------------------------------------------------------
|
| When utilizing the APC, database, memcached, Redis, and DynamoDB cache
| stores, there might be other applications using the same cache. For
| that reason, you may prefix every cache key to avoid collisions.
|
*/
'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_cache_'),
];

174
config/database.php Normal file
View File

@ -0,0 +1,174 @@
<?php
use Illuminate\Support\Str;
return [
/*
|--------------------------------------------------------------------------
| Default Database Connection Name
|--------------------------------------------------------------------------
|
| Here you may specify which of the database connections below you wish
| to use as your default connection for database operations. This is
| the connection which will be utilized unless another connection
| is explicitly specified when you execute a query / statement.
|
*/
'default' => env('DB_CONNECTION', 'sqlite'),
/*
|--------------------------------------------------------------------------
| Database Connections
|--------------------------------------------------------------------------
|
| Below are all of the database connections defined for your application.
| An example configuration is provided for each database system which
| is supported by Laravel. You're free to add / remove connections.
|
*/
'connections' => [
'sqlite' => [
'driver' => 'sqlite',
'url' => env('DB_URL'),
'database' => env('DB_DATABASE', database_path('database.sqlite')),
'prefix' => '',
'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true),
'busy_timeout' => null,
'journal_mode' => null,
'synchronous' => null,
],
'mysql' => [
'driver' => 'mysql',
'url' => env('DB_URL'),
'host' => env('DB_HOST', '127.0.0.1'),
'port' => env('DB_PORT', '3306'),
'database' => env('DB_DATABASE', 'laravel'),
'username' => env('DB_USERNAME', 'root'),
'password' => env('DB_PASSWORD', ''),
'unix_socket' => env('DB_SOCKET', ''),
'charset' => env('DB_CHARSET', 'utf8mb4'),
'collation' => env('DB_COLLATION', 'utf8mb4_unicode_ci'),
'prefix' => '',
'prefix_indexes' => true,
'strict' => true,
'engine' => null,
'options' => extension_loaded('pdo_mysql') ? array_filter([
PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),
]) : [],
],
'mariadb' => [
'driver' => 'mariadb',
'url' => env('DB_URL'),
'host' => env('DB_HOST', '127.0.0.1'),
'port' => env('DB_PORT', '3306'),
'database' => env('DB_DATABASE', 'laravel'),
'username' => env('DB_USERNAME', 'root'),
'password' => env('DB_PASSWORD', ''),
'unix_socket' => env('DB_SOCKET', ''),
'charset' => env('DB_CHARSET', 'utf8mb4'),
'collation' => env('DB_COLLATION', 'utf8mb4_unicode_ci'),
'prefix' => '',
'prefix_indexes' => true,
'strict' => true,
'engine' => null,
'options' => extension_loaded('pdo_mysql') ? array_filter([
PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),
]) : [],
],
'pgsql' => [
'driver' => 'pgsql',
'url' => env('DB_URL'),
'host' => env('DB_HOST', '127.0.0.1'),
'port' => env('DB_PORT', '5432'),
'database' => env('DB_DATABASE', 'laravel'),
'username' => env('DB_USERNAME', 'root'),
'password' => env('DB_PASSWORD', ''),
'charset' => env('DB_CHARSET', 'utf8'),
'prefix' => '',
'prefix_indexes' => true,
'search_path' => 'public',
'sslmode' => 'prefer',
],
'sqlsrv' => [
'driver' => 'sqlsrv',
'url' => env('DB_URL'),
'host' => env('DB_HOST', 'localhost'),
'port' => env('DB_PORT', '1433'),
'database' => env('DB_DATABASE', 'laravel'),
'username' => env('DB_USERNAME', 'root'),
'password' => env('DB_PASSWORD', ''),
'charset' => env('DB_CHARSET', 'utf8'),
'prefix' => '',
'prefix_indexes' => true,
// 'encrypt' => env('DB_ENCRYPT', 'yes'),
// 'trust_server_certificate' => env('DB_TRUST_SERVER_CERTIFICATE', 'false'),
],
],
/*
|--------------------------------------------------------------------------
| Migration Repository Table
|--------------------------------------------------------------------------
|
| This table keeps track of all the migrations that have already run for
| your application. Using this information, we can determine which of
| the migrations on disk haven't actually been run on the database.
|
*/
'migrations' => [
'table' => 'migrations',
'update_date_on_publish' => true,
],
/*
|--------------------------------------------------------------------------
| Redis Databases
|--------------------------------------------------------------------------
|
| Redis is an open source, fast, and advanced key-value store that also
| provides a richer body of commands than a typical key-value system
| such as Memcached. You may define your connection settings here.
|
*/
'redis' => [
'client' => env('REDIS_CLIENT', 'phpredis'),
'options' => [
'cluster' => env('REDIS_CLUSTER', 'redis'),
'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_database_'),
'persistent' => env('REDIS_PERSISTENT', false),
],
'default' => [
'url' => env('REDIS_URL'),
'host' => env('REDIS_HOST', '127.0.0.1'),
'username' => env('REDIS_USERNAME'),
'password' => env('REDIS_PASSWORD'),
'port' => env('REDIS_PORT', '6379'),
'database' => env('REDIS_DB', '0'),
],
'cache' => [
'url' => env('REDIS_URL'),
'host' => env('REDIS_HOST', '127.0.0.1'),
'username' => env('REDIS_USERNAME'),
'password' => env('REDIS_PASSWORD'),
'port' => env('REDIS_PORT', '6379'),
'database' => env('REDIS_CACHE_DB', '1'),
],
],
];

View File

@ -0,0 +1,92 @@
<?php
return [
'shield_resource' => [
'should_register_navigation' => true,
'slug' => 'hak-akses',
'navigation_sort' => -1,
'navigation_badge' => true,
'navigation_group' => true,
'sub_navigation_position' => null,
'is_globally_searchable' => false,
'show_model_path' => true,
'is_scoped_to_tenant' => true,
'cluster' => null,
],
'tenant_model' => null,
'auth_provider_model' => [
'fqcn' => 'App\\Models\\User',
],
'super_admin' => [
'enabled' => true,
'name' => 'Administrator',
'define_via_gate' => false,
'intercept_gate' => 'before',
],
'panel_user' => [
'enabled' => true,
'name' => 'panel_user',
],
'permission_prefixes' => [
'resource' => [
'view',
'view_any',
'create',
'update',
'restore',
'restore_any',
'replicate',
'reorder',
'delete',
'delete_any',
'force_delete',
'force_delete_any',
],
'page' => 'page',
'widget' => 'widget',
],
'entities' => [
'pages' => true,
'widgets' => true,
'resources' => true,
'custom_permissions' => false,
],
'generator' => [
'option' => 'policies_and_permissions',
'policy_directory' => 'Policies',
'policy_namespace' => 'Policies',
],
'exclude' => [
'enabled' => true,
'pages' => [
'Dashboard',
],
'widgets' => [
'AccountWidget', 'FilamentInfoWidget',
],
'resources' => [],
],
'discovery' => [
'discover_all_resources' => false,
'discover_all_widgets' => false,
'discover_all_pages' => false,
],
'register_role_policy' => [
'enabled' => true,
],
];

80
config/filesystems.php Normal file
View File

@ -0,0 +1,80 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Filesystem Disk
|--------------------------------------------------------------------------
|
| Here you may specify the default filesystem disk that should be used
| by the framework. The "local" disk, as well as a variety of cloud
| based disks are available to your application for file storage.
|
*/
'default' => env('FILESYSTEM_DISK', 'local'),
/*
|--------------------------------------------------------------------------
| Filesystem Disks
|--------------------------------------------------------------------------
|
| Below you may configure as many filesystem disks as necessary, and you
| may even configure multiple disks for the same driver. Examples for
| most supported storage drivers are configured here for reference.
|
| Supported drivers: "local", "ftp", "sftp", "s3"
|
*/
'disks' => [
'local' => [
'driver' => 'local',
'root' => storage_path('app/private'),
'serve' => true,
'throw' => false,
'report' => false,
],
'public' => [
'driver' => 'local',
'root' => storage_path('app/public'),
'url' => env('APP_URL').'/storage',
'visibility' => 'public',
'throw' => false,
'report' => false,
],
's3' => [
'driver' => 's3',
'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY'),
'region' => env('AWS_DEFAULT_REGION'),
'bucket' => env('AWS_BUCKET'),
'url' => env('AWS_URL'),
'endpoint' => env('AWS_ENDPOINT'),
'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false),
'throw' => false,
'report' => false,
],
],
/*
|--------------------------------------------------------------------------
| Symbolic Links
|--------------------------------------------------------------------------
|
| Here you may configure the symbolic links that will be created when the
| `storage:link` Artisan command is executed. The array keys should be
| the locations of the links and the values should be their targets.
|
*/
'links' => [
public_path('storage') => storage_path('app/public'),
],
];

132
config/logging.php Normal file
View File

@ -0,0 +1,132 @@
<?php
use Monolog\Handler\NullHandler;
use Monolog\Handler\StreamHandler;
use Monolog\Handler\SyslogUdpHandler;
use Monolog\Processor\PsrLogMessageProcessor;
return [
/*
|--------------------------------------------------------------------------
| Default Log Channel
|--------------------------------------------------------------------------
|
| This option defines the default log channel that is utilized to write
| messages to your logs. The value provided here should match one of
| the channels present in the list of "channels" configured below.
|
*/
'default' => env('LOG_CHANNEL', 'stack'),
/*
|--------------------------------------------------------------------------
| Deprecations Log Channel
|--------------------------------------------------------------------------
|
| This option controls the log channel that should be used to log warnings
| regarding deprecated PHP and library features. This allows you to get
| your application ready for upcoming major versions of dependencies.
|
*/
'deprecations' => [
'channel' => env('LOG_DEPRECATIONS_CHANNEL', 'null'),
'trace' => env('LOG_DEPRECATIONS_TRACE', false),
],
/*
|--------------------------------------------------------------------------
| Log Channels
|--------------------------------------------------------------------------
|
| Here you may configure the log channels for your application. Laravel
| utilizes the Monolog PHP logging library, which includes a variety
| of powerful log handlers and formatters that you're free to use.
|
| Available drivers: "single", "daily", "slack", "syslog",
| "errorlog", "monolog", "custom", "stack"
|
*/
'channels' => [
'stack' => [
'driver' => 'stack',
'channels' => explode(',', env('LOG_STACK', 'single')),
'ignore_exceptions' => false,
],
'single' => [
'driver' => 'single',
'path' => storage_path('logs/laravel.log'),
'level' => env('LOG_LEVEL', 'debug'),
'replace_placeholders' => true,
],
'daily' => [
'driver' => 'daily',
'path' => storage_path('logs/laravel.log'),
'level' => env('LOG_LEVEL', 'debug'),
'days' => env('LOG_DAILY_DAYS', 14),
'replace_placeholders' => true,
],
'slack' => [
'driver' => 'slack',
'url' => env('LOG_SLACK_WEBHOOK_URL'),
'username' => env('LOG_SLACK_USERNAME', 'Laravel Log'),
'emoji' => env('LOG_SLACK_EMOJI', ':boom:'),
'level' => env('LOG_LEVEL', 'critical'),
'replace_placeholders' => true,
],
'papertrail' => [
'driver' => 'monolog',
'level' => env('LOG_LEVEL', 'debug'),
'handler' => env('LOG_PAPERTRAIL_HANDLER', SyslogUdpHandler::class),
'handler_with' => [
'host' => env('PAPERTRAIL_URL'),
'port' => env('PAPERTRAIL_PORT'),
'connectionString' => 'tls://'.env('PAPERTRAIL_URL').':'.env('PAPERTRAIL_PORT'),
],
'processors' => [PsrLogMessageProcessor::class],
],
'stderr' => [
'driver' => 'monolog',
'level' => env('LOG_LEVEL', 'debug'),
'handler' => StreamHandler::class,
'handler_with' => [
'stream' => 'php://stderr',
],
'formatter' => env('LOG_STDERR_FORMATTER'),
'processors' => [PsrLogMessageProcessor::class],
],
'syslog' => [
'driver' => 'syslog',
'level' => env('LOG_LEVEL', 'debug'),
'facility' => env('LOG_SYSLOG_FACILITY', LOG_USER),
'replace_placeholders' => true,
],
'errorlog' => [
'driver' => 'errorlog',
'level' => env('LOG_LEVEL', 'debug'),
'replace_placeholders' => true,
],
'null' => [
'driver' => 'monolog',
'handler' => NullHandler::class,
],
'emergency' => [
'path' => storage_path('logs/laravel.log'),
],
],
];

118
config/mail.php Normal file
View File

@ -0,0 +1,118 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Mailer
|--------------------------------------------------------------------------
|
| This option controls the default mailer that is used to send all email
| messages unless another mailer is explicitly specified when sending
| the message. All additional mailers can be configured within the
| "mailers" array. Examples of each type of mailer are provided.
|
*/
'default' => env('MAIL_MAILER', 'log'),
/*
|--------------------------------------------------------------------------
| Mailer Configurations
|--------------------------------------------------------------------------
|
| Here you may configure all of the mailers used by your application plus
| their respective settings. Several examples have been configured for
| you and you are free to add your own as your application requires.
|
| Laravel supports a variety of mail "transport" drivers that can be used
| when delivering an email. You may specify which one you're using for
| your mailers below. You may also add additional mailers if needed.
|
| Supported: "smtp", "sendmail", "mailgun", "ses", "ses-v2",
| "postmark", "resend", "log", "array",
| "failover", "roundrobin"
|
*/
'mailers' => [
'smtp' => [
'transport' => 'smtp',
'scheme' => env('MAIL_SCHEME'),
'url' => env('MAIL_URL'),
'host' => env('MAIL_HOST', '127.0.0.1'),
'port' => env('MAIL_PORT', 2525),
'username' => env('MAIL_USERNAME'),
'password' => env('MAIL_PASSWORD'),
'timeout' => null,
'local_domain' => env('MAIL_EHLO_DOMAIN', parse_url(env('APP_URL', 'http://localhost'), PHP_URL_HOST)),
],
'ses' => [
'transport' => 'ses',
],
'postmark' => [
'transport' => 'postmark',
// 'message_stream_id' => env('POSTMARK_MESSAGE_STREAM_ID'),
// 'client' => [
// 'timeout' => 5,
// ],
],
'resend' => [
'transport' => 'resend',
],
'sendmail' => [
'transport' => 'sendmail',
'path' => env('MAIL_SENDMAIL_PATH', '/usr/sbin/sendmail -bs -i'),
],
'log' => [
'transport' => 'log',
'channel' => env('MAIL_LOG_CHANNEL'),
],
'array' => [
'transport' => 'array',
],
'failover' => [
'transport' => 'failover',
'mailers' => [
'smtp',
'log',
],
'retry_after' => 60,
],
'roundrobin' => [
'transport' => 'roundrobin',
'mailers' => [
'ses',
'postmark',
],
'retry_after' => 60,
],
],
/*
|--------------------------------------------------------------------------
| Global "From" Address
|--------------------------------------------------------------------------
|
| You may wish for all emails sent by your application to be sent from
| the same address. Here you may specify a name and address that is
| used globally for all emails that are sent by your application.
|
*/
'from' => [
'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'),
'name' => env('MAIL_FROM_NAME', 'Example'),
],
];

202
config/permission.php Normal file
View File

@ -0,0 +1,202 @@
<?php
return [
'models' => [
/*
* When using the "HasPermissions" trait from this package, we need to know which
* Eloquent model should be used to retrieve your permissions. Of course, it
* is often just the "Permission" model but you may use whatever you like.
*
* The model you want to use as a Permission model needs to implement the
* `Spatie\Permission\Contracts\Permission` contract.
*/
'permission' => Spatie\Permission\Models\Permission::class,
/*
* When using the "HasRoles" trait from this package, we need to know which
* Eloquent model should be used to retrieve your roles. Of course, it
* is often just the "Role" model but you may use whatever you like.
*
* The model you want to use as a Role model needs to implement the
* `Spatie\Permission\Contracts\Role` contract.
*/
'role' => Spatie\Permission\Models\Role::class,
],
'table_names' => [
/*
* When using the "HasRoles" trait from this package, we need to know which
* table should be used to retrieve your roles. We have chosen a basic
* default value but you may easily change it to any table you like.
*/
'roles' => 'roles',
/*
* When using the "HasPermissions" trait from this package, we need to know which
* table should be used to retrieve your permissions. We have chosen a basic
* default value but you may easily change it to any table you like.
*/
'permissions' => 'permissions',
/*
* When using the "HasPermissions" trait from this package, we need to know which
* table should be used to retrieve your models permissions. We have chosen a
* basic default value but you may easily change it to any table you like.
*/
'model_has_permissions' => 'model_has_permissions',
/*
* When using the "HasRoles" trait from this package, we need to know which
* table should be used to retrieve your models roles. We have chosen a
* basic default value but you may easily change it to any table you like.
*/
'model_has_roles' => 'model_has_roles',
/*
* When using the "HasRoles" trait from this package, we need to know which
* table should be used to retrieve your roles permissions. We have chosen a
* basic default value but you may easily change it to any table you like.
*/
'role_has_permissions' => 'role_has_permissions',
],
'column_names' => [
/*
* Change this if you want to name the related pivots other than defaults
*/
'role_pivot_key' => null, // default 'role_id',
'permission_pivot_key' => null, // default 'permission_id',
/*
* Change this if you want to name the related model primary key other than
* `model_id`.
*
* For example, this would be nice if your primary keys are all UUIDs. In
* that case, name this `model_uuid`.
*/
'model_morph_key' => 'model_id',
/*
* Change this if you want to use the teams feature and your related model's
* foreign key is other than `team_id`.
*/
'team_foreign_key' => 'team_id',
],
/*
* When set to true, the method for checking permissions will be registered on the gate.
* Set this to false if you want to implement custom logic for checking permissions.
*/
'register_permission_check_method' => true,
/*
* When set to true, Laravel\Octane\Events\OperationTerminated event listener will be registered
* this will refresh permissions on every TickTerminated, TaskTerminated and RequestTerminated
* NOTE: This should not be needed in most cases, but an Octane/Vapor combination benefited from it.
*/
'register_octane_reset_listener' => false,
/*
* Events will fire when a role or permission is assigned/unassigned:
* \Spatie\Permission\Events\RoleAttached
* \Spatie\Permission\Events\RoleDetached
* \Spatie\Permission\Events\PermissionAttached
* \Spatie\Permission\Events\PermissionDetached
*
* To enable, set to true, and then create listeners to watch these events.
*/
'events_enabled' => false,
/*
* Teams Feature.
* When set to true the package implements teams using the 'team_foreign_key'.
* If you want the migrations to register the 'team_foreign_key', you must
* set this to true before doing the migration.
* If you already did the migration then you must make a new migration to also
* add 'team_foreign_key' to 'roles', 'model_has_roles', and 'model_has_permissions'
* (view the latest version of this package's migration file)
*/
'teams' => false,
/*
* The class to use to resolve the permissions team id
*/
'team_resolver' => \Spatie\Permission\DefaultTeamResolver::class,
/*
* Passport Client Credentials Grant
* When set to true the package will use Passports Client to check permissions
*/
'use_passport_client_credentials' => false,
/*
* When set to true, the required permission names are added to exception messages.
* This could be considered an information leak in some contexts, so the default
* setting is false here for optimum safety.
*/
'display_permission_in_exception' => false,
/*
* When set to true, the required role names are added to exception messages.
* This could be considered an information leak in some contexts, so the default
* setting is false here for optimum safety.
*/
'display_role_in_exception' => false,
/*
* By default wildcard permission lookups are disabled.
* See documentation to understand supported syntax.
*/
'enable_wildcard_permission' => false,
/*
* The class to use for interpreting wildcard permissions.
* If you need to modify delimiters, override the class and specify its name here.
*/
// 'wildcard_permission' => Spatie\Permission\WildcardPermission::class,
/* Cache-specific settings */
'cache' => [
/*
* By default all permissions are cached for 24 hours to speed up performance.
* When permissions or roles are updated the cache is flushed automatically.
*/
'expiration_time' => \DateInterval::createFromDateString('24 hours'),
/*
* The cache key used to store all permissions.
*/
'key' => 'spatie.permission.cache',
/*
* You may optionally indicate a specific cache driver to use for permission and
* role caching using any of the `store` drivers listed in the cache.php config
* file. Using 'default' here means to use the `default` set in cache.php.
*/
'store' => 'default',
],
];

112
config/queue.php Normal file
View File

@ -0,0 +1,112 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Queue Connection Name
|--------------------------------------------------------------------------
|
| Laravel's queue supports a variety of backends via a single, unified
| API, giving you convenient access to each backend using identical
| syntax for each. The default queue connection is defined below.
|
*/
'default' => env('QUEUE_CONNECTION', 'database'),
/*
|--------------------------------------------------------------------------
| Queue Connections
|--------------------------------------------------------------------------
|
| Here you may configure the connection options for every queue backend
| used by your application. An example configuration is provided for
| each backend supported by Laravel. You're also free to add more.
|
| Drivers: "sync", "database", "beanstalkd", "sqs", "redis", "null"
|
*/
'connections' => [
'sync' => [
'driver' => 'sync',
],
'database' => [
'driver' => 'database',
'connection' => env('DB_QUEUE_CONNECTION'),
'table' => env('DB_QUEUE_TABLE', 'jobs'),
'queue' => env('DB_QUEUE', 'default'),
'retry_after' => (int) env('DB_QUEUE_RETRY_AFTER', 90),
'after_commit' => false,
],
'beanstalkd' => [
'driver' => 'beanstalkd',
'host' => env('BEANSTALKD_QUEUE_HOST', 'localhost'),
'queue' => env('BEANSTALKD_QUEUE', 'default'),
'retry_after' => (int) env('BEANSTALKD_QUEUE_RETRY_AFTER', 90),
'block_for' => 0,
'after_commit' => false,
],
'sqs' => [
'driver' => 'sqs',
'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY'),
'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'),
'queue' => env('SQS_QUEUE', 'default'),
'suffix' => env('SQS_SUFFIX'),
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
'after_commit' => false,
],
'redis' => [
'driver' => 'redis',
'connection' => env('REDIS_QUEUE_CONNECTION', 'default'),
'queue' => env('REDIS_QUEUE', 'default'),
'retry_after' => (int) env('REDIS_QUEUE_RETRY_AFTER', 90),
'block_for' => null,
'after_commit' => false,
],
],
/*
|--------------------------------------------------------------------------
| Job Batching
|--------------------------------------------------------------------------
|
| The following options configure the database and table that store job
| batching information. These options can be updated to any database
| connection and table which has been defined by your application.
|
*/
'batching' => [
'database' => env('DB_CONNECTION', 'sqlite'),
'table' => 'job_batches',
],
/*
|--------------------------------------------------------------------------
| Failed Queue Jobs
|--------------------------------------------------------------------------
|
| These options configure the behavior of failed queue job logging so you
| can control how and where failed jobs are stored. Laravel ships with
| support for storing failed jobs in a simple file or in a database.
|
| Supported drivers: "database-uuids", "dynamodb", "file", "null"
|
*/
'failed' => [
'driver' => env('QUEUE_FAILED_DRIVER', 'database-uuids'),
'database' => env('DB_CONNECTION', 'sqlite'),
'table' => 'failed_jobs',
],
];

38
config/services.php Normal file
View File

@ -0,0 +1,38 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Third Party Services
|--------------------------------------------------------------------------
|
| This file is for storing the credentials for third party services such
| as Mailgun, Postmark, AWS and more. This file provides the de facto
| location for this type of information, allowing packages to have
| a conventional file to locate the various service credentials.
|
*/
'postmark' => [
'token' => env('POSTMARK_TOKEN'),
],
'ses' => [
'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY'),
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
],
'resend' => [
'key' => env('RESEND_KEY'),
],
'slack' => [
'notifications' => [
'bot_user_oauth_token' => env('SLACK_BOT_USER_OAUTH_TOKEN'),
'channel' => env('SLACK_BOT_USER_DEFAULT_CHANNEL'),
],
],
];

217
config/session.php Normal file
View File

@ -0,0 +1,217 @@
<?php
use Illuminate\Support\Str;
return [
/*
|--------------------------------------------------------------------------
| Default Session Driver
|--------------------------------------------------------------------------
|
| This option determines the default session driver that is utilized for
| incoming requests. Laravel supports a variety of storage options to
| persist session data. Database storage is a great default choice.
|
| Supported: "file", "cookie", "database", "memcached",
| "redis", "dynamodb", "array"
|
*/
'driver' => env('SESSION_DRIVER', 'database'),
/*
|--------------------------------------------------------------------------
| Session Lifetime
|--------------------------------------------------------------------------
|
| Here you may specify the number of minutes that you wish the session
| to be allowed to remain idle before it expires. If you want them
| to expire immediately when the browser is closed then you may
| indicate that via the expire_on_close configuration option.
|
*/
'lifetime' => (int) env('SESSION_LIFETIME', 120),
'expire_on_close' => env('SESSION_EXPIRE_ON_CLOSE', false),
/*
|--------------------------------------------------------------------------
| Session Encryption
|--------------------------------------------------------------------------
|
| This option allows you to easily specify that all of your session data
| should be encrypted before it's stored. All encryption is performed
| automatically by Laravel and you may use the session like normal.
|
*/
'encrypt' => env('SESSION_ENCRYPT', false),
/*
|--------------------------------------------------------------------------
| Session File Location
|--------------------------------------------------------------------------
|
| When utilizing the "file" session driver, the session files are placed
| on disk. The default storage location is defined here; however, you
| are free to provide another location where they should be stored.
|
*/
'files' => storage_path('framework/sessions'),
/*
|--------------------------------------------------------------------------
| Session Database Connection
|--------------------------------------------------------------------------
|
| When using the "database" or "redis" session drivers, you may specify a
| connection that should be used to manage these sessions. This should
| correspond to a connection in your database configuration options.
|
*/
'connection' => env('SESSION_CONNECTION'),
/*
|--------------------------------------------------------------------------
| Session Database Table
|--------------------------------------------------------------------------
|
| When using the "database" session driver, you may specify the table to
| be used to store sessions. Of course, a sensible default is defined
| for you; however, you're welcome to change this to another table.
|
*/
'table' => env('SESSION_TABLE', 'sessions'),
/*
|--------------------------------------------------------------------------
| Session Cache Store
|--------------------------------------------------------------------------
|
| When using one of the framework's cache driven session backends, you may
| define the cache store which should be used to store the session data
| between requests. This must match one of your defined cache stores.
|
| Affects: "apc", "dynamodb", "memcached", "redis"
|
*/
'store' => env('SESSION_STORE'),
/*
|--------------------------------------------------------------------------
| Session Sweeping Lottery
|--------------------------------------------------------------------------
|
| Some session drivers must manually sweep their storage location to get
| rid of old sessions from storage. Here are the chances that it will
| happen on a given request. By default, the odds are 2 out of 100.
|
*/
'lottery' => [2, 100],
/*
|--------------------------------------------------------------------------
| Session Cookie Name
|--------------------------------------------------------------------------
|
| Here you may change the name of the session cookie that is created by
| the framework. Typically, you should not need to change this value
| since doing so does not grant a meaningful security improvement.
|
*/
'cookie' => env(
'SESSION_COOKIE',
Str::slug(env('APP_NAME', 'laravel'), '_').'_session'
),
/*
|--------------------------------------------------------------------------
| Session Cookie Path
|--------------------------------------------------------------------------
|
| The session cookie path determines the path for which the cookie will
| be regarded as available. Typically, this will be the root path of
| your application, but you're free to change this when necessary.
|
*/
'path' => env('SESSION_PATH', '/'),
/*
|--------------------------------------------------------------------------
| Session Cookie Domain
|--------------------------------------------------------------------------
|
| This value determines the domain and subdomains the session cookie is
| available to. By default, the cookie will be available to the root
| domain and all subdomains. Typically, this shouldn't be changed.
|
*/
'domain' => env('SESSION_DOMAIN'),
/*
|--------------------------------------------------------------------------
| HTTPS Only Cookies
|--------------------------------------------------------------------------
|
| By setting this option to true, session cookies will only be sent back
| to the server if the browser has a HTTPS connection. This will keep
| the cookie from being sent to you when it can't be done securely.
|
*/
'secure' => env('SESSION_SECURE_COOKIE'),
/*
|--------------------------------------------------------------------------
| HTTP Access Only
|--------------------------------------------------------------------------
|
| Setting this value to true will prevent JavaScript from accessing the
| value of the cookie and the cookie will only be accessible through
| the HTTP protocol. It's unlikely you should disable this option.
|
*/
'http_only' => env('SESSION_HTTP_ONLY', true),
/*
|--------------------------------------------------------------------------
| Same-Site Cookies
|--------------------------------------------------------------------------
|
| This option determines how your cookies behave when cross-site requests
| take place, and can be used to mitigate CSRF attacks. By default, we
| will set this value to "lax" to permit secure cross-site requests.
|
| See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie#samesitesamesite-value
|
| Supported: "lax", "strict", "none", null
|
*/
'same_site' => env('SESSION_SAME_SITE', 'lax'),
/*
|--------------------------------------------------------------------------
| Partitioned Cookies
|--------------------------------------------------------------------------
|
| Setting this value to true will tie the cookie to the top-level site for
| a cross-site context. Partitioned cookies are accepted by the browser
| when flagged "secure" and the Same-Site attribute is set to "none".
|
*/
'partitioned' => env('SESSION_PARTITIONED_COOKIE', false),
];

1
database/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*.sqlite*

View File

@ -0,0 +1,44 @@
<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Str;
/**
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\User>
*/
class UserFactory extends Factory
{
/**
* The current password being used by the factory.
*/
protected static ?string $password;
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
'name' => fake()->name(),
'email' => fake()->unique()->safeEmail(),
'email_verified_at' => now(),
'password' => static::$password ??= Hash::make('password'),
'remember_token' => Str::random(10),
];
}
/**
* Indicate that the model's email address should be unverified.
*/
public function unverified(): static
{
return $this->state(fn (array $attributes) => [
'email_verified_at' => null,
]);
}
}

View File

@ -0,0 +1,53 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('users', function (Blueprint $table) {
$table->id();
$table->string('nik')->unique()->nullable();
$table->string('name');
$table->date('birth_date')->nullable();
$table->string('place_of_birth')->nullable();
$table->string('avatar_url')->nullable();
$table->string('email')->unique();
$table->timestamp('email_verified_at')->nullable();
$table->string('password');
$table->rememberToken();
$table->timestamps();
});
Schema::create('password_reset_tokens', function (Blueprint $table) {
$table->string('email')->primary();
$table->string('token');
$table->timestamp('created_at')->nullable();
});
Schema::create('sessions', function (Blueprint $table) {
$table->string('id')->primary();
$table->foreignId('user_id')->nullable()->index();
$table->string('ip_address', 45)->nullable();
$table->text('user_agent')->nullable();
$table->longText('payload');
$table->integer('last_activity')->index();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('users');
Schema::dropIfExists('password_reset_tokens');
Schema::dropIfExists('sessions');
}
};

View File

@ -0,0 +1,35 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('cache', function (Blueprint $table) {
$table->string('key')->primary();
$table->mediumText('value');
$table->integer('expiration');
});
Schema::create('cache_locks', function (Blueprint $table) {
$table->string('key')->primary();
$table->string('owner');
$table->integer('expiration');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('cache');
Schema::dropIfExists('cache_locks');
}
};

View File

@ -0,0 +1,57 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('jobs', function (Blueprint $table) {
$table->id();
$table->string('queue')->index();
$table->longText('payload');
$table->unsignedTinyInteger('attempts');
$table->unsignedInteger('reserved_at')->nullable();
$table->unsignedInteger('available_at');
$table->unsignedInteger('created_at');
});
Schema::create('job_batches', function (Blueprint $table) {
$table->string('id')->primary();
$table->string('name');
$table->integer('total_jobs');
$table->integer('pending_jobs');
$table->integer('failed_jobs');
$table->longText('failed_job_ids');
$table->mediumText('options')->nullable();
$table->integer('cancelled_at')->nullable();
$table->integer('created_at');
$table->integer('finished_at')->nullable();
});
Schema::create('failed_jobs', function (Blueprint $table) {
$table->id();
$table->string('uuid')->unique();
$table->text('connection');
$table->text('queue');
$table->longText('payload');
$table->longText('exception');
$table->timestamp('failed_at')->useCurrent();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('jobs');
Schema::dropIfExists('job_batches');
Schema::dropIfExists('failed_jobs');
}
};

View File

@ -0,0 +1,28 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('classroom', function (Blueprint $table) {
$table->id();
$table->string('name')->unique();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('classroom');
}
};

View File

@ -0,0 +1,38 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('student', function (Blueprint $table) {
$table->id();
$table->string('nis')->unique();
$table->string('name');
$table->date('date_of_birth');
$table->string('place_of_birth');
$table->foreignId('classroom_id')
->constrained('classroom')
->onDelete('cascade');
$table->foreignId('user_id')
->constrained('users')
->onDelete('cascade');
$table->string('avatar_url')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('student');
}
};

View File

@ -0,0 +1,29 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('student_activities', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->longText('description')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('student_activities');
}
};

View File

@ -0,0 +1,29 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('student_subject', function (Blueprint $table) {
$table->id();
$table->string('name')->unique();
$table->text('description')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('student_subject');
}
};

View File

@ -0,0 +1,36 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('student_growth', function (Blueprint $table) {
$table->id();
$table->foreignId('student_id')
->constrained('student')
->onDelete('cascade');
$table->foreignId('user_id')
->constrained('users')
->onDelete('cascade');
$table->string('incident');
$table->string('behavior');
$table->string('suggestion');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('student_growth');
}
};

View File

@ -0,0 +1,36 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('student_task', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->text('description');
$table->foreignId('classroom_id')
->constrained('classroom')
->onDelete('cascade');
$table->foreignId('subject_id')
->constrained('student_subject')
->onDelete('cascade');
$table->string('file')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('student_task');
}
};

View File

@ -0,0 +1,35 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('student_grade', function (Blueprint $table) {
$table->id();
$table->foreignId('student_id')
->constrained('student')
->onDelete('cascade');
$table->foreignId('task_id')
->constrained('student_task')
->onDelete('cascade');
$table->string('file')->nullable();
$table->integer('grade')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('student_grade');
}
};

View File

@ -0,0 +1,136 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
$teams = config('permission.teams');
$tableNames = config('permission.table_names');
$columnNames = config('permission.column_names');
$pivotRole = $columnNames['role_pivot_key'] ?? 'role_id';
$pivotPermission = $columnNames['permission_pivot_key'] ?? 'permission_id';
throw_if(empty($tableNames), new Exception('Error: config/permission.php not loaded. Run [php artisan config:clear] and try again.'));
throw_if($teams && empty($columnNames['team_foreign_key'] ?? null), new Exception('Error: team_foreign_key on config/permission.php not loaded. Run [php artisan config:clear] and try again.'));
Schema::create($tableNames['permissions'], static function (Blueprint $table) {
// $table->engine('InnoDB');
$table->bigIncrements('id'); // permission id
$table->string('name'); // For MyISAM use string('name', 225); // (or 166 for InnoDB with Redundant/Compact row format)
$table->string('guard_name'); // For MyISAM use string('guard_name', 25);
$table->timestamps();
$table->unique(['name', 'guard_name']);
});
Schema::create($tableNames['roles'], static function (Blueprint $table) use ($teams, $columnNames) {
// $table->engine('InnoDB');
$table->bigIncrements('id'); // role id
if ($teams || config('permission.testing')) { // permission.testing is a fix for sqlite testing
$table->unsignedBigInteger($columnNames['team_foreign_key'])->nullable();
$table->index($columnNames['team_foreign_key'], 'roles_team_foreign_key_index');
}
$table->string('name'); // For MyISAM use string('name', 225); // (or 166 for InnoDB with Redundant/Compact row format)
$table->string('guard_name'); // For MyISAM use string('guard_name', 25);
$table->timestamps();
if ($teams || config('permission.testing')) {
$table->unique([$columnNames['team_foreign_key'], 'name', 'guard_name']);
} else {
$table->unique(['name', 'guard_name']);
}
});
Schema::create($tableNames['model_has_permissions'], static function (Blueprint $table) use ($tableNames, $columnNames, $pivotPermission, $teams) {
$table->unsignedBigInteger($pivotPermission);
$table->string('model_type');
$table->unsignedBigInteger($columnNames['model_morph_key']);
$table->index([$columnNames['model_morph_key'], 'model_type'], 'model_has_permissions_model_id_model_type_index');
$table->foreign($pivotPermission)
->references('id') // permission id
->on($tableNames['permissions'])
->onDelete('cascade');
if ($teams) {
$table->unsignedBigInteger($columnNames['team_foreign_key']);
$table->index($columnNames['team_foreign_key'], 'model_has_permissions_team_foreign_key_index');
$table->primary([$columnNames['team_foreign_key'], $pivotPermission, $columnNames['model_morph_key'], 'model_type'],
'model_has_permissions_permission_model_type_primary');
} else {
$table->primary([$pivotPermission, $columnNames['model_morph_key'], 'model_type'],
'model_has_permissions_permission_model_type_primary');
}
});
Schema::create($tableNames['model_has_roles'], static function (Blueprint $table) use ($tableNames, $columnNames, $pivotRole, $teams) {
$table->unsignedBigInteger($pivotRole);
$table->string('model_type');
$table->unsignedBigInteger($columnNames['model_morph_key']);
$table->index([$columnNames['model_morph_key'], 'model_type'], 'model_has_roles_model_id_model_type_index');
$table->foreign($pivotRole)
->references('id') // role id
->on($tableNames['roles'])
->onDelete('cascade');
if ($teams) {
$table->unsignedBigInteger($columnNames['team_foreign_key']);
$table->index($columnNames['team_foreign_key'], 'model_has_roles_team_foreign_key_index');
$table->primary([$columnNames['team_foreign_key'], $pivotRole, $columnNames['model_morph_key'], 'model_type'],
'model_has_roles_role_model_type_primary');
} else {
$table->primary([$pivotRole, $columnNames['model_morph_key'], 'model_type'],
'model_has_roles_role_model_type_primary');
}
});
Schema::create($tableNames['role_has_permissions'], static function (Blueprint $table) use ($tableNames, $pivotRole, $pivotPermission) {
$table->unsignedBigInteger($pivotPermission);
$table->unsignedBigInteger($pivotRole);
$table->foreign($pivotPermission)
->references('id') // permission id
->on($tableNames['permissions'])
->onDelete('cascade');
$table->foreign($pivotRole)
->references('id') // role id
->on($tableNames['roles'])
->onDelete('cascade');
$table->primary([$pivotPermission, $pivotRole], 'role_has_permissions_permission_id_role_id_primary');
});
app('cache')
->store(config('permission.cache.store') != 'default' ? config('permission.cache.store') : null)
->forget(config('permission.cache.key'));
}
/**
* Reverse the migrations.
*/
public function down(): void
{
$tableNames = config('permission.table_names');
if (empty($tableNames)) {
throw new \Exception('Error: config/permission.php not found and defaults could not be merged. Please publish the package configuration before proceeding, or drop the tables manually.');
}
Schema::drop($tableNames['role_has_permissions']);
Schema::drop($tableNames['model_has_roles']);
Schema::drop($tableNames['model_has_permissions']);
Schema::drop($tableNames['roles']);
Schema::drop($tableNames['permissions']);
}
};

View File

@ -0,0 +1,23 @@
<?php
namespace Database\Seeders;
use App\Models\User;
// use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*/
public function run(): void
{
// User::factory(10)->create();
User::factory()->create([
'name' => 'Test User',
'email' => 'test@example.com',
]);
}
}

229
lang/id.json Normal file
View File

@ -0,0 +1,229 @@
{
"(and :count more error)": "(dan :count kesalahan lainnya)",
"(and :count more errors)": "(dan :count kesalahan lainnya)|(dan :count kesalahan lainnya)|(dan :count kesalahan lainnya)",
"A decryption key is required.": "Kunci dekripsi diperlukan.",
"A Timeout Occurred": "Terjadi Timeout",
"Accept": "Menerima",
"Accepted": "Diterima",
"Action": "Aksi",
"Actions": "Aksi",
"Add": "Tambah",
"Add :name": "Tambahkan :name",
"Admin": "Admin",
"Agree": "Setuju",
"All rights reserved.": "Hak Cipta Dilindungi.",
"Already Reported": "Sudah dilaporkan",
"Archive": "Arsip",
"Assign": "Menetapkan",
"Associate": "Rekan",
"Attach": "Lampirkan",
"Bad Gateway": "Gateway buruk",
"Bad Request": "Permintaan yang buruk",
"Bandwidth Limit Exceeded": "Batas Bandwidth terlampaui",
"Browse": "Jelajahi",
"Cancel": "Batal",
"Choose": "Pilih",
"Choose :name": "Pilih :name",
"Choose File": "Pilih Berkas",
"Choose Image": "Pilih Gambar",
"Click to copy": "Klik untuk menyalin",
"Client Closed Request": "Permintaan ditutup klien",
"Close": "Tutup",
"Collapse": "Runtuh",
"Collapse All": "Ciutkan Semua",
"Comment": "Komentar",
"Confirm": "Konfirmasi",
"Conflict": "Konflik",
"Connect": "Menghubung",
"Connection Closed Without Response": "Koneksi Ditutup Tanpa Respon",
"Connection Timed Out": "Waktu koneksi berakhir",
"Continue": "Lanjut",
"Create": "Buat",
"Create :name": "Buat :name",
"Created": "Dibuat",
"Delete": "Hapus",
"Delete :name": "Hapus :name",
"Detach": "Melepaskan",
"Details": "Detail",
"Disable": "Matikan",
"Discard": "Membuang",
"Done": "Selesai",
"Down": "Turun",
"Duplicate": "Duplikat",
"Duplicate :name": "Duplikat: nama",
"Edit": "Sunting",
"Edit :name": "Sunting :name",
"Enable": "Nyalakan",
"Encrypted environment file already exists.": "Enkripsi file environment sudah ada.",
"Encrypted environment file not found.": "Enkripsi file environment tidak ditemukan.",
"Environment file already exists.": "File environment sudah ada.",
"Environment file not found.": "file environment tidak ditemukan.",
"errors": "kesalahan",
"Expand": "Memperluas",
"Expand All": "Melebarkan semua",
"Expectation Failed": "Ekspetasi gagal",
"Explanation": "Penjelasan",
"Export": "Ekspor",
"Export :name": "Export :name",
"Failed Dependency": "Dependensi gagal",
"File": "Mengajukan",
"Files": "File",
"Forbidden": "Dilarang",
"Found": "Ditemukan",
"Gateway Timeout": "Gateway waktu habis",
"Go Home": "Ke Halaman Utama",
"Go to page :page": "Ke halaman :page",
"Gone": "Hilang",
"Hello!": "Halo!",
"Hide": "Bersembunyi",
"Hide :name": "Sembunyikan :name",
"Home": "Rumah",
"HTTP Version Not Supported": "Versi HTTP tidak mendukung",
"I'm a teapot": "Saya teko",
"If you did not create an account, no further action is required.": "Jika Anda tidak membuat akun, Anda tidak perlu melakukan apapun.",
"If you did not request a password reset, no further action is required.": "Jika Anda tidak meminta pengaturan ulang kata sandi, Anda tidak perlu melakukan apapun.",
"If you're having trouble clicking the \":actionText\" button, copy and paste the URL below\ninto your web browser:": "Jika Anda mengalami kesulitan mengklik tombol \":actionText\", salin dan tempel URL di bawah\nke browser web Anda:",
"IM Used": "IM Digunakan",
"Image": "Gambar",
"Impersonate": "Penyamaran",
"Impersonation": "Peniruan",
"Import": "Impor",
"Import :name": "Impor :name",
"Insufficient Storage": "Penyimpanan tidak cukup",
"Internal Server Error": "Kesalahan dari dalam server",
"Introduction": "Perkenalan",
"Invalid filename.": "Nama file tidak valid.",
"Invalid JSON was returned from the route.": "JSON yang tidak valid dikembalikan dari rute.",
"Invalid SSL Certificate": "Sertifikat SSL tidak sah",
"length": "panjang",
"Length Required": "Panjang diperlukan",
"Like": "Menyukai",
"Load": "Memuat",
"Localize": "Melokalisir",
"Location": "Lokasi",
"Locked": "Terkunci",
"Log In": "Masuk",
"Log Out": "Keluar",
"Login": "Masuk",
"Logout": "Keluar",
"Loop Detected": "Terdeteksi perulangan",
"Maintenance Mode": "Mode pemeliharaan",
"Method Not Allowed": "Metode tidak diizinkan",
"Misdirected Request": "Permintaan salah arah",
"Moved Permanently": "Pengalihan permanen",
"Multi-Status": "Status ganda",
"Multiple Choices": "Pilihan ganda",
"Network Authentication Required": "Otentikasi jaringan diperlukan",
"Network Connect Timeout Error": "Network Connect Timeout gagal",
"Network Read Timeout Error": "Network Read Timeout gagal",
"New": "Baru",
"New :name": "Baru :name",
"No": "Tidak",
"No Content": "Tidak ada konten",
"Non-Authoritative Information": "Informasi Non-Otoritatif",
"Not Acceptable": "Tidak dapat diterima",
"Not Extended": "Tidak diperpanjang",
"Not Found": "Tidak ditemukan",
"Not Implemented": "Tidak dilaksanakan",
"Not Modified": "Tidak dimodifikasi",
"of": "dari",
"OK": "OKE",
"Open": "Membuka",
"Open in a current window": "Buka di jendela saat ini",
"Open in a new window": "Buka di jendela baru",
"Open in a parent frame": "Buka di bingkai induk",
"Open in the topmost frame": "Buka di bingkai paling atas",
"Open on the website": "Buka di situs web",
"Origin Is Unreachable": "Asal tidak terjangkau",
"Page Expired": "Halaman Kadaluwarsa",
"Pagination Navigation": "Navigasi Paginasi",
"Partial Content": "Konten parsial",
"Payload Too Large": "Payload terlalu besar",
"Payment Required": "Pembayaran Diperlukan",
"Permanent Redirect": "Pengalihan permanen",
"Please click the button below to verify your email address.": "Silakan klik tombol di bawah untuk memverifikasi alamat surel Anda.",
"Precondition Failed": "Prasyarat Gagal",
"Precondition Required": "Prasyarat diperlukan",
"Preview": "Pratinjau",
"Price": "Harga",
"Processing": "Memproses",
"Proxy Authentication Required": "Otentikasi proksi diperlukan",
"Railgun Error": "Kesalahan Railgun",
"Range Not Satisfiable": "Rentang Tidak Memuaskan",
"Record": "Catatan",
"Regards,": "Salam,",
"Register": "Daftar",
"Request Header Fields Too Large": "Bidang permintaan Header terlalu besar",
"Request Timeout": "Permintaan waktu habis",
"Reset Content": "Setel ulang konten",
"Reset Password": "Atur Ulang Kata Sandi",
"Reset Password Notification": "Pemberitahuan Pengaturan Ulang Kata Sandi",
"Restore": "Pulihkan",
"Restore :name": "Pulihkan :name",
"results": "hasil",
"Retry With": "Coba lagi dengan",
"Save": "Simpan",
"Save & Close": "Simpan & Tutup",
"Save & Return": "Simpan & Kembalikan",
"Save :name": "Hemat :name",
"Search": "Cari",
"Search :name": "Pencarian :name",
"See Other": "Lihat lainnya",
"Select": "Pilih",
"Select All": "Pilih Semua",
"Send": "Mengirim",
"Server Error": "Terjadi Kesalahan Server",
"Service Unavailable": "Layanan Tidak Tersedia",
"Session Has Expired": "Sesi telah berakhir",
"Settings": "Pengaturan",
"Show": "Menunjukkan",
"Show :name": "Tampilkan :name",
"Show All": "Tunjukkan semua",
"Showing": "Menampilkan",
"Sign In": "Masuk",
"Solve": "Menyelesaikan",
"SSL Handshake Failed": "Jabat tangan SSL gagal",
"Start": "Awal",
"Stop": "Berhenti",
"Submit": "Kirim",
"Subscribe": "Langganan",
"Switch": "Mengalihkan",
"Switch To Role": "Beralih Ke Peran",
"Switching Protocols": "Beralih protokol",
"Tag": "Menandai",
"Tags": "Tag",
"Temporary Redirect": "Pengalihan temporer",
"The given data was invalid.": "Data yang diberikan tidak valid.",
"The response is not a streamed response.": "Responsnya bukan respons yang dialirkan.",
"The response is not a view.": "Responsnya bukanlah pandangan.",
"This action is unauthorized.": "Tindakan ini tidak sah.",
"This password reset link will expire in :count minutes.": "Tautan pengaturan ulang kata sandi ini akan kedaluwarsa dalam :count menit.",
"to": "kepada",
"Toggle navigation": "Alihkan navigasi",
"Too Early": "Terlalu dini",
"Too Many Requests": "Terlalu Banyak Permintaan",
"Translate": "Menerjemahkan",
"Translate It": "Terjemahkan",
"Unauthorized": "Tidak Diizinkan",
"Unavailable For Legal Reasons": "Tidak Tersedia Karena Alasan Hukum",
"Unknown Error": "Error tidak diketahui",
"Unpack": "Membongkar",
"Unprocessable Entity": "Entitas yang tidak dapat diproses",
"Unsubscribe": "Berhenti berlangganan",
"Unsupported Media Type": "Tipe media tidak mendukung",
"Up": "Ke atas",
"Update": "Perbarui",
"Update :name": "Pembaruan :name",
"Upgrade Required": "Diperlukan Peningkatan",
"URI Too Long": "URI terlalu panjang",
"Use Proxy": "Memakai Proxy",
"User": "Pengguna",
"Variant Also Negotiates": "Varian Juga Nego",
"Verify Email Address": "Verifikasi Alamat Surel",
"View": "Tampilan",
"View :name": "Lihat :name",
"Web Server is Down": "Web server sedang turun",
"Whoops!": "Aduh!",
"Yes": "Ya",
"You are receiving this email because we received a password reset request for your account.": "Anda menerima surel ini karena kami menerima permintaan pengaturan ulang kata sandi untuk akun anda."
}

119
lang/id/actions.php Normal file
View File

@ -0,0 +1,119 @@
<?php
declare(strict_types=1);
return [
'accept' => 'Menerima',
'action' => 'Tindakan',
'actions' => 'Tindakan',
'add' => 'Menambahkan',
'admin' => 'Admin',
'agree' => 'Setuju',
'archive' => 'Arsip',
'assign' => 'Menetapkan',
'associate' => 'Rekan',
'attach' => 'Menempel',
'browse' => 'Jelajahi',
'cancel' => 'Membatalkan',
'choose' => 'Memilih',
'choose_file' => 'Pilih File',
'choose_image' => 'Pilih Gambar',
'click_to_copy' => 'Klik untuk menyalin',
'close' => 'Menutup',
'collapse' => 'Runtuh',
'collapse_all' => 'Ciutkan Semua',
'comment' => 'Komentar',
'confirm' => 'Mengonfirmasi',
'connect' => 'Menghubung',
'create' => 'Membuat',
'delete' => 'Menghapus',
'detach' => 'Melepaskan',
'details' => 'Detail',
'disable' => 'Cacat',
'discard' => 'Membuang',
'done' => 'Selesai',
'down' => 'Turun',
'duplicate' => 'Duplikat',
'edit' => 'Sunting',
'enable' => 'Memungkinkan',
'expand' => 'Memperluas',
'expand_all' => 'Melebarkan semua',
'explanation' => 'Penjelasan',
'export' => 'Ekspor',
'file' => 'Mengajukan',
'files' => 'File',
'go_home' => 'Pulang ke rumah',
'hide' => 'Bersembunyi',
'home' => 'Rumah',
'image' => 'Gambar',
'impersonate' => 'Menirukan',
'impersonation' => 'Peniruan',
'import' => 'Impor',
'introduction' => 'Perkenalan',
'like' => 'Menyukai',
'load' => 'Memuat',
'localize' => 'Melokalisir',
'log_in' => 'Gabung',
'log_out' => 'Keluar',
'named' => [
'add' => 'Tambahkan :name',
'choose' => 'Pilih :name',
'create' => 'Buat :name',
'delete' => 'Hapus :name',
'duplicate' => 'Duplikat: nama',
'edit' => 'Sunting :name',
'export' => 'Export :name',
'hide' => 'Sembunyikan :name',
'import' => 'Impor :name',
'new' => 'Baru :name',
'restore' => 'Pulihkan :name',
'save' => 'Hemat :name',
'search' => 'Pencarian :name',
'show' => 'Tampilkan :name',
'update' => 'Pembaruan :name',
'view' => 'Lihat :name',
],
'new' => 'Baru',
'no' => 'TIDAK',
'open' => 'Membuka',
'open_website' => 'Buka di situs web',
'preview' => 'Pratinjau',
'price' => 'Harga',
'record' => 'Catatan',
'restore' => 'Memulihkan',
'save' => 'Menyimpan',
'save_and_close' => 'Simpan & Tutup',
'save_and_return' => 'Simpan & Kembalikan',
'search' => 'Mencari',
'select' => 'Pilih',
'select_all' => 'Pilih Semua',
'send' => 'Mengirim',
'settings' => 'Pengaturan',
'show' => 'Menunjukkan',
'show_all' => 'Tunjukkan semua',
'sign_in' => 'Masuk',
'solve' => 'Menyelesaikan',
'start' => 'Awal',
'stop' => 'Berhenti',
'submit' => 'Kirim',
'subscribe' => 'Langganan',
'switch' => 'Mengalihkan',
'switch_to_role' => 'Beralih Ke Peran',
'tag' => 'Menandai',
'tags' => 'Tag',
'target_link' => [
'blank' => 'Buka di jendela baru',
'parent' => 'Buka di bingkai induk',
'self' => 'Buka di jendela saat ini',
'top' => 'Buka di bingkai paling atas',
],
'translate' => 'Menerjemahkan',
'translate_it' => 'Terjemahkan',
'unpack' => 'Membongkar',
'unsubscribe' => 'Berhenti berlangganan',
'up' => 'Ke atas',
'update' => 'Memperbarui',
'user' => 'Pengguna',
'view' => 'Melihat',
'yes' => 'Ya',
];

9
lang/id/auth.php Normal file
View File

@ -0,0 +1,9 @@
<?php
declare(strict_types=1);
return [
'failed' => 'Identitas tersebut tidak cocok dengan data kami.',
'password' => 'Kata sandi salah.',
'throttle' => 'Terlalu banyak upaya masuk. Silahkan coba lagi dalam :seconds detik.',
];

84
lang/id/http-statuses.php Normal file
View File

@ -0,0 +1,84 @@
<?php
declare(strict_types=1);
return [
'0' => 'Error tidak diketahui',
'100' => 'Lanjut',
'101' => 'Beralih protokol',
'102' => 'Memproses',
'200' => 'OKE',
'201' => 'Dibuat',
'202' => 'Diterima',
'203' => 'Informasi Non-Otoritatif',
'204' => 'Tidak ada konten',
'205' => 'Setel ulang konten',
'206' => 'Konten parsial',
'207' => 'Status ganda',
'208' => 'Sudah dilaporkan',
'226' => 'IM Digunakan',
'300' => 'Pilihan ganda',
'301' => 'Pengalihan permanen',
'302' => 'Ditemukan',
'303' => 'Lihat lainnya',
'304' => 'Tidak dimodifikasi',
'305' => 'Memakai Proxy',
'307' => 'Pengalihan temporer',
'308' => 'Pengalihan permanen',
'400' => 'Permintaan yang buruk',
'401' => 'Tidak sah',
'402' => 'Pembayaran diperlukan',
'403' => 'Terlarang',
'404' => 'Tidak ditemukan',
'405' => 'Metode tidak diizinkan',
'406' => 'Tidak dapat diterima',
'407' => 'Otentikasi proksi diperlukan',
'408' => 'Permintaan waktu habis',
'409' => 'Konflik',
'410' => 'Hilang',
'411' => 'Panjang diperlukan',
'412' => 'Prasyarat Gagal',
'413' => 'Payload terlalu besar',
'414' => 'URI terlalu panjang',
'415' => 'Tipe media tidak mendukung',
'416' => 'Rentang Tidak Memuaskan',
'417' => 'Ekspetasi gagal',
'418' => 'Saya teko',
'419' => 'Sesi telah berakhir',
'421' => 'Permintaan salah arah',
'422' => 'Entitas yang tidak dapat diproses',
'423' => 'Terkunci',
'424' => 'Dependensi gagal',
'425' => 'Terlalu dini',
'426' => 'Diperlukan Peningkatan',
'428' => 'Prasyarat diperlukan',
'429' => 'Terlalu banyak permintaan',
'431' => 'Bidang permintaan Header terlalu besar',
'444' => 'Koneksi Ditutup Tanpa Respon',
'449' => 'Coba lagi dengan',
'451' => 'Tidak Tersedia Karena Alasan Hukum',
'499' => 'Permintaan ditutup klien',
'500' => 'Kesalahan dari dalam server',
'501' => 'Tidak dilaksanakan',
'502' => 'Gateway buruk',
'503' => 'Mode pemeliharaan',
'504' => 'Gateway waktu habis',
'505' => 'Versi HTTP tidak mendukung',
'506' => 'Varian Juga Nego',
'507' => 'Penyimpanan tidak cukup',
'508' => 'Terdeteksi perulangan',
'509' => 'Batas Bandwidth terlampaui',
'510' => 'Tidak diperpanjang',
'511' => 'Otentikasi jaringan diperlukan',
'520' => 'Error tidak diketahui',
'521' => 'Web server sedang turun',
'522' => 'Waktu koneksi berakhir',
'523' => 'Asal tidak terjangkau',
'524' => 'Terjadi Timeout',
'525' => 'Jabat tangan SSL gagal',
'526' => 'Sertifikat SSL tidak sah',
'527' => 'Kesalahan Railgun',
'598' => 'Network Read Timeout gagal',
'599' => 'Network Connect Timeout gagal',
'unknownError' => 'Error tidak diketahui',
];

8
lang/id/pagination.php Normal file
View File

@ -0,0 +1,8 @@
<?php
declare(strict_types=1);
return [
'next' => 'Berikutnya &raquo;',
'previous' => '&laquo; Sebelumnya',
];

11
lang/id/passwords.php Normal file
View File

@ -0,0 +1,11 @@
<?php
declare(strict_types=1);
return [
'reset' => 'Kata sandi Anda sudah direset!',
'sent' => 'Kami sudah mengirim surel yang berisi tautan untuk mereset kata sandi Anda!',
'throttled' => 'Harap tunggu sebelum mencoba lagi.',
'token' => 'Token pengaturan ulang kata sandi tidak sah.',
'user' => 'Kami tidak dapat menemukan pengguna dengan alamat surel tersebut.',
];

283
lang/id/validation.php Normal file
View File

@ -0,0 +1,283 @@
<?php
declare(strict_types=1);
return [
'accepted' => ':Attribute harus diterima.',
'accepted_if' => ':Attribute harus diterima ketika :other berisi :value.',
'active_url' => ':Attribute bukan URL yang valid.',
'after' => ':Attribute harus berisi tanggal setelah :date.',
'after_or_equal' => ':Attribute harus berisi tanggal setelah atau sama dengan :date.',
'alpha' => ':Attribute hanya boleh berisi huruf.',
'alpha_dash' => ':Attribute hanya boleh berisi huruf, angka, strip, dan garis bawah.',
'alpha_num' => ':Attribute hanya boleh berisi huruf dan angka.',
'any_of' => 'Bidang :attribute tidak valid.',
'array' => ':Attribute harus berisi sebuah array.',
'ascii' => ':Attribute hanya boleh berisi karakter dan simbol alfanumerik single-byte.',
'before' => ':Attribute harus berisi tanggal sebelum :date.',
'before_or_equal' => ':Attribute harus berisi tanggal sebelum atau sama dengan :date.',
'between' => [
'array' => ':Attribute harus memiliki :min sampai :max anggota.',
'file' => ':Attribute harus berukuran antara :min sampai :max kilobita.',
'numeric' => ':Attribute harus bernilai antara :min sampai :max.',
'string' => ':Attribute harus berisi antara :min sampai :max karakter.',
],
'boolean' => ':Attribute harus bernilai true atau false',
'can' => 'Bidang :attribute berisi nilai yang tidak sah.',
'confirmed' => 'Konfirmasi :attribute tidak cocok.',
'contains' => 'Bidang :attribute tidak memiliki nilai yang diperlukan.',
'current_password' => 'Kata sandi salah.',
'date' => ':Attribute bukan tanggal yang valid.',
'date_equals' => ':Attribute harus berisi tanggal yang sama dengan :date.',
'date_format' => ':Attribute tidak cocok dengan format :format.',
'decimal' => ':Attribute harus memiliki :decimal tempat desimal.',
'declined' => ':Attribute ini harus ditolak.',
'declined_if' => ':Attribute ini harus ditolak ketika :other bernilai :value.',
'different' => ':Attribute dan :other harus berbeda.',
'digits' => ':Attribute harus terdiri dari :digits angka.',
'digits_between' => ':Attribute harus terdiri dari :min sampai :max angka.',
'dimensions' => ':Attribute tidak memiliki dimensi gambar yang valid.',
'distinct' => ':Attribute memiliki nilai yang duplikat.',
'doesnt_end_with' => ':Attribute tidak boleh diakhiri dengan salah satu dari berikut ini: :values.',
'doesnt_start_with' => ':Attribute tidak boleh dimulai dengan salah satu dari berikut ini: :values.',
'email' => ':Attribute harus berupa alamat surel yang valid.',
'ends_with' => ':Attribute harus diakhiri salah satu dari berikut: :values',
'enum' => ':Attribute yang dipilih tidak valid.',
'exists' => ':Attribute yang dipilih tidak valid.',
'extensions' => 'Bidang :attribute harus memiliki salah satu ekstensi berikut: :values.',
'file' => ':Attribute harus berupa sebuah berkas.',
'filled' => ':Attribute harus memiliki nilai.',
'gt' => [
'array' => ':Attribute harus memiliki lebih dari :value anggota.',
'file' => ':Attribute harus berukuran lebih besar dari :value kilobita.',
'numeric' => ':Attribute harus bernilai lebih besar dari :value.',
'string' => ':Attribute harus berisi lebih besar dari :value karakter.',
],
'gte' => [
'array' => ':Attribute harus terdiri dari :value anggota atau lebih.',
'file' => ':Attribute harus berukuran lebih besar dari atau sama dengan :value kilobita.',
'numeric' => ':Attribute harus bernilai lebih besar dari atau sama dengan :value.',
'string' => ':Attribute harus berisi lebih besar dari atau sama dengan :value karakter.',
],
'hex_color' => 'Bidang :attribute harus berupa warna heksadesimal yang valid.',
'image' => ':Attribute harus berupa gambar.',
'in' => ':Attribute yang dipilih tidak valid.',
'in_array' => ':Attribute tidak ada di dalam :other.',
'integer' => ':Attribute harus berupa bilangan bulat.',
'ip' => ':Attribute harus berupa alamat IP yang valid.',
'ipv4' => ':Attribute harus berupa alamat IPv4 yang valid.',
'ipv6' => ':Attribute harus berupa alamat IPv6 yang valid.',
'json' => ':Attribute harus berupa JSON string yang valid.',
'list' => 'Bidang :attribute harus berupa daftar.',
'lowercase' => ':Attribute harus berupa huruf kecil.',
'lt' => [
'array' => ':Attribute harus memiliki kurang dari :value anggota.',
'file' => ':Attribute harus berukuran kurang dari :value kilobita.',
'numeric' => ':Attribute harus bernilai kurang dari :value.',
'string' => ':Attribute harus berisi kurang dari :value karakter.',
],
'lte' => [
'array' => ':Attribute harus tidak lebih dari :value anggota.',
'file' => ':Attribute harus berukuran kurang dari atau sama dengan :value kilobita.',
'numeric' => ':Attribute harus bernilai kurang dari atau sama dengan :value.',
'string' => ':Attribute harus berisi kurang dari atau sama dengan :value karakter.',
],
'mac_address' => ':Attribute harus berupa alamat MAC yang valid.',
'max' => [
'array' => ':Attribute maksimal terdiri dari :max anggota.',
'file' => ':Attribute maksimal berukuran :max kilobita.',
'numeric' => ':Attribute maksimal bernilai :max.',
'string' => ':Attribute maksimal berisi :max karakter.',
],
'max_digits' => ':Attribute tidak boleh memiliki lebih dari :max digit.',
'mimes' => ':Attribute harus berupa berkas berjenis: :values.',
'mimetypes' => ':Attribute harus berupa berkas berjenis: :values.',
'min' => [
'array' => ':Attribute minimal terdiri dari :min anggota.',
'file' => ':Attribute minimal berukuran :min kilobita.',
'numeric' => ':Attribute minimal bernilai :min.',
'string' => ':Attribute minimal berisi :min karakter.',
],
'min_digits' => ':Attribute tidak boleh memiliki kurang dari :min digit.',
'missing' => 'Bidang :attribute harus hilang.',
'missing_if' => 'Bidang :attribute harus hilang ketika :other adalah :value.',
'missing_unless' => 'Bidang :attribute harus hilang kecuali :other adalah :value.',
'missing_with' => 'Kolom :attribute harus hilang saat ada :values.',
'missing_with_all' => 'Kolom :attribute harus hilang jika ada :values.',
'multiple_of' => ':Attribute harus merupakan kelipatan dari :value',
'not_in' => ':Attribute yang dipilih tidak valid.',
'not_regex' => 'Format :attribute tidak valid.',
'numeric' => ':Attribute harus berupa angka.',
'password' => [
'letters' => ':Attribute ini harus memiliki setidaknya satu karakter.',
'mixed' => ':Attribute ini harus memiliki setidaknya satu huruf kapital dan satu huruf kecil.',
'numbers' => ':Attribute ini harus memiliki setidaknya satu angka.',
'symbols' => ':Attribute ini harus memiliki setidaknya satu simbol.',
'uncompromised' => ':Attribute ini telah muncul di kebocoran data. Silahkan memilih :attribute yang berbeda.',
],
'present' => ':Attribute wajib ada.',
'present_if' => 'Bidang :attribute harus ada ketika :other adalah :value.',
'present_unless' => 'Bidang :attribute harus ada kecuali :other adalah :value.',
'present_with' => 'Bidang :attribute harus ada bila ada :values.',
'present_with_all' => 'Bidang :attribute harus ada ketika ada :values.',
'prohibited' => ':Attribute tidak boleh ada.',
'prohibited_if' => ':Attribute tidak boleh ada bila :other adalah :value.',
'prohibited_if_accepted' => ':attribute bidang dilarang ketika :other diterima.',
'prohibited_if_declined' => ':attribute bidang dilarang ketika :other ditolak.',
'prohibited_unless' => ':Attribute tidak boleh ada kecuali :other memiliki nilai :values.',
'prohibits' => ':Attribute melarang isian :other untuk ditampilkan.',
'regex' => 'Format :attribute tidak valid.',
'required' => ':Attribute wajib diisi.',
'required_array_keys' => ':Attribute wajib berisi entri untuk: :values.',
'required_if' => ':Attribute wajib diisi bila :other adalah :value.',
'required_if_accepted' => ':Attribute wajib diisi bila :other sesuai.',
'required_if_declined' => 'Bidang :attribute wajib diisi bila :other ditolak.',
'required_unless' => ':Attribute wajib diisi kecuali :other memiliki nilai :values.',
'required_with' => ':Attribute wajib diisi bila terdapat :values.',
'required_with_all' => ':Attribute wajib diisi bila terdapat :values.',
'required_without' => ':Attribute wajib diisi bila tidak terdapat :values.',
'required_without_all' => ':Attribute wajib diisi bila sama sekali tidak terdapat :values.',
'same' => ':Attribute dan :other harus sama.',
'size' => [
'array' => ':Attribute harus mengandung :size anggota.',
'file' => ':Attribute harus berukuran :size kilobyte.',
'numeric' => ':Attribute harus berukuran :size.',
'string' => ':Attribute harus berukuran :size karakter.',
],
'starts_with' => ':Attribute harus diawali salah satu dari berikut: :values',
'string' => ':Attribute harus berupa string.',
'timezone' => ':Attribute harus berisi zona waktu yang valid.',
'ulid' => ':Attribute harus merupakan ULID yang valid.',
'unique' => ':Attribute sudah ada sebelumnya.',
'uploaded' => ':Attribute gagal diunggah.',
'uppercase' => ':Attribute harus berupa huruf kapital.',
'url' => 'Format :attribute tidak valid.',
'uuid' => ':Attribute harus merupakan UUID yang valid.',
'attributes' => [
'address' => 'alamat',
'affiliate_url' => 'URL afiliasi',
'age' => 'usia',
'amount' => 'jumlah',
'announcement' => 'pengumuman',
'area' => 'daerah',
'audience_prize' => 'hadiah penonton',
'audience_winner' => 'audience winner',
'available' => 'tersedia',
'birthday' => 'hari ulang tahun',
'body' => 'badan',
'city' => 'kota',
'company' => 'company',
'compilation' => 'kompilasi',
'concept' => 'konsep',
'conditions' => 'kondisi',
'content' => 'konten',
'contest' => 'contest',
'country' => 'negara',
'cover' => 'menutupi',
'created_at' => 'dibuat di',
'creator' => 'pencipta',
'currency' => 'mata uang',
'current_password' => 'kata sandi saat ini',
'customer' => 'pelanggan',
'date' => 'tanggal',
'date_of_birth' => 'tanggal lahir',
'dates' => 'tanggal',
'day' => 'hari',
'deleted_at' => 'dihapus pada',
'description' => 'deskripsi',
'display_type' => 'tipe tampilan',
'district' => 'daerah',
'duration' => 'durasi',
'email' => 'surel',
'excerpt' => 'kutipan',
'filter' => 'Saring',
'finished_at' => 'selesai pada',
'first_name' => 'nama depan',
'gender' => 'jenis kelamin',
'grand_prize' => 'hadiah utama',
'group' => 'kelompok',
'hour' => 'jam',
'image' => 'gambar',
'image_desktop' => 'gambar desktop',
'image_main' => 'gambar utama',
'image_mobile' => 'gambar seluler',
'images' => 'gambar-gambar',
'is_audience_winner' => 'adalah pemenang penonton',
'is_hidden' => 'tersembunyi',
'is_subscribed' => 'berlangganan',
'is_visible' => 'terlihat',
'is_winner' => 'adalah pemenang',
'items' => 'item',
'key' => 'kunci',
'last_name' => 'nama belakang',
'lesson' => 'pelajaran',
'line_address_1' => 'alamat baris 1',
'line_address_2' => 'alamat baris 2',
'login' => 'Gabung',
'message' => 'pesan',
'middle_name' => 'nama tengah',
'minute' => 'menit',
'mobile' => 'seluler',
'month' => 'bulan',
'name' => 'nama',
'national_code' => 'kode nasional',
'number' => 'nomor',
'password' => 'kata sandi',
'password_confirmation' => 'konfirmasi kata sandi',
'phone' => 'telepon',
'photo' => 'foto',
'portfolio' => 'portofolio',
'postal_code' => 'kode Pos',
'preview' => 'pratinjau',
'price' => 'harga',
'product_id' => 'ID Produk',
'product_uid' => 'UID produk',
'product_uuid' => 'UUID produk',
'promo_code' => 'Kode promosi',
'province' => 'propinsi',
'quantity' => 'kuantitas',
'reason' => 'alasan',
'recaptcha_response_field' => 'bidang respons recaptcha',
'referee' => 'wasit',
'referees' => 'wasit',
'reject_reason' => 'menolak alasan',
'remember' => 'ingat',
'restored_at' => 'dipulihkan pada',
'result_text_under_image' => 'teks hasil di bawah gambar',
'role' => 'peran',
'rule' => 'aturan',
'rules' => 'aturan',
'second' => 'detik',
'sex' => 'jenis kelamin',
'shipment' => 'pengiriman',
'short_text' => 'teks pendek',
'size' => 'ukuran',
'skills' => 'keterampilan',
'slug' => 'siput',
'specialization' => 'spesialisasi',
'started_at' => 'dimulai pada',
'state' => 'negara',
'status' => 'status',
'street' => 'jalan',
'student' => 'siswa',
'subject' => 'subyek',
'tag' => 'menandai',
'tags' => 'tag',
'teacher' => 'guru',
'terms' => 'ketentuan',
'test_description' => 'deskripsi tes',
'test_locale' => 'uji lokal',
'test_name' => 'nama tes',
'text' => 'teks',
'time' => 'waktu',
'title' => 'judul',
'type' => 'jenis',
'updated_at' => 'diperbarui pada',
'user' => 'pengguna',
'username' => 'nama pengguna',
'value' => 'nilai',
'winner' => 'winner',
'work' => 'work',
'year' => 'tahun',
],
];

16
package.json Normal file
View File

@ -0,0 +1,16 @@
{
"private": true,
"type": "module",
"scripts": {
"build": "vite build",
"dev": "vite"
},
"devDependencies": {
"@tailwindcss/vite": "^4.0.0",
"axios": "^1.8.2",
"concurrently": "^9.0.1",
"laravel-vite-plugin": "^1.2.0",
"tailwindcss": "^4.0.0",
"vite": "^6.2.4"
}
}

33
phpunit.xml Normal file
View File

@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true"
>
<testsuites>
<testsuite name="Unit">
<directory>tests/Unit</directory>
</testsuite>
<testsuite name="Feature">
<directory>tests/Feature</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory>app</directory>
</include>
</source>
<php>
<env name="APP_ENV" value="testing"/>
<env name="APP_MAINTENANCE_DRIVER" value="file"/>
<env name="BCRYPT_ROUNDS" value="4"/>
<env name="CACHE_STORE" value="array"/>
<env name="DB_CONNECTION" value="sqlite"/>
<env name="DB_DATABASE" value=":memory:"/>
<env name="MAIL_MAILER" value="array"/>
<env name="PULSE_ENABLED" value="false"/>
<env name="QUEUE_CONNECTION" value="sync"/>
<env name="SESSION_DRIVER" value="array"/>
<env name="TELESCOPE_ENABLED" value="false"/>
</php>
</phpunit>

25
public/.htaccess Normal file
View File

@ -0,0 +1,25 @@
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
</IfModule>
RewriteEngine On
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
# Handle X-XSRF-Token Header
RewriteCond %{HTTP:x-xsrf-token} .
RewriteRule .* - [E=HTTP_X_XSRF_TOKEN:%{HTTP:X-XSRF-Token}]
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]
# Send Requests To Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
.fi-pagination-items,.fi-pagination-overview,.fi-pagination-records-per-page-select:not(.fi-compact){display:none}@supports (container-type:inline-size){.fi-pagination{container-type:inline-size}@container (min-width: 28rem){.fi-pagination-records-per-page-select.fi-compact{display:none}.fi-pagination-records-per-page-select:not(.fi-compact){display:inline}}@container (min-width: 56rem){.fi-pagination:not(.fi-simple)>.fi-pagination-previous-btn{display:none}.fi-pagination-overview{display:inline}.fi-pagination:not(.fi-simple)>.fi-pagination-next-btn{display:none}.fi-pagination-items{display:flex}}}@supports not (container-type:inline-size){@media (min-width:640px){.fi-pagination-records-per-page-select.fi-compact{display:none}.fi-pagination-records-per-page-select:not(.fi-compact){display:inline}}@media (min-width:768px){.fi-pagination:not(.fi-simple)>.fi-pagination-previous-btn{display:none}.fi-pagination-overview{display:inline}.fi-pagination:not(.fi-simple)>.fi-pagination-next-btn{display:none}.fi-pagination-items{display:flex}}}.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{background-color:#333;border-radius:4px;color:#fff;font-size:14px;line-height:1.4;outline:0;position:relative;transition-property:transform,visibility,opacity;white-space:normal}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{border-top-color:initial;border-width:8px 8px 0;bottom:-7px;left:0;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:initial;border-width:0 8px 8px;left:0;top:-7px;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-left-color:initial;border-width:8px 0 8px 8px;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{border-right-color:initial;border-width:8px 8px 8px 0;left:-7px;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{color:#333;height:16px;width:16px}.tippy-arrow:before{border-color:transparent;border-style:solid;content:"";position:absolute}.tippy-content{padding:5px 9px;position:relative;z-index:1}.tippy-box[data-theme~=light]{background-color:#fff;box-shadow:0 0 20px 4px #9aa1b126,0 4px 80px -8px #24282f40,0 4px 4px -2px #5b5e6926;color:#26323d}.tippy-box[data-theme~=light][data-placement^=top]>.tippy-arrow:before{border-top-color:#fff}.tippy-box[data-theme~=light][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#fff}.tippy-box[data-theme~=light][data-placement^=left]>.tippy-arrow:before{border-left-color:#fff}.tippy-box[data-theme~=light][data-placement^=right]>.tippy-arrow:before{border-right-color:#fff}.tippy-box[data-theme~=light]>.tippy-backdrop{background-color:#fff}.tippy-box[data-theme~=light]>.tippy-svg-arrow{fill:#fff}.fi-sortable-ghost{opacity:.3}

Some files were not shown because too many files have changed in this diff Show More