first commit

This commit is contained in:
Reynixtsa 2025-08-01 10:11:51 +07:00
parent 9bb5b69f85
commit 61ffda83e0
5502 changed files with 1191213 additions and 0 deletions

18
.editorconfig Normal file
View File

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

106
.env.example Normal file
View File

@ -0,0 +1,106 @@
APP_NAME=Laravel
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_TIMEZONE=Asia/Jakarta
APP_URL=http://localhost:8000
APP_HEADER_KEY=
APP_LOCALE=en
APP_FALLBACK_LOCALE=en
APP_FAKER_LOCALE=en_US
APP_MAINTENANCE_DRIVER=file
# APP_MAINTENANCE_STORE=database
BCRYPT_ROUNDS=12
LOG_CHANNEL=stack
LOG_STACK=single
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug
DEBUGBAR_ENABLED=true
DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=lampuotomatis
DB_USERNAME=root
DB_PASSWORD=
SESSION_DRIVER=database
SESSION_LIFETIME=120
SESSION_ENCRYPT=false
SESSION_PATH=/
SESSION_DOMAIN=null
BROADCAST_CONNECTION=log
FILESYSTEM_DISK=local
QUEUE_CONNECTION=database
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=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=809d58dfa23ade
MAIL_PASSWORD=e9d1aa54a61db1
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS="repalogic.aing@gmail.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}"
PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_HOST=
PUSHER_PORT=443
PUSHER_SCHEME=https
PUSHER_APP_CLUSTER=mt1
VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
VITE_PUSHER_HOST="${PUSHER_HOST}"
VITE_PUSHER_PORT="${PUSHER_PORT}"
VITE_PUSHER_SCHEME="${PUSHER_SCHEME}"
VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
CAPTCHA_SECRET=
CAPTCHA_SITEKEY=
YOUTUBE_API_KEY=
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
GOOGLE_REDIRECT=
FACEBOOK_CLIENT_ID=
FACEBOOK_CLIENT_SECRET=
FACEBOOK_REDIRECT=
TWITTER_CLIENT_ID=
TWITTER_CLIENT_SECRET=
TWITTER_REDIRECT=
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
GITHUB_REDIRECT=
JWT_SECRET=

5
.gitattributes vendored Normal file
View File

@ -0,0 +1,5 @@
* text=auto
*.css linguist-vendored
*.scss linguist-vendored
*.js linguist-vendored
CHANGELOG.md export-ignore

23
.gitignore vendored Normal file
View File

@ -0,0 +1,23 @@
/vendor/
node_modules/
npm-debug.log
yarn-error.log
# Laravel 4 specific
bootstrap/compiled.php
app/storage/
# Laravel 5 & Lumen specific
public/storage
public/hot
# Laravel 5 & Lumen specific with changed public path
public_html/storage
public_html/hot
storage/*.key
.env
Homestead.yaml
Homestead.json
/.vagrant
.phpunit.result.cache

15
.rtlcsssrc Normal file
View File

@ -0,0 +1,15 @@
{
"autoRename": true,
"stringMap": [
{
"name": "left-right",
"priority": 100,
"search": "left",
"replace": "right",
"options": {
"scope": "*",
"ignoreCase": false
}
}
]
}

14
.styleci.yml Normal file
View File

@ -0,0 +1,14 @@
php:
preset: laravel
version: 8
disabled:
- no_unused_imports
finder:
not-name:
- index.php
- server.php
js:
finder:
not-name:
- webpack.mix.js
css: true

View File

@ -0,0 +1,108 @@
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Log;
use Carbon\Carbon;
class DetectRefillJob extends Command {
protected $signature = 'detect:refill';
protected $description = 'Cek pengisian ulang gas di semua device';
public function handle() {
$devices = DB::table('devices')->pluck('id'); // 🔥 Ambil dari tabel device
foreach ($devices as $buffer_id) {
$customer = DB::table('customers')->where('buffer_id', $buffer_id)->first();
if (!$customer) continue;
// ✅ Ambil data terbaru dari history_sensors
$latest = DB::table('history_sensors')
->where('buffer_id', $buffer_id)
->orderBy('created_at', 'desc')
->first();
if (!$latest) continue; // Jika tidak ada data, skip
// 🔥 Cek apakah ada data dalam 1 jam terakhir
$pressure_before = DB::table('history_sensors')
->where('buffer_id', $buffer_id)
->whereBetween('created_at', [Carbon::now()->subMinutes(60), Carbon::now()->subMinutes(10)])
->min('pressure');
// 🛑 Jika tidak ada data dalam 1 jam, gunakan tekanan terakhir dari tabel device_last_pressure
if (!$pressure_before) {
$pressure_before = DB::table('buffer_customers')
->where('buffer_id', $buffer_id)
->value('pressure');
if (!$pressure_before) continue;
}
// ✅ Lanjut proses deteksi pengisian
$pressure_after = $latest->pressure;
$increase = $pressure_after - $pressure_before;
$threshold = 15;
if ($increase > $threshold) {
$recentPressures = DB::table('history_sensors')
->where('buffer_id', $buffer_id)
->orderBy('created_at', 'desc')
->limit(3)
->pluck('pressure')
->toArray();
if ($this->isRefillOngoing($recentPressures)) {
$this->info("⏳ Pengisian gas device $buffer_id masih berlangsung...");
continue;
}
// Cek apakah sudah dicatat sebelumnya
$existing = DB::table('delivery_status')
->where('delivery_date', '>=', now()->subMinutes(60))
->exists();
if (!$existing) {
DB::table('delivery_status')->insert([
'buffer_id' => $buffer_id,
'customer_id' => $customer->id,
'pressure_before' => $pressure_before,
'pressure_after' => $pressure_after,
'total' => $increase,
'status' => "Selesai",
'created_at' => now(),
'delivery_date' => now()
]);
$this->info("✅ Pengisian ulang terdeteksi untuk device $buffer_id");
}
}
// 🔥 Simpan tekanan terbaru agar bisa digunakan jika perangkat mati
// DB::table('device_last_pressure')->updateOrInsert(
// ['buffer_id' => $buffer_id],
// ['pressure' => $latest->pressure, 'updated_at' => now()]
// );
}
$this->info('✅ Detect refill executed successfully');
}
// Cek apakah tekanan masih naik (pengisian belum selesai)
private function isRefillOngoing($pressures) {
if (count($pressures) < 3) return false;
return $pressures[0] > $pressures[1] && $pressures[1] > $pressures[2]; // Masih naik
}
// Cek apakah tekanan masih naik (pengisian belum selesai)
// private function isRefillOngoing($pressures) {
// if (count($pressures) < 3) return false;
// // Log::info($pressures[0]);
// // Log::info($pressures[1]);
// // Log::info($pressures[2]);
// // Log::info($pressures[0] > $pressures[1] && $pressures[1] > $pressures[2]);
// return $pressures[0] > $pressures[1] && $pressures[1] > $pressures[2]; // Masih naik
// }
}

View File

@ -0,0 +1,36 @@
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use App\Models\InvoiceItem;
use App\Models\Invoice;
use Carbon\Carbon;
use App\Services\InvoiceService;
use Illuminate\Console\Scheduling\Schedule;
class GenerateMonthlyInvoices extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
// protected $signature = 'app:generate-monthly-invoices';
protected $signature = 'invoice:generate-monthly'; // pakai yang ini!
/**
* The console command description.
*
* @var string
*/
protected $description = 'Generate invoices for completed trips automatically every month';
/**
* Execute the console command.
*/
public function handle()
{
app(InvoiceService::class)->generateMonthlyInvoices();
}
}

33
app/Console/Kernel.php Normal file
View File

@ -0,0 +1,33 @@
<?php
namespace App\Console;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
class Kernel extends ConsoleKernel
{
/**
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
* @return void
*/
protected function schedule(Schedule $schedule)
{
$schedule->command('detect:refill')->everyThirtyMinutes();
// $schedule->command('invoice:generate-monthly')->monthlyOn(1, '01:00'); // Tiap tanggal 1 jam 1 pagi
// $schedule->command('invoice:generate-monthly')->everyMinute(); // yang ini untuk testing, jadi tiap menit
}
/**
* Register the commands for the application.
*
* @return void
*/
protected function commands()
{
$this->load(__DIR__.'/Commands');
require base_path('routes/console.php');
}
}

View File

@ -0,0 +1,65 @@
<?php
namespace App\Exceptions;
use Illuminate\Auth\AuthenticationException;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
use Throwable;
class Handler extends ExceptionHandler
{
/**
* A list of the exception types that are not reported.
*
* @var array<int, class-string<Throwable>>
*/
protected $dontReport = [
//
];
/**
* A list of the inputs that are never flashed for validation exceptions.
*
* @var array<int, string>
*/
protected $dontFlash = [
'current_password',
'password',
'password_confirmation',
];
/**
* Register the exception handling callbacks for the application.
*
* @return void
*/
protected function unauthenticated($request, AuthenticationException $exception)
{
// Selalu kembalikan JSON untuk semua request API/mobile
if ($request->expectsJson() || $request->is('api/*') || $request->is('mobile/*')) {
return response()->json([
'errors' => 'Token tidak valid atau telah kedaluwarsa',
], 401);
}
// Untuk request web, redirect ke login
return redirect()->guest(route('login'));
}
public function register()
{
$this->reportable(function (Throwable $e) {
//
});
// Tambahkan handler untuk respons JSON universal
$this->renderable(function (AuthenticationException $e, $request) {
if ($request->expectsJson() || $request->is('api/*') || $request->is('mobile/*')) {
return response()->json([
'errors' => 'Token tidak valid atau telah kedaluwarsa',
], 401);
}
});
}
}

View File

@ -0,0 +1,79 @@
<?php
namespace App\Http\Controllers\API;
use App\Http\Controllers\Controller;
use App\Models\User;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Validator;
class AuthApiController extends Controller
{
public function login(Request $request)
{
try {
$validator = Validator::make($request->all(), [
'telepon' => 'required',
'password' => 'required'
], [
'telepon.required' => 'nomor telepon wajib diisi',
'password.required' => 'password wajib diisi'
]);
if ($validator->fails()) {
return response()->json([
'errors' => $validator->errors()
], 400);
}
$user = User::where('telepon', $request->telepon)->first();
if (!$user || !Hash::check($request->password, $user->password)) {
return response()->json([
'errors' => [
'telepon' => 'nomor telepon atau password salah',
'password' => 'nomor telepon atau password salah'
]
], 400);
}
Auth::login($user);
$request->session()->regenerate();
$token = $user->createToken('auth_token')->plainTextToken;
return response()->json([
'data' => [
'token' => $token
]
], 200);
} catch (\Exception $e) {
return response()->json([
'errors' => [
'message' => 'Terjadi kesalahan pada server'
]
], 500);
}
}
public function logout(Request $request)
{
$user = $request->user();
if ($user) {
$user->tokens()->delete();
return response()->json([
'message' => 'berhasil logout'
], 200);
}
return response()->json([
'success' => false,
'message' => 'User tidak terautentikasi'
], 400);
}
}

View File

@ -0,0 +1,40 @@
<?php
namespace App\Http\Controllers\Auth;
use App\Http\Controllers\Controller;
use App\Providers\RouteServiceProvider;
use Illuminate\Foundation\Auth\ConfirmsPasswords;
class ConfirmPasswordController extends Controller
{
/*
|--------------------------------------------------------------------------
| Confirm Password Controller
|--------------------------------------------------------------------------
|
| This controller is responsible for handling password confirmations and
| uses a simple trait to include the behavior. You're free to explore
| this trait and override any functions that require customization.
|
*/
use ConfirmsPasswords;
/**
* Where to redirect users when the intended url fails.
*
* @var string
*/
protected $redirectTo = RouteServiceProvider::HOME;
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
$this->middleware('auth');
}
}

View File

@ -0,0 +1,22 @@
<?php
namespace App\Http\Controllers\Auth;
use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\SendsPasswordResetEmails;
class ForgotPasswordController extends Controller
{
/*
|--------------------------------------------------------------------------
| Password Reset Controller
|--------------------------------------------------------------------------
|
| This controller is responsible for handling password reset emails and
| includes a trait which assists in sending these notifications from
| your application to your users. Feel free to explore this trait.
|
*/
use SendsPasswordResetEmails;
}

View File

@ -0,0 +1,45 @@
<?php
namespace App\Http\Controllers\Auth;
use App\Http\Controllers\Controller;
use App\Providers\RouteServiceProvider;
use Illuminate\Foundation\Auth\AuthenticatesUsers;
use App\Helpers\ActivityLogger;
use Illuminate\Http\Request;
class LoginController extends Controller
{
/*
|--------------------------------------------------------------------------
| Login Controller
|--------------------------------------------------------------------------
|
| This controller handles authenticating users for the application and
| redirecting them to your home screen. The controller uses a trait
| to conveniently provide its functionality to your applications.
|
*/
use AuthenticatesUsers;
/**
* Where to redirect users after login.
*
* @var string
*/
protected $redirectTo = RouteServiceProvider::HOME;
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
$this->middleware('guest')->except('logout');
}
protected function authenticated(Request $request, $user)
{
}
}

View File

@ -0,0 +1,83 @@
<?php
namespace App\Http\Controllers\Auth;
use App\Http\Controllers\Controller;
use App\Providers\RouteServiceProvider;
use App\Models\User;
use Illuminate\Foundation\Auth\RegistersUsers;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Validator;
class RegisterController extends Controller
{
/*
|--------------------------------------------------------------------------
| Register Controller
|--------------------------------------------------------------------------
|
| This controller handles the registration of new users as well as their
| validation and creation. By default this controller uses a trait to
| provide this functionality without requiring any additional code.
|
*/
use RegistersUsers;
/**
* Where to redirect users after registration.
*
* @var string
*/
protected $redirectTo = RouteServiceProvider::HOME;
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
$this->middleware('guest');
}
/**
* Get a validator for an incoming registration request.
*
* @param array $data
* @return \Illuminate\Contracts\Validation\Validator
*/
protected function validator(array $data)
{
return Validator::make($data, [
'name' => ['required', 'string', 'max:255'],
'email' => ['required', 'string', 'email', 'max:255', 'unique:users'],
'password' => ['required', 'string', 'min:8', 'confirmed'],
'avatar' => ['required', 'image' ,'mimes:jpg,jpeg,png','max:1024'],
]);
}
/**
* Create a new user instance after a valid registration.
*
* @param array $data
* @return \App\Models\User
*/
protected function create(array $data)
{
// return request()->file('avatar');
if (request()->has('avatar')) {
$avatar = request()->file('avatar');
$avatarName = time() . '.' . $avatar->getClientOriginalExtension();
$avatarPath = public_path('/images/');
$avatar->move($avatarPath, $avatarName);
}
return User::create([
'name' => $data['name'],
'email' => $data['email'],
'password' => Hash::make($data['password']),
'avatar' => $avatarName,
]);
}
}

View File

@ -0,0 +1,30 @@
<?php
namespace App\Http\Controllers\Auth;
use App\Http\Controllers\Controller;
use App\Providers\RouteServiceProvider;
use Illuminate\Foundation\Auth\ResetsPasswords;
class ResetPasswordController extends Controller
{
/*
|--------------------------------------------------------------------------
| Password Reset Controller
|--------------------------------------------------------------------------
|
| This controller is responsible for handling password reset requests
| and uses a simple trait to include this behavior. You're free to
| explore this trait and override any methods you wish to tweak.
|
*/
use ResetsPasswords;
/**
* Where to redirect users after resetting their password.
*
* @var string
*/
protected $redirectTo = RouteServiceProvider::HOME;
}

View File

@ -0,0 +1,42 @@
<?php
namespace App\Http\Controllers\Auth;
use App\Http\Controllers\Controller;
use App\Providers\RouteServiceProvider;
use Illuminate\Foundation\Auth\VerifiesEmails;
class VerificationController extends Controller
{
/*
|--------------------------------------------------------------------------
| Email Verification Controller
|--------------------------------------------------------------------------
|
| This controller is responsible for handling email verification for any
| user that recently registered with the application. Emails may also
| be re-sent if the user didn't receive the original email message.
|
*/
use VerifiesEmails;
/**
* Where to redirect users after verification.
*
* @var string
*/
protected $redirectTo = RouteServiceProvider::HOME;
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
$this->middleware('auth');
$this->middleware('signed')->only('verify');
$this->middleware('throttle:6,1')->only('verify', 'resend');
}
}

View File

@ -0,0 +1,13 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Routing\Controller as BaseController;
class Controller extends BaseController
{
use AuthorizesRequests, DispatchesJobs, ValidatesRequests;
}

View File

@ -0,0 +1,70 @@
<?php
namespace App\Http\Controllers;
use App\Models\Lamp;
use Illuminate\Http\Request;
use Carbon\Carbon;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Log;
class DeviceController extends Controller
{
public function control(Request $request)
{
$action = $request->input('action');
if ($action === 'on') {
// Contoh: nyalakan perangkat
DB::table('lamp_status')->update(['status' => 'ON', 'updated_at' => Carbon::now()]);
DB::table('control_logs')->insert(['action' => 'ON', 'triggered_by' => 'web', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()]);
} elseif ($action === 'off') {
DB::table('lamp_status')->update(['status' => 'OFF', 'updated_at' => Carbon::now()]);
DB::table('control_logs')->insert(['action' => 'OFF', 'triggered_by' => 'web', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()]);
} elseif ($action === 'auto') {
DB::table('lamp_status')->update(['status' => 'AUTO', 'updated_at' => Carbon::now()]);
}
return back()->with('status', "Perintah '$action' berhasil dikirim.");
}
public function getStatus()
{
$device = DB::table('lamp_status')->first();
if ($device) {
return response($device->status, 200);
} else {
return response('off', 404); // default jika device tidak ditemukan
}
}
public function storeSensorData(Request $request)
{
try {
DB::table('sensors')->insert([
'ldr_value' => $request->input('ldr_value'),
'motion_detected' => $request->input('motion_value'),
'sound_value' => $request->input('sound_value'),
'created_at' => now(),
]);
return response()->json(['message' => 'Data diterima']);
} catch (\Exception $e) {
Log::error('Gagal menyimpan sensor:', ['error' => $e->getMessage()]);
return response()->json(['error' => $e->getMessage()], 500);
}
}
public function storeLamp(Request $request)
{
$validated = $request->validate([
'mode' => 'required|string', // AUTO / MANUAL
'state' => 'required|boolean', // 1 = ON, 0 = OFF
]);
return response()->json(['message' => 'Lamp status saved']);
}
}

View File

@ -0,0 +1,67 @@
<?php
namespace App\Http\Controllers;
use App\Models\User;
use Illuminate\Support\Facades\Auth;
use Illuminate\Http\Request;
use Carbon\Carbon;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Log;
class HomeController extends Controller
{
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
$this->middleware('auth');
}
/**
* Show the application dashboard.
*
* @return \Illuminate\Contracts\Support\Renderable
*/
public function index(Request $request)
{
if (view()->exists($request->path())) {
return view($request->path());
}
return abort(404);
}
public function root()
{
$currentMonth = Carbon::now()->month;
$currentYear = Carbon::now()->year;
$user = Auth::user();
return view('dashboard-administrator', compact('user'));
}
public function control(Request $request)
{
$action = $request->input('action');
if ($action === 'on') {
// Contoh: nyalakan perangkat
DB::table('lamp_status')->update(['status' => 'ON', 'updated_at' => Carbon::now()]);
DB::table('control_logs')->insert(['action' => 'ON', 'triggered_by' => 'web', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()]);
} elseif ($action === 'off') {
DB::table('lamp_status')->update(['status' => 'OFF', 'updated_at' => Carbon::now()]);
DB::table('control_logs')->insert(['action' => 'OFF', 'triggered_by' => 'web', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()]);
} elseif ($action === 'auto') {
DB::table('lamp_status')->update(['status' => 'AUTO', 'updated_at' => Carbon::now()]);
// DB::table('control_logs')->insert(['action' => 'AUTO', 'triggered_by' => 'web', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()]);
}
return back()->with('status', "Perintah '$action' berhasil dikirim.");
}
}

72
app/Http/Kernel.php Normal file
View File

@ -0,0 +1,72 @@
<?php
namespace App\Http;
use Illuminate\Foundation\Http\Kernel as HttpKernel;
class Kernel extends HttpKernel
{
/**
* The application's global HTTP middleware stack.
*
* These middleware are run during every request to your application.
*
* @var array<int, class-string|string>
*/
protected $middleware = [
// \App\Http\Middleware\TrustHosts::class,
\App\Http\Middleware\TrustProxies::class,
\Illuminate\Http\Middleware\HandleCors::class,
\App\Http\Middleware\PreventRequestsDuringMaintenance::class,
\Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
\App\Http\Middleware\TrimStrings::class,
\Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
];
/**
* The application's route middleware groups.
*
* @var array<string, array<int, class-string|string>>
*/
protected $middlewareGroups = [
'web' => [
\App\Http\Middleware\EncryptCookies::class,
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
\Illuminate\Session\Middleware\StartSession::class,
// \Illuminate\Session\Middleware\AuthenticateSession::class,
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
\App\Http\Middleware\VerifyCsrfToken::class,
\App\Http\Middleware\Localization::class,
\Illuminate\Routing\Middleware\SubstituteBindings::class,
],
'api' => [
// \Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful::class,
// 'throttle:api',
\Illuminate\Routing\Middleware\SubstituteBindings::class,
\Illuminate\Session\Middleware\StartSession::class,
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
],
];
/**
* The application's route middleware.
*
* These middleware may be assigned to groups or used individually.
*
* @var array<string, class-string|string>
*/
protected $routeMiddleware = [
'auth' => \App\Http\Middleware\Authenticate::class,
'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class,
'can' => \Illuminate\Auth\Middleware\Authorize::class,
'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class,
'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class,
'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class,
];
}

View File

@ -0,0 +1,21 @@
<?php
namespace App\Http\Middleware;
use Illuminate\Auth\Middleware\Authenticate as Middleware;
class Authenticate extends Middleware
{
/**
* Get the path the user should be redirected to when they are not authenticated.
*
* @param \Illuminate\Http\Request $request
* @return string|null
*/
protected function redirectTo($request)
{
if (! $request->expectsJson()) {
return route('login');
}
}
}

View File

@ -0,0 +1,17 @@
<?php
namespace App\Http\Middleware;
use Illuminate\Cookie\Middleware\EncryptCookies as Middleware;
class EncryptCookies extends Middleware
{
/**
* The names of the cookies that should not be encrypted.
*
* @var array<int, string>
*/
protected $except = [
//
];
}

View File

@ -0,0 +1,26 @@
<?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\App;
class Localization
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle(Request $request, Closure $next)
{
/* Set new lang with the use of session */
if (session()->has('lang')) {
App::setLocale(session()->get('lang'));
}
return $next($request);
}
}

View File

@ -0,0 +1,17 @@
<?php
namespace App\Http\Middleware;
use Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance as Middleware;
class PreventRequestsDuringMaintenance extends Middleware
{
/**
* The URIs that should be reachable while maintenance mode is enabled.
*
* @var array<int, string>
*/
protected $except = [
//
];
}

View File

@ -0,0 +1,32 @@
<?php
namespace App\Http\Middleware;
use App\Providers\RouteServiceProvider;
use Closure;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
class RedirectIfAuthenticated
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure(\Illuminate\Http\Request): (\Illuminate\Http\Response|\Illuminate\Http\RedirectResponse) $next
* @param string|null ...$guards
* @return \Illuminate\Http\Response|\Illuminate\Http\RedirectResponse
*/
public function handle(Request $request, Closure $next, ...$guards)
{
$guards = empty($guards) ? [null] : $guards;
foreach ($guards as $guard) {
if (Auth::guard($guard)->check()) {
return redirect(RouteServiceProvider::HOME);
}
}
return $next($request);
}
}

View File

@ -0,0 +1,19 @@
<?php
namespace App\Http\Middleware;
use Illuminate\Foundation\Http\Middleware\TrimStrings as Middleware;
class TrimStrings extends Middleware
{
/**
* The names of the attributes that should not be trimmed.
*
* @var array<int, string>
*/
protected $except = [
'current_password',
'password',
'password_confirmation',
];
}

View File

@ -0,0 +1,20 @@
<?php
namespace App\Http\Middleware;
use Illuminate\Http\Middleware\TrustHosts as Middleware;
class TrustHosts extends Middleware
{
/**
* Get the host patterns that should be trusted.
*
* @return array<int, string|null>
*/
public function hosts()
{
return [
$this->allSubdomainsOfApplicationUrl(),
];
}
}

View File

@ -0,0 +1,28 @@
<?php
namespace App\Http\Middleware;
use Illuminate\Http\Middleware\TrustProxies as Middleware;
use Illuminate\Http\Request;
class TrustProxies extends Middleware
{
/**
* The trusted proxies for this application.
*
* @var array<int, string>|string|null
*/
protected $proxies;
/**
* The headers that should be used to detect proxies.
*
* @var int
*/
protected $headers =
Request::HEADER_X_FORWARDED_FOR |
Request::HEADER_X_FORWARDED_HOST |
Request::HEADER_X_FORWARDED_PORT |
Request::HEADER_X_FORWARDED_PROTO |
Request::HEADER_X_FORWARDED_AWS_ELB;
}

View File

@ -0,0 +1,17 @@
<?php
namespace App\Http\Middleware;
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as Middleware;
class VerifyCsrfToken extends Middleware
{
/**
* The URIs that should be excluded from CSRF verification.
*
* @var array<int, string>
*/
protected $except = [
//
];
}

View File

@ -0,0 +1,46 @@
<?php
namespace App\Livewire;
use Livewire\Component;
use App\Models\BufferCustomer;
use App\Models\ControlLog;
use App\Models\Lamp;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Builder;
use Rappasoft\LaravelLivewireTables\DataTableComponent;
use Rappasoft\LaravelLivewireTables\Views\Column;
class LampTable extends DataTableComponent
{
public function builder(): Builder
{
return ControlLog::query()
->orderBy('updated_at', 'asc');
}
public function configure(): void
{
$this->setPrimaryKey('id');
$this->setPerPageAccepted([5, 10, 25, 50, 100]); // rappasoft hanya boleh 10, 25, 50, jadi wajib set ini!
$this->setPerPage(5); // set agar default 5!
$this->setPerPageVisibilityStatus(false); // ini untuk set perpage berapa list bagi admin (ui)
$this->setColumnSelectStatus(false);
}
public function columns(): array
{
return [
// Column::make('#')
// ->label(fn ($row, $index) => $index + 1),
Column::make('Status', 'action')
->sortable(),
Column::make('Trigered', 'triggered_by')
->sortable(),
Column::make("Waktu", "updated_at")
->sortable(),
];
}
}

View File

@ -0,0 +1,53 @@
<?php
namespace App\Livewire;
use Rappasoft\LaravelLivewireTables\DataTableComponent;
use Rappasoft\LaravelLivewireTables\Views\Column;
use App\Models\Sensor;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Http\Request;
class SensorTable extends DataTableComponent
{
protected $model = Sensor::class;
public function configure(): void
{
$this->setPrimaryKey('id');
$this->setPerPageAccepted([5, 10, 25, 50, 100]); // rappasoft hanya boleh 10, 25, 50, jadi wajib set ini!
$this->setPerPage(5); // set agar default 5!
$this->setPerPageVisibilityStatus(false); // ini untuk set perpage berapa list bagi admin (ui)
$this->setColumnSelectStatus(false);
}
public function builder(): Builder
{
return Sensor::query()
->orderBy('created_at', 'desc');
}
public function columns(): array
{
return [
Column::make("Id", "id")->deselected()->sortable(),
Column::make("Cahaya", "ldr_value")
->format(function ($value) {
return $value == 0 ? 'Terang' : 'Gelap';
})
->sortable(),
Column::make("Suara", "sound_value")
->format(function ($value) {
return $value == 0 ? 'Ada suara' : 'Tidak ada suara';
})
->sortable(),
Column::make("Gerakan", "motion_detected")
->format(function ($value) {
return $value == 1 ? 'Ada gerakan' : 'Tidak ada gerakan';
})
->sortable(),
Column::make("Waktu", "created_at")->sortable(),
];
}
}

17
app/Models/ControlLog.php Normal file
View File

@ -0,0 +1,17 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class ControlLog extends Model
{
use HasFactory;
protected $table = 'control_logs';
protected $fillable = [
'action',
'trigered_by',
];
}

13
app/Models/Lamp.php Normal file
View File

@ -0,0 +1,13 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Lamp extends Model
{
use HasFactory;
protected $table = 'lamp_status';
}

19
app/Models/Sensor.php Normal file
View File

@ -0,0 +1,19 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Sensor extends Model
{
use HasFactory;
protected $table = 'sensors';
protected $fillable = [
'ldr_value',
'sound_value',
'motion_value',
];
}

17
app/Models/Theme.php Normal file
View File

@ -0,0 +1,17 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Theme extends Model
{
use HasFactory;
protected $guarded = [];
public function user()
{
return $this->belongsTo(User::class);
}
}

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

@ -0,0 +1,80 @@
<?php
namespace App\Models;
// use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Spatie\Permission\Traits\HasRoles;
use Laravel\Sanctum\HasApiTokens;
use Spatie\Permission\Models\Role;
class User extends Authenticatable
{
use HasApiTokens, HasFactory, Notifiable, HasRoles;
/**
* The attributes that are mass assignable.
*
* @var array<int, string>
*/
public static function boot()
{
parent::boot();
// static::created(function ($user) {
// $user->preferensi()->create([
// 'data_topbar' => 'light'
// ]);
// });
}
protected $guard_name = 'web';
use HasRoles;
protected $fillable = [
'name',
'email',
'password',
];
/**
* The attributes that should be hidden for serialization.
*
* @var array<int, string>
*/
protected $hidden = [
'password',
'remember_token',
];
/**
* Get the attributes that should be cast.
*
* @return array<string, string>
*/
protected function casts(): array
{
return [
'email_verified_at' => 'datetime',
'password' => 'hashed',
];
}
public function customer()
{
return $this->hasOne(Customer::class, 'user_id', 'id');
}
public function theme()
{
return $this->hasOne(Theme::class, 'user_id', 'id')->withDefault();
}
public function role()
{
return $this->belongsTo(Role::class);
}
public function driver()
{
return $this->hasOne(Driver::class);
}
}

View File

@ -0,0 +1,50 @@
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\View;
use Jantinnerezo\LivewireAlert\LivewireAlertServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*
* @return void
*/
public function register()
{
//
}
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
//
Schema::defaultStringLength(191);
$this->app->register(LivewireAlertServiceProvider::class);
// if (App::environment('production')) {
// URL::forceScheme('https');
// }
// Paginator::useBootstrap();
View::composer('layouts.master', function ($view) {
if (Auth::check()) { // Gunakan Auth::check() untuk memastikan user sudah login
$user = Auth::user();
$theme = $user->theme ?? null;
$view->with('themes', $theme);
}
});
}
}

View File

@ -0,0 +1,30 @@
<?php
namespace App\Providers;
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
use Illuminate\Support\Facades\Gate;
class AuthServiceProvider extends ServiceProvider
{
/**
* The policy mappings for the application.
*
* @var array<class-string, class-string>
*/
protected $policies = [
// 'App\Models\Model' => 'App\Policies\ModelPolicy',
];
/**
* Register any authentication / authorization services.
*
* @return void
*/
public function boot()
{
$this->registerPolicies();
//
}
}

View File

@ -0,0 +1,21 @@
<?php
namespace App\Providers;
use Illuminate\Support\Facades\Broadcast;
use Illuminate\Support\ServiceProvider;
class BroadcastServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
Broadcast::routes();
require base_path('routes/channels.php');
}
}

View File

@ -0,0 +1,32 @@
<?php
namespace App\Providers;
use Illuminate\Auth\Events\Registered;
use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
use Illuminate\Support\Facades\Event;
class EventServiceProvider extends ServiceProvider
{
/**
* The event listener mappings for the application.
*
* @var array<class-string, array<int, class-string>>
*/
protected $listen = [
Registered::class => [
SendEmailVerificationNotification::class,
],
];
/**
* Register any events for your application.
*
* @return void
*/
public function boot()
{
//
}
}

View File

@ -0,0 +1,63 @@
<?php
namespace App\Providers;
use Illuminate\Cache\RateLimiting\Limit;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\RateLimiter;
use Illuminate\Support\Facades\Route;
class RouteServiceProvider extends ServiceProvider
{
/**
* The path to the "home" route for your application.
*
* This is used by Laravel authentication to redirect users after login.
*
* @var string
*/
public const HOME = '/';
/**
* The controller namespace for the application.
*
* When present, controller route declarations will automatically be prefixed with this namespace.
*
* @var string|null
*/
// protected $namespace = 'App\\Http\\Controllers';
/**
* Define your route model bindings, pattern filters, etc.
*
* @return void
*/
public function boot()
{
$this->configureRateLimiting();
$this->routes(function () {
Route::prefix('api')
->middleware('api')
->namespace($this->namespace)
->group(base_path('routes/api.php'));
Route::middleware('web')
->namespace($this->namespace)
->group(base_path('routes/web.php'));
});
}
/**
* Configure the rate limiters for the application.
*
* @return void
*/
protected function configureRateLimiting()
{
RateLimiter::for('api', function (Request $request) {
return Limit::perMinute(60)->by(optional($request->user())->id ?: $request->ip());
});
}
}

108
app/Trains/UserTracking.php Normal file
View File

@ -0,0 +1,108 @@
<?php
namespace App\Trains;
use App\Models\User;
use Illuminate\Support\Facades\Auth;
trait UserTracking
{
protected static function bootUserTracking()
{
// Ketika model dibuat
static::creating(function ($model) {
if (Auth::check()) {
$model->created_by = Auth::id();
$model->updated_by = Auth::id();
}
});
// Ketika model diupdate
static::updating(function ($model) {
if (Auth::check()) {
$model->updated_by = Auth::id();
}
});
// Ketika model dihapus (soft delete)
static::deleting(function ($model) {
if (Auth::check()) {
$model->deleted_by = Auth::id();
// Simpan deleted_by sebelum soft delete
$model->saveQuietly();
}
});
}
/**
* Relationship dengan user yang membuat
*/
public function creator()
{
return $this->belongsTo(User::class, 'created_by');
}
/**
* Relationship dengan user yang mengupdate
*/
public function updater()
{
return $this->belongsTo(User::class, 'updated_by');
}
/**
* Relationship dengan user yang menghapus
*/
public function deleter()
{
return $this->belongsTo(User::class, 'deleted_by');
}
/**
* Scope untuk filter berdasarkan creator
*/
public function scopeCreatedBy($query, $userId)
{
return $query->where('created_by', $userId);
}
/**
* Scope untuk filter berdasarkan updater
*/
public function scopeUpdatedBy($query, $userId)
{
return $query->where('updated_by', $userId);
}
/**
* Scope untuk filter berdasarkan deleter
*/
public function scopeDeletedBy($query, $userId)
{
return $query->where('deleted_by', $userId);
}
/**
* Get creator name
*/
public function getCreatorNameAttribute()
{
return $this->creator ? $this->creator->name : 'System';
}
/**
* Get updater name
*/
public function getUpdaterNameAttribute()
{
return $this->updater ? $this->updater->name : 'System';
}
/**
* Get deleter name
*/
public function getDeleterNameAttribute()
{
return $this->deleter ? $this->deleter->name : null;
}
}

53
artisan Normal file
View File

@ -0,0 +1,53 @@
#!/usr/bin/env php
<?php
define('LARAVEL_START', microtime(true));
/*
|--------------------------------------------------------------------------
| Register The Auto Loader
|--------------------------------------------------------------------------
|
| Composer provides a convenient, automatically generated class loader
| for our application. We just need to utilize it! We'll require it
| into the script here so that we do not have to worry about the
| loading of any of our classes manually. It's great to relax.
|
*/
require __DIR__.'/vendor/autoload.php';
$app = require_once __DIR__.'/bootstrap/app.php';
/*
|--------------------------------------------------------------------------
| Run The Artisan Application
|--------------------------------------------------------------------------
|
| When we run the console application, the current CLI command will be
| executed in this console and the response sent back to a terminal
| or another output device for the developers. Here goes nothing!
|
*/
$kernel = $app->make(Illuminate\Contracts\Console\Kernel::class);
$status = $kernel->handle(
$input = new Symfony\Component\Console\Input\ArgvInput,
new Symfony\Component\Console\Output\ConsoleOutput
);
/*
|--------------------------------------------------------------------------
| Shutdown The Application
|--------------------------------------------------------------------------
|
| Once Artisan has finished running, we will fire off the shutdown events
| so that any final work may be done by the application before we shut
| down the process. This is the last thing to happen to the request.
|
*/
$kernel->terminate($input, $status);
exit($status);

55
bootstrap/app.php Normal file
View File

@ -0,0 +1,55 @@
<?php
/*
|--------------------------------------------------------------------------
| Create The Application
|--------------------------------------------------------------------------
|
| The first thing we will do is create a new Laravel application instance
| which serves as the "glue" for all the components of Laravel, and is
| the IoC container for the system binding all of the various parts.
|
*/
$app = new Illuminate\Foundation\Application(
$_ENV['APP_BASE_PATH'] ?? dirname(__DIR__)
);
/*
|--------------------------------------------------------------------------
| Bind Important Interfaces
|--------------------------------------------------------------------------
|
| Next, we need to bind some important interfaces into the container so
| we will be able to resolve them when needed. The kernels serve the
| incoming requests to this application from both the web and CLI.
|
*/
$app->singleton(
Illuminate\Contracts\Http\Kernel::class,
App\Http\Kernel::class
);
$app->singleton(
Illuminate\Contracts\Console\Kernel::class,
App\Console\Kernel::class
);
$app->singleton(
Illuminate\Contracts\Debug\ExceptionHandler::class,
App\Exceptions\Handler::class
);
/*
|--------------------------------------------------------------------------
| Return The Application
|--------------------------------------------------------------------------
|
| This script returns the application instance. The instance is given to
| the calling script so we can separate the building of the instances
| from the actual running of the application and sending responses.
|
*/
return $app;

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

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

76
composer.json Normal file
View File

@ -0,0 +1,76 @@
{
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"require": {
"php": "^8.2",
"barryvdh/laravel-dompdf": "^3.1",
"bluerhinos/phpmqtt": "^1.0",
"guzzlehttp/guzzle": "^7.2",
"jantinnerezo/livewire-alert": "^3.0",
"laravel/framework": "^11.0",
"laravel/sanctum": "^4.1",
"laravel/tinker": "^2.9",
"laravel/ui": "^4.2",
"laravolt/indonesia": "^0.35.0",
"php-mqtt/client": "^2.2",
"phpoffice/phpspreadsheet": "^4.2",
"rappasoft/laravel-livewire-tables": "^3.7",
"simplesoftwareio/simple-qrcode": "^4.2",
"spatie/eloquent-sortable": "^4.4",
"spatie/laravel-permission": "^6.10"
},
"require-dev": {
"fakerphp/faker": "^1.23",
"laravel/pint": "^1.13",
"laravel/sail": "^1.26",
"mockery/mockery": "^1.6",
"nunomaduro/collision": "^8.0",
"phpunit/phpunit": "^10.5",
"spatie/laravel-ignition": "^2.4"
},
"autoload": {
"psr-4": {
"App\\": "app/",
"Database\\Factories\\": "database/factories/",
"Database\\Seeders\\": "database/seeders/"
},
"files": [
]
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"scripts": {
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"@php artisan package:discover --ansi"
],
"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"
]
},
"extra": {
"laravel": {
"dont-discover": []
}
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true
},
"minimum-stability": "stable",
"prefer-stable": true
}

10066
composer.lock generated Normal file

File diff suppressed because it is too large Load Diff

239
config/app.php Normal file
View File

@ -0,0 +1,239 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Application Name
|--------------------------------------------------------------------------
|
| This value is the name of your application. This value is used when the
| framework needs to place the application's name in a notification or
| any other location as required by the application or its packages.
|
*/
'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
| your application so that it is used when running Artisan tasks.
|
*/
'url' => env('APP_URL', 'http://localhost'),
'asset_url' => env('ASSET_URL', null),
/*
|--------------------------------------------------------------------------
| Application Timezone
|--------------------------------------------------------------------------
|
| Here you may specify the default timezone for your application, which
| will be used by the PHP date and date-time functions. We have gone
| ahead and set this to a sensible default for you out of the box.
|
*/
'timezone' => 'Asia/Jakarta',
/*
|--------------------------------------------------------------------------
| Application Locale Configuration
|--------------------------------------------------------------------------
|
| The application locale determines the default locale that will be used
| by the translation service provider. You are free to set this value
| to any of the locales which will be supported by the application.
|
*/
'locale' => 'en',
/*
|--------------------------------------------------------------------------
| Application Fallback Locale
|--------------------------------------------------------------------------
|
| The fallback locale determines the locale to use when the current one
| is not available. You may change the value to correspond to any of
| the language folders that are provided through your application.
|
*/
'fallback_locale' => 'en',
/*
|--------------------------------------------------------------------------
| Faker Locale
|--------------------------------------------------------------------------
|
| This locale will be used by the Faker PHP library when generating fake
| data for your database seeds. For example, this will be used to get
| localized telephone numbers, street address information and more.
|
*/
'faker_locale' => 'en_US',
/*
|--------------------------------------------------------------------------
| Encryption Key
|--------------------------------------------------------------------------
|
| This key is used by the Illuminate encrypter service and should be set
| to a random, 32 character string, otherwise these encrypted strings
| will not be safe. Please do this before deploying an application!
|
*/
'key' => env('APP_KEY'),
'cipher' => 'AES-256-CBC',
/*
|--------------------------------------------------------------------------
| Autoloaded Service Providers
|--------------------------------------------------------------------------
|
| The service providers listed here will be automatically loaded on the
| request to your application. Feel free to add your own services to
| this array to grant expanded functionality to your applications.
|
*/
'providers' => [
/*
* Laravel Framework Service Providers...
*/
Illuminate\Auth\AuthServiceProvider::class,
Illuminate\Broadcasting\BroadcastServiceProvider::class,
Illuminate\Bus\BusServiceProvider::class,
Illuminate\Cache\CacheServiceProvider::class,
Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
Illuminate\Cookie\CookieServiceProvider::class,
Illuminate\Database\DatabaseServiceProvider::class,
Illuminate\Encryption\EncryptionServiceProvider::class,
Illuminate\Filesystem\FilesystemServiceProvider::class,
Illuminate\Foundation\Providers\FoundationServiceProvider::class,
Illuminate\Hashing\HashServiceProvider::class,
Illuminate\Mail\MailServiceProvider::class,
Illuminate\Notifications\NotificationServiceProvider::class,
Illuminate\Pagination\PaginationServiceProvider::class,
Illuminate\Pipeline\PipelineServiceProvider::class,
Illuminate\Queue\QueueServiceProvider::class,
Illuminate\Redis\RedisServiceProvider::class,
Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
Illuminate\Session\SessionServiceProvider::class,
Illuminate\Translation\TranslationServiceProvider::class,
Illuminate\Validation\ValidationServiceProvider::class,
Illuminate\View\ViewServiceProvider::class,
/*
* Package Service Providers...
*/
Spatie\Permission\PermissionServiceProvider::class,
/*
* Application Service Providers...
*/
App\Providers\AppServiceProvider::class,
App\Providers\AuthServiceProvider::class,
// App\Providers\BroadcastServiceProvider::class,
App\Providers\EventServiceProvider::class,
App\Providers\RouteServiceProvider::class,
],
/*
|--------------------------------------------------------------------------
| Class Aliases
|--------------------------------------------------------------------------
|
| This array of class aliases will be registered when this application
| is started. However, feel free to register as many as you wish as
| the aliases are "lazy" loaded so they don't hinder performance.
|
*/
'aliases' => [
'App' => Illuminate\Support\Facades\App::class,
'Arr' => Illuminate\Support\Arr::class,
'Artisan' => Illuminate\Support\Facades\Artisan::class,
'Auth' => Illuminate\Support\Facades\Auth::class,
'Blade' => Illuminate\Support\Facades\Blade::class,
'Broadcast' => Illuminate\Support\Facades\Broadcast::class,
'Bus' => Illuminate\Support\Facades\Bus::class,
'Cache' => Illuminate\Support\Facades\Cache::class,
'Config' => Illuminate\Support\Facades\Config::class,
'Cookie' => Illuminate\Support\Facades\Cookie::class,
'Crypt' => Illuminate\Support\Facades\Crypt::class,
'Date' => Illuminate\Support\Facades\Date::class,
'DB' => Illuminate\Support\Facades\DB::class,
'Eloquent' => Illuminate\Database\Eloquent\Model::class,
'Event' => Illuminate\Support\Facades\Event::class,
'File' => Illuminate\Support\Facades\File::class,
'Gate' => Illuminate\Support\Facades\Gate::class,
'Hash' => Illuminate\Support\Facades\Hash::class,
'Http' => Illuminate\Support\Facades\Http::class,
'Js' => Illuminate\Support\Js::class,
'Lang' => Illuminate\Support\Facades\Lang::class,
'Log' => Illuminate\Support\Facades\Log::class,
'Mail' => Illuminate\Support\Facades\Mail::class,
'Notification' => Illuminate\Support\Facades\Notification::class,
'Password' => Illuminate\Support\Facades\Password::class,
'Queue' => Illuminate\Support\Facades\Queue::class,
'RateLimiter' => Illuminate\Support\Facades\RateLimiter::class,
'Redirect' => Illuminate\Support\Facades\Redirect::class,
// 'Redis' => Illuminate\Support\Facades\Redis::class,
'Request' => Illuminate\Support\Facades\Request::class,
'Response' => Illuminate\Support\Facades\Response::class,
'Route' => Illuminate\Support\Facades\Route::class,
'Schema' => Illuminate\Support\Facades\Schema::class,
'Session' => Illuminate\Support\Facades\Session::class,
'Storage' => Illuminate\Support\Facades\Storage::class,
'Str' => Illuminate\Support\Str::class,
'URL' => Illuminate\Support\Facades\URL::class,
'Validator' => Illuminate\Support\Facades\Validator::class,
'View' => Illuminate\Support\Facades\View::class,
'QrCode' => SimpleSoftwareIO\QrCode\Facades\QrCode::class,
'PDF' => Barryvdh\DomPDF\Facade\Pdf::class,
],
];

111
config/auth.php Normal file
View File

@ -0,0 +1,111 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Authentication Defaults
|--------------------------------------------------------------------------
|
| This option controls the default authentication "guard" and password
| reset options for your application. You may change these defaults
| as required, but they're a perfect start for most applications.
|
*/
'defaults' => [
'guard' => 'web',
'passwords' => 'users',
],
/*
|--------------------------------------------------------------------------
| Authentication Guards
|--------------------------------------------------------------------------
|
| Next, you may define every authentication guard for your application.
| Of course, a great default configuration has been defined for you
| here which uses session storage and the Eloquent user provider.
|
| All authentication drivers have a user provider. This defines how the
| users are actually retrieved out of your database or other storage
| mechanisms used by this application to persist your user's data.
|
| Supported: "session"
|
*/
'guards' => [
'web' => [
'driver' => 'session',
'provider' => 'users',
],
],
/*
|--------------------------------------------------------------------------
| User Providers
|--------------------------------------------------------------------------
|
| All authentication drivers have a user provider. This defines how the
| users are actually retrieved out of your database or other storage
| mechanisms used by this application to persist your user's data.
|
| If you have multiple user tables or models you may configure multiple
| sources which represent each model / table. These sources may then
| be assigned to any extra authentication guards you have defined.
|
| Supported: "database", "eloquent"
|
*/
'providers' => [
'users' => [
'driver' => 'eloquent',
'model' => App\Models\User::class,
],
// 'users' => [
// 'driver' => 'database',
// 'table' => 'users',
// ],
],
/*
|--------------------------------------------------------------------------
| Resetting Passwords
|--------------------------------------------------------------------------
|
| You may specify multiple password reset configurations if you have more
| than one user table or model in the application and you want to have
| separate password reset settings based on the specific user types.
|
| The expire time is the number of minutes that the reset token should be
| considered valid. This security feature keeps tokens short-lived so
| they have less time to be guessed. You may change this as needed.
|
*/
'passwords' => [
'users' => [
'provider' => 'users',
'table' => 'password_resets',
'expire' => 60,
'throttle' => 60,
],
],
/*
|--------------------------------------------------------------------------
| Password Confirmation Timeout
|--------------------------------------------------------------------------
|
| Here you may define the amount of seconds before a password confirmation
| times out and the user is prompted to re-enter their password via the
| confirmation screen. By default, the timeout lasts for three hours.
|
*/
'password_timeout' => 10800,
];

64
config/broadcasting.php Normal file
View File

@ -0,0 +1,64 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Broadcaster
|--------------------------------------------------------------------------
|
| This option controls the default broadcaster that will be used by the
| framework when an event needs to be broadcast. You may set this to
| any of the connections defined in the "connections" array below.
|
| Supported: "pusher", "ably", "redis", "log", "null"
|
*/
'default' => env('BROADCAST_DRIVER', 'null'),
/*
|--------------------------------------------------------------------------
| Broadcast Connections
|--------------------------------------------------------------------------
|
| Here you may define all of the broadcast connections that will be used
| to broadcast events to other systems or over websockets. Samples of
| each available type of connection are provided inside this array.
|
*/
'connections' => [
'pusher' => [
'driver' => 'pusher',
'key' => env('PUSHER_APP_KEY'),
'secret' => env('PUSHER_APP_SECRET'),
'app_id' => env('PUSHER_APP_ID'),
'options' => [
'cluster' => env('PUSHER_APP_CLUSTER'),
'useTLS' => true,
],
],
'ably' => [
'driver' => 'ably',
'key' => env('ABLY_KEY'),
],
'redis' => [
'driver' => 'redis',
'connection' => 'default',
],
'log' => [
'driver' => 'log',
],
'null' => [
'driver' => 'null',
],
],
];

110
config/cache.php Normal file
View File

@ -0,0 +1,110 @@
<?php
use Illuminate\Support\Str;
return [
/*
|--------------------------------------------------------------------------
| Default Cache Store
|--------------------------------------------------------------------------
|
| This option controls the default cache connection that gets used while
| using this caching library. This connection is used when another is
| not explicitly specified when executing a given caching function.
|
*/
'default' => env('CACHE_DRIVER', 'file'),
/*
|--------------------------------------------------------------------------
| 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: "apc", "array", "database", "file",
| "memcached", "redis", "dynamodb", "octane", "null"
|
*/
'stores' => [
'apc' => [
'driver' => 'apc',
],
'array' => [
'driver' => 'array',
'serialize' => false,
],
'database' => [
'driver' => 'database',
'table' => 'cache',
'connection' => null,
'lock_connection' => null,
],
'file' => [
'driver' => 'file',
'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' => '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 a RAM based store such as APC or Memcached, there might
| be other applications utilizing the same cache. So, we'll specify a
| value to get prefixed to all our keys so we can avoid collisions.
|
*/
'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_cache'),
];

34
config/cors.php Normal file
View File

@ -0,0 +1,34 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Cross-Origin Resource Sharing (CORS) Configuration
|--------------------------------------------------------------------------
|
| Here you may configure your settings for cross-origin resource sharing
| or "CORS". This determines what cross-origin operations may execute
| in web browsers. You are free to adjust these settings as needed.
|
| To learn more: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
|
*/
'paths' => ['api/*', 'sanctum/csrf-cookie'],
'allowed_methods' => ['*'],
'allowed_origins' => ['*'],
'allowed_origins_patterns' => [],
'allowed_headers' => ['*'],
'exposed_headers' => [],
'max_age' => 0,
'supports_credentials' => false,
];

147
config/database.php Normal file
View File

@ -0,0 +1,147 @@
<?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 all database work. Of course
| you may use many connections at once using the Database library.
|
*/
'default' => env('DB_CONNECTION', 'mysql'),
/*
|--------------------------------------------------------------------------
| Database Connections
|--------------------------------------------------------------------------
|
| Here are each of the database connections setup for your application.
| Of course, examples of configuring each database platform that is
| supported by Laravel is shown below to make development simple.
|
|
| All database work in Laravel is done through the PHP PDO facilities
| so make sure you have the driver for your particular database of
| choice installed on your machine before you begin development.
|
*/
'connections' => [
'sqlite' => [
'driver' => 'sqlite',
'url' => env('DATABASE_URL'),
'database' => env('DB_DATABASE', database_path('database.sqlite')),
'prefix' => '',
'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true),
],
'mysql' => [
'driver' => 'mysql',
'url' => env('DATABASE_URL'),
'host' => env('DB_HOST', '127.0.0.1'),
'port' => env('DB_PORT', '3306'),
'database' => env('DB_DATABASE', 'forge'),
'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', ''),
'unix_socket' => env('DB_SOCKET', ''),
'charset' => 'utf8mb4',
'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('DATABASE_URL'),
'host' => env('DB_HOST', '127.0.0.1'),
'port' => env('DB_PORT', '5432'),
'database' => env('DB_DATABASE', 'forge'),
'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', ''),
'charset' => 'utf8',
'prefix' => '',
'prefix_indexes' => true,
'schema' => 'public',
'sslmode' => 'prefer',
],
'sqlsrv' => [
'driver' => 'sqlsrv',
'url' => env('DATABASE_URL'),
'host' => env('DB_HOST', 'localhost'),
'port' => env('DB_PORT', '1433'),
'database' => env('DB_DATABASE', 'forge'),
'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', ''),
'charset' => 'utf8',
'prefix' => '',
'prefix_indexes' => true,
],
],
/*
|--------------------------------------------------------------------------
| 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 in the database.
|
*/
'migrations' => 'migrations',
/*
|--------------------------------------------------------------------------
| 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 APC or Memcached. Laravel makes it easy to dig right in.
|
*/
'redis' => [
'client' => env('REDIS_CLIENT', 'phpredis'),
'options' => [
'cluster' => env('REDIS_CLUSTER', 'redis'),
'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_database_'),
],
'default' => [
'url' => env('REDIS_URL'),
'host' => env('REDIS_HOST', '127.0.0.1'),
'password' => env('REDIS_PASSWORD', null),
'port' => env('REDIS_PORT', '6379'),
'database' => env('REDIS_DB', '0'),
],
'cache' => [
'url' => env('REDIS_URL'),
'host' => env('REDIS_HOST', '127.0.0.1'),
'password' => env('REDIS_PASSWORD', null),
'port' => env('REDIS_PORT', '6379'),
'database' => env('REDIS_CACHE_DB', '1'),
],
],
];

73
config/filesystems.php Normal file
View File

@ -0,0 +1,73 @@
<?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. Just store away!
|
*/
'default' => env('FILESYSTEM_DRIVER', 'local'),
/*
|--------------------------------------------------------------------------
| Filesystem Disks
|--------------------------------------------------------------------------
|
| Here you may configure as many filesystem "disks" as you wish, and you
| may even configure multiple disks of the same driver. Defaults have
| been setup for each driver as an example of the required options.
|
| Supported Drivers: "local", "ftp", "sftp", "s3"
|
*/
'disks' => [
'local' => [
'driver' => 'local',
'root' => storage_path('app'),
],
'public' => [
'driver' => 'local',
'root' => storage_path('app/public'),
'url' => env('APP_URL').'/storage',
'visibility' => 'public',
],
'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),
],
],
/*
|--------------------------------------------------------------------------
| 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'),
],
];

52
config/hashing.php Normal file
View File

@ -0,0 +1,52 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Hash Driver
|--------------------------------------------------------------------------
|
| This option controls the default hash driver that will be used to hash
| passwords for your application. By default, the bcrypt algorithm is
| used; however, you remain free to modify this option if you wish.
|
| Supported: "bcrypt", "argon", "argon2id"
|
*/
'driver' => 'bcrypt',
/*
|--------------------------------------------------------------------------
| Bcrypt Options
|--------------------------------------------------------------------------
|
| Here you may specify the configuration options that should be used when
| passwords are hashed using the Bcrypt algorithm. This will allow you
| to control the amount of time it takes to hash the given password.
|
*/
'bcrypt' => [
'rounds' => env('BCRYPT_ROUNDS', 10),
],
/*
|--------------------------------------------------------------------------
| Argon Options
|--------------------------------------------------------------------------
|
| Here you may specify the configuration options that should be used when
| passwords are hashed using the Argon algorithm. These will allow you
| to control the amount of time it takes to hash the given password.
|
*/
'argon' => [
'memory' => 1024,
'threads' => 2,
'time' => 2,
],
];

View File

@ -0,0 +1,16 @@
<?php
return [
'table_prefix' => 'indonesia_',
'route' => [
'enabled' => false,
'middleware' => ['web', 'auth'],
'prefix' => 'indonesia',
],
'view' => [
'layout' => 'ui::layouts.app',
],
'menu' => [
'enabled' => false,
],
];

132
config/livewire-tables.php Normal file
View File

@ -0,0 +1,132 @@
<?php
return [
/**
* Options: tailwind | bootstrap-4 | bootstrap-5.
*/
'theme' => 'bootstrap-5',
/**
* Filter Frontend Asset Options
*/
/**
* Cache Rappasoft Frontend Assets
*/
'cache_assets' => false,
/**
* Enable or Disable automatic injection of core assets
*/
'inject_core_assets_enabled' => false,
/**
* Enable or Disable automatic injection of third-party assets
*/
'inject_third_party_assets_enabled' => false,
/**
* Enable Blade Directives (Not required if automatically injecting or using bundler approaches)
*/
'enable_blade_directives' => false,
/**
* Use JSON Translations instead of PHP Array
*/
'use_json_translations' => false,
/**
* Customise Script & Styles Paths
*/
'script_base_path' => '/rappasoft/laravel-livewire-tables',
/**
* Filter Default Configuration Options
*
* */
/**
* Configuration options for DateFilter
*/
'dateFilter' => [
'defaultConfig' => [
'format' => 'Y-m-d',
'pillFormat' => 'd M Y', // Used to display in the Filter Pills
],
],
/**
* Configuration options for DateTimeFilter
*/
'dateTimeFilter' => [
'defaultConfig' => [
'format' => 'Y-m-d\TH:i',
'pillFormat' => 'd M Y - H:i', // Used to display in the Filter Pills
],
],
/**
* Configuration options for DateRangeFilter
*/
'dateRange' => [
'defaultOptions' => [],
'defaultConfig' => [
'allowInput' => true, // Allow manual input of dates
'altFormat' => 'F j, Y', // Date format that will be displayed once selected
'ariaDateFormat' => 'F j, Y', // An aria-friendly date format
'dateFormat' => 'Y-m-d', // Date format that will be received by the filter
'earliestDate' => null, // The earliest acceptable date
'latestDate' => null, // The latest acceptable date
'locale' => 'en', // The default locale
],
],
/**
* Configuration options for NumberRangeFilter
*/
'numberRange' => [
'defaultOptions' => [
'min' => 0, // The default start value
'max' => 100, // The default end value
],
'defaultConfig' => [
'minRange' => 0, // The minimum possible value
'maxRange' => 100, // The maximum possible value
'suffix' => '', // A suffix to append to the values when displayed
'prefix' => '', // A prefix to prepend to the values when displayed
],
],
/**
* Configuration options for SelectFilter
*/
'selectFilter' => [
'defaultOptions' => [],
'defaultConfig' => [],
],
/**
* Configuration options for MultiSelectFilter
*/
'multiSelectFilter' => [
'defaultOptions' => [],
'defaultConfig' => [],
],
/**
* Configuration options for MultiSelectDropdownFilter
*/
'multiSelectDropdownFilter' => [
'defaultOptions' => [],
'defaultConfig' => [],
],
/**
* Configuration options for Events
*/
'events' => [
/**
* Enable or disable passing the user from Laravel's Auth service to events
*/
'enableUserForEvent' => true,
],
];

118
config/logging.php Normal file
View File

@ -0,0 +1,118 @@
<?php
use Monolog\Handler\NullHandler;
use Monolog\Handler\StreamHandler;
use Monolog\Handler\SyslogUdpHandler;
return [
/*
|--------------------------------------------------------------------------
| Default Log Channel
|--------------------------------------------------------------------------
|
| This option defines the default log channel that gets used when writing
| messages to the logs. The name specified in this option should match
| one of the channels defined in the "channels" configuration array.
|
*/
'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' => env('LOG_DEPRECATIONS_CHANNEL', 'null'),
/*
|--------------------------------------------------------------------------
| Log Channels
|--------------------------------------------------------------------------
|
| Here you may configure the log channels for your application. Out of
| the box, Laravel uses the Monolog PHP logging library. This gives
| you a variety of powerful log handlers / formatters to utilize.
|
| Available Drivers: "single", "daily", "slack", "syslog",
| "errorlog", "monolog",
| "custom", "stack"
|
*/
'channels' => [
'stack' => [
'driver' => 'stack',
'channels' => ['single'],
'ignore_exceptions' => false,
],
'single' => [
'driver' => 'single',
'path' => storage_path('logs/laravel.log'),
'level' => env('LOG_LEVEL', 'debug'),
],
'daily' => [
'driver' => 'daily',
'path' => storage_path('logs/laravel.log'),
'level' => env('LOG_LEVEL', 'debug'),
'days' => 14,
],
'slack' => [
'driver' => 'slack',
'url' => env('LOG_SLACK_WEBHOOK_URL'),
'username' => 'Laravel Log',
'emoji' => ':boom:',
'level' => env('LOG_LEVEL', 'critical'),
],
'papertrail' => [
'driver' => 'monolog',
'level' => env('LOG_LEVEL', 'debug'),
'handler' => SyslogUdpHandler::class,
'handler_with' => [
'host' => env('PAPERTRAIL_URL'),
'port' => env('PAPERTRAIL_PORT'),
],
],
'stderr' => [
'driver' => 'monolog',
'level' => env('LOG_LEVEL', 'debug'),
'handler' => StreamHandler::class,
'formatter' => env('LOG_STDERR_FORMATTER'),
'with' => [
'stream' => 'php://stderr',
],
],
'syslog' => [
'driver' => 'syslog',
'level' => env('LOG_LEVEL', 'debug'),
],
'errorlog' => [
'driver' => 'errorlog',
'level' => env('LOG_LEVEL', 'debug'),
],
'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 any email
| messages sent by your application. Alternative mailers may be setup
| and used as needed; however, this mailer will be used by default.
|
*/
'default' => env('MAIL_MAILER', 'smtp'),
/*
|--------------------------------------------------------------------------
| 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 to be used while
| sending an e-mail. You will specify which one you are using for your
| mailers below. You are free to add additional mailers as required.
|
| Supported: "smtp", "sendmail", "mailgun", "ses",
| "postmark", "log", "array", "failover"
|
*/
'mailers' => [
'smtp' => [
'transport' => 'smtp',
'host' => env('MAIL_HOST', 'smtp.mailgun.org'),
'port' => env('MAIL_PORT', 587),
'encryption' => env('MAIL_ENCRYPTION', 'tls'),
'username' => env('MAIL_USERNAME'),
'password' => env('MAIL_PASSWORD'),
'timeout' => null,
'auth_mode' => null,
],
'ses' => [
'transport' => 'ses',
],
'mailgun' => [
'transport' => 'mailgun',
],
'postmark' => [
'transport' => 'postmark',
],
'sendmail' => [
'transport' => 'sendmail',
'path' => env('MAIL_SENDMAIL_PATH', '/usr/sbin/sendmail -t -i'),
],
'log' => [
'transport' => 'log',
'channel' => env('MAIL_LOG_CHANNEL'),
],
'array' => [
'transport' => 'array',
],
'failover' => [
'transport' => 'failover',
'mailers' => [
'smtp',
'log',
],
],
],
/*
|--------------------------------------------------------------------------
| Global "From" Address
|--------------------------------------------------------------------------
|
| You may wish for all e-mails 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 e-mails that are sent by your application.
|
*/
'from' => [
'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'),
'name' => env('MAIL_FROM_NAME', 'Example'),
],
/*
|--------------------------------------------------------------------------
| Markdown Mail Settings
|--------------------------------------------------------------------------
|
| If you are using Markdown based email rendering, you may configure your
| theme and component paths here, allowing you to customize the design
| of the emails. Or, you may simply stick with the Laravel defaults!
|
*/
'markdown' => [
'theme' => 'default',
'paths' => [
resource_path('views/vendor/mail'),
],
],
];

186
config/permission.php Normal file
View File

@ -0,0 +1,186 @@
<?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,
/*
* 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,
/*
* 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.
*/
// 'permission.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',
],
];

93
config/queue.php Normal file
View File

@ -0,0 +1,93 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Queue Connection Name
|--------------------------------------------------------------------------
|
| Laravel's queue API supports an assortment of back-ends via a single
| API, giving you convenient access to each back-end using the same
| syntax for every one. Here you may define a default connection.
|
*/
'default' => env('QUEUE_CONNECTION', 'sync'),
/*
|--------------------------------------------------------------------------
| Queue Connections
|--------------------------------------------------------------------------
|
| Here you may configure the connection information for each server that
| is used by your application. A default configuration has been added
| for each back-end shipped with Laravel. You are free to add more.
|
| Drivers: "sync", "database", "beanstalkd", "sqs", "redis", "null"
|
*/
'connections' => [
'sync' => [
'driver' => 'sync',
],
'database' => [
'driver' => 'database',
'table' => 'jobs',
'queue' => 'default',
'retry_after' => 90,
'after_commit' => false,
],
'beanstalkd' => [
'driver' => 'beanstalkd',
'host' => 'localhost',
'queue' => 'default',
'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' => 'default',
'queue' => env('REDIS_QUEUE', 'default'),
'retry_after' => 90,
'block_for' => null,
'after_commit' => false,
],
],
/*
|--------------------------------------------------------------------------
| Failed Queue Jobs
|--------------------------------------------------------------------------
|
| These options configure the behavior of failed queue job logging so you
| can control which database and table are used to store the jobs that
| have failed. You may change them to any database / table you wish.
|
*/
'failed' => [
'driver' => env('QUEUE_FAILED_DRIVER', 'database-uuids'),
'database' => env('DB_CONNECTION', 'mysql'),
'table' => 'failed_jobs',
],
];

65
config/sanctum.php Normal file
View File

@ -0,0 +1,65 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Stateful Domains
|--------------------------------------------------------------------------
|
| Requests from the following domains / hosts will receive stateful API
| authentication cookies. Typically, these should include your local
| and production domains which access your API via a frontend SPA.
|
*/
'stateful' => explode(',', env('SANCTUM_STATEFUL_DOMAINS', sprintf(
'%s%s',
'localhost,localhost:3000,127.0.0.1,127.0.0.1:8000,::1',
env('APP_URL') ? ','.parse_url(env('APP_URL'), PHP_URL_HOST) : ''
))),
/*
|--------------------------------------------------------------------------
| Sanctum Guards
|--------------------------------------------------------------------------
|
| This array contains the authentication guards that will be checked when
| Sanctum is trying to authenticate a request. If none of these guards
| are able to authenticate the request, Sanctum will use the bearer
| token that's present on an incoming request for authentication.
|
*/
'guard' => ['web'],
/*
|--------------------------------------------------------------------------
| Expiration Minutes
|--------------------------------------------------------------------------
|
| This value controls the number of minutes until an issued token will be
| considered expired. If this value is null, personal access tokens do
| not expire. This won't tweak the lifetime of first-party sessions.
|
*/
'expiration' => null,
/*
|--------------------------------------------------------------------------
| Sanctum Middleware
|--------------------------------------------------------------------------
|
| When authenticating your first-party SPA with Sanctum you may need to
| customize some of the middleware Sanctum uses while processing the
| request. You may change the middleware listed below as required.
|
*/
'middleware' => [
'verify_csrf_token' => App\Http\Middleware\VerifyCsrfToken::class,
'encrypt_cookies' => App\Http\Middleware\EncryptCookies::class,
],
];

33
config/services.php Normal file
View File

@ -0,0 +1,33 @@
<?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.
|
*/
'mailgun' => [
'domain' => env('MAILGUN_DOMAIN'),
'secret' => env('MAILGUN_SECRET'),
'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'),
],
'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'),
],
];

201
config/session.php Normal file
View File

@ -0,0 +1,201 @@
<?php
use Illuminate\Support\Str;
return [
/*
|--------------------------------------------------------------------------
| Default Session Driver
|--------------------------------------------------------------------------
|
| This option controls the default session "driver" that will be used on
| requests. By default, we will use the lightweight native driver but
| you may specify any of the other wonderful drivers provided here.
|
| Supported: "file", "cookie", "database", "apc",
| "memcached", "redis", "dynamodb", "array"
|
*/
'driver' => env('SESSION_DRIVER', 'file'),
/*
|--------------------------------------------------------------------------
| 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 immediately expire on the browser closing, set that option.
|
*/
'lifetime' => env('SESSION_LIFETIME', 120),
'expire_on_close' => false,
/*
|--------------------------------------------------------------------------
| Session Encryption
|--------------------------------------------------------------------------
|
| This option allows you to easily specify that all of your session data
| should be encrypted before it is stored. All encryption will be run
| automatically by Laravel and you can use the Session like normal.
|
*/
'encrypt' => false,
/*
|--------------------------------------------------------------------------
| Session File Location
|--------------------------------------------------------------------------
|
| When using the native session driver, we need a location where session
| files may be stored. A default has been set for you but a different
| location may be specified. This is only needed for file sessions.
|
*/
'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', null),
/*
|--------------------------------------------------------------------------
| Session Database Table
|--------------------------------------------------------------------------
|
| When using the "database" session driver, you may specify the table we
| should use to manage the sessions. Of course, a sensible default is
| provided for you; however, you are free to change this as needed.
|
*/
'table' => 'sessions',
/*
|--------------------------------------------------------------------------
| Session Cache Store
|--------------------------------------------------------------------------
|
| While using one of the framework's cache driven session backends you may
| list a cache store that should be used for these sessions. This value
| must match with one of the application's configured cache "stores".
|
| Affects: "apc", "dynamodb", "memcached", "redis"
|
*/
'store' => env('SESSION_STORE', null),
/*
|--------------------------------------------------------------------------
| 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 cookie used to identify a session
| instance by ID. The name specified here will get used every time a
| new session cookie is created by the framework for every driver.
|
*/
'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 are free to change this when necessary.
|
*/
'path' => '/',
/*
|--------------------------------------------------------------------------
| Session Cookie Domain
|--------------------------------------------------------------------------
|
| Here you may change the domain of the cookie used to identify a session
| in your application. This will determine which domains the cookie is
| available to in your application. A sensible default has been set.
|
*/
'domain' => env('SESSION_DOMAIN', null),
/*
|--------------------------------------------------------------------------
| 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. You are free to modify this option if needed.
|
*/
'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" since this is a secure default value.
|
| Supported: "lax", "strict", "none", null
|
*/
'same_site' => 'lax',
];

36
config/view.php Normal file
View File

@ -0,0 +1,36 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| View Storage Paths
|--------------------------------------------------------------------------
|
| Most templating systems load templates from disk. Here you may specify
| an array of paths that should be checked for your views. Of course
| the usual Laravel view path has already been registered for you.
|
*/
'paths' => [
resource_path('views'),
],
/*
|--------------------------------------------------------------------------
| Compiled View Path
|--------------------------------------------------------------------------
|
| This option determines where all the compiled Blade templates will be
| stored for your application. Typically, this is within the storage
| directory. However, as usual, you are free to change this value.
|
*/
'compiled' => env(
'VIEW_COMPILED_PATH',
realpath(storage_path('framework/views'))
),
];

1
database/.gitignore vendored Normal file
View File

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

View File

@ -0,0 +1,41 @@
<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
use Illuminate\Support\Facades\Hash;
class UserFactory extends Factory
{ protected static ?string $password;
/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{
return [
'name' => $this->faker->name(),
'email' => $this->faker->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.
*
* @return \Illuminate\Database\Eloquent\Factories\Factory
*/
public function unverified()
{
return $this->state(function (array $attributes) {
return [
'email_verified_at' => null,
];
});
}
}

View File

@ -0,0 +1,38 @@
<?php
use App\Models\User;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Schema;
class CreateUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('users', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->string('email')->unique();
$table->timestamp('email_verified_at')->nullable();
$table->string('password');
$table->string('avatar')->default('avatar-1.jpg');
$table->rememberToken();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('users');
}
}

View File

@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreatePasswordResetsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('password_resets', function (Blueprint $table) {
$table->string('email')->index();
$table->string('token');
$table->timestamp('created_at')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('password_resets');
}
}

View File

@ -0,0 +1,36 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateFailedJobsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
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.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('failed_jobs');
}
}

View File

@ -0,0 +1,36 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreatePersonalAccessTokensTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('personal_access_tokens', function (Blueprint $table) {
$table->id();
$table->morphs('tokenable');
$table->string('name');
$table->string('token', 64)->unique();
$table->text('abilities')->nullable();
$table->timestamp('last_used_at')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('personal_access_tokens');
}
}

View File

@ -0,0 +1,138 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
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';
if (empty($tableNames)) {
throw new \Exception('Error: config/permission.php not loaded. Run [php artisan config:clear] and try again.');
}
if ($teams && empty($columnNames['team_foreign_key'] ?? null)) {
throw new \Exception('Error: team_foreign_key on config/permission.php not loaded. Run [php artisan config:clear] and try again.');
}
Schema::create($tableNames['permissions'], function (Blueprint $table) {
$table->bigIncrements('id'); // permission id
$table->string('name'); // For MySQL 8.0 use string('name', 125);
$table->string('guard_name'); // For MySQL 8.0 use string('guard_name', 125);
$table->timestamps();
$table->unique(['name', 'guard_name']);
});
Schema::create($tableNames['roles'], function (Blueprint $table) use ($teams, $columnNames) {
$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 MySQL 8.0 use string('name', 125);
$table->string('guard_name'); // For MySQL 8.0 use string('guard_name', 125);
$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'], 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'], 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'], 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,31 @@
<?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('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('sessions');
}
};

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('themes', function (Blueprint $table) {
$table->id();
$table->string('data_layout')->default('vertical');
$table->string('data_topbar')->default('light');
$table->string('data_sidebar')->default('dark');
$table->string('data_sidebar_size')->default('lg');
$table->string('data_preloader')->default('disable');
$table->string('data_layout_width')->default('fluid');
$table->string('data_layout_style')->default('detached');
$table->string('data_layout_position')->default('fixed');
$table->unsignedInteger('user_id');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('themes');
}
};

View File

@ -0,0 +1,30 @@
<?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('sensors', function (Blueprint $table) {
$table->id();
$table->float('ldr_value');
$table->float('sound_value');
$table->boolean('motion_detected');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('sensors');
}
};

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('lamp_status', function (Blueprint $table) {
$table->id();
$table->enum('status', ['ON', 'OFF', 'AUTO'])->default('OFF');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('lamp_status');
}
};

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('control_logs', function (Blueprint $table) {
$table->id();
$table->enum('action', ['ON', 'OFF']);
$table->string('triggered_by'); // Nama user admin
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('control_logs');
}
};

View File

@ -0,0 +1,18 @@
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*/
public function run(): void
{
$this->call(UserRolePermissionSeeder::class);
$this->call(LampStatusSeeder::class);
}
}

View File

@ -0,0 +1,28 @@
<?php
namespace Database\Seeders;
use App\Models\Lamp;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
class LampStatusSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run()
{
// Data lamp_status
$lampStatuses = [
[
'status' => 'ON',
],
];
// Insert data ke tabel lamp_status
foreach ($lampStatuses as $lampStatus) {
Lamp::create($lampStatus);
}
}
}

View File

@ -0,0 +1,71 @@
<?php
namespace Database\Seeders;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use Illuminate\Support\Str;
use App\Models\User;
use Illuminate\Support\Facades\Hash;
use Spatie\Permission\Models\Role;
use Spatie\Permission\Models\Permission;
class UserRolePermissionSeeder extends Seeder
{
/**
* @return void
*/
public function run()
{
$default_user_value = [
'email_verified_at' => now(),
'password' => Hash::make('password'),
'remember_token' => Str::random(10),
];
// Ubah struktur ke multi-dimensional array
$users_by_type = [
'superadmin' => [],
];
$users = [
[
'email' => 'superadmin@gmail.com',
'name' => 'Super Admin',
'type' => 'superadmin',
],
];
foreach ($users as $user_data) {
$type = $user_data['type'];
unset($user_data['type']);
$user = User::create(array_merge($user_data, $default_user_value));
// Tambahkan user ke array sesuai type
$users_by_type[$type][] = $user;
}
$role_superadmin = Role::create(['name' => 'superadmin']);
$permissions = [
'create user',
'edit user',
'delete user',
'read user',
];
foreach ($permissions as $permission) {
Permission::create(['name' => $permission]);
}
// Assign roles ke semua user berdasarkan type
foreach ($users_by_type['superadmin'] as $user) {
$user->assignRole($role_superadmin);
}
}
}

208
lang/ae/translation.php Normal file
View File

@ -0,0 +1,208 @@
<?php
return [
"menu" => "قائمة الطعام",
"dashboards" => "لوحات القيادة",
"analytics" => "تحليلات",
"crm" => "CRM",
"ecommerce" => "التجارة الإلكترونية",
"crypto" => "تشفير",
"projects" => "المشاريع",
"nft" => "NFT",
"job" => "مهنة",
"apps" => "تطبيقات",
"calendar" => "تقويم",
"chat" => "دردشة",
"email" => "البريد الإلكتروني",
"mailbox" => "صندوق بريد",
"email-templates" => "قوالب البريد الإلكتروني",
"basic-action" => "الإجراء الأساسي",
"ecommerce-action" => "إجراء التجارة الإلكترونية",
"products" => "منتجات",
"product-Details" => "تفاصيل المنتج",
"create-product" => "إنشاء منتج",
"orders" => "ترتيب",
"order-details" => "تفاصيل الطلب",
"customers" => "عملاء",
"shopping-cart" => "عربة التسوق",
"checkout" => "الدفع",
"sellers" => "الباعة",
"sellers-details" => "تفاصيل البائع",
"list" => "قائمة",
"overview" => "ملخص",
"create-project" => "أنشئ مشروعًا",
"tasks" => "مهام",
"kanbanboard" => "مجلس كانبان",
"list-view" => "عرض القائمة",
"task-details" => "تفاصيل المهمة",
"contacts" => "جهات الاتصال",
"companies" => "شركات",
"deals" => "صفقات",
"leads" => "يؤدي",
"transactions" => "المعاملات",
"buy-sell" => "شراء بيع",
"my-wallet" => "محفظتى",
"ico-list" => "قائمة ICO",
"kyc-application" => "تطبيق KYC",
"invoices" => "الفواتير",
"details" => "تفاصيل",
"create-invoice" => "تفاصيل",
"supprt-tickets" => "تذاكر الدعم الفني",
"ticket-details" => "تفاصيل التذكرة",
"nft-marketplace" => "سوق NFT",
"marketplace" => "المتجر",
"explore-now" => "استكشف الآن",
"live-auction" => "المزاد المباشر",
"item-details" => "تفاصيل العنصر",
"collections" => "المجموعات",
"creators" => "المبدعين",
"ranking" => "تصنيف",
"wallet-connect" => "ربط المحفظة",
"create-nft" => "إنشاء NFT",
"file-manager" => "مدير الملفات",
"to-do" => "لكى يفعل",
"jobs" => "وظائف",
"statistics" => "إحصائيات",
"job-lists" => "قوائم الوظائف",
"candidate-lists" => "قائمة المرشحين",
"grid-view" => "عرض شبكي",
"application" => "طلب",
"new-job" => "وظيفة جديدة",
"companies-list" => "قائمة الشركات",
"job-categories" => "فئات الوظائف",
"layouts" => "فئات الوظائف",
"api-key" => "مفتاح API",
"horizontal" => "أفقي",
"detached" => "منفصل",
"two-column" => "عمودان",
"hovered" => "حلق",
"pages" => "الصفحات",
"authentication" => "المصادقة",
"signin" => "تسجيل الدخول",
"basic" => "أساسي",
"cover" => "التغطية",
"signup" => "اشتراك",
"password-reset" => "إعادة تعيين كلمة المرور",
"password-create" => "إنشاء كلمة المرور",
"lock-screen" => "اقفل الشاشة",
"logout" => "تسجيل خروج",
"success-message" => "نجاح رسالة",
"two-step-verification" => "التحقق بخطوتين",
"errors" => "أخطاء",
"404-basic" => "أربعة مائة وأربعة أساسي",
"404-cover" => "غلاف أربعة مائة وأربعة",
"404-alt" => "أربعة مائة وأربعة بديل",
"500" => "خمسة مائة",
"offline-page" => "الصفحة غير المتصلة",
"starter" => "بداية",
"profile" => "الملف الشخصي",
"simple-page" => "صفحة بسيطة",
"settings" => "إعدادات",
"team" => "فريق",
"timeline" => "الجدول الزمني",
"faqs" => "أسئلة وأجوبة",
"pricing" => "التسعير",
"gallery" => "صالة عرض",
"maintenance" => "اعمال صيانة",
"coming-soon" => "قريبا",
"sitemap" => "خريطة الموقع",
"search-results" => "نتائج البحث",
"privacy-policy" => "سياسة الخصوصية",
"landing" => "الهبوط",
"one-page" => "صفحة واحدة",
"nft-landing" => "NFT الهبوط",
"components" => "عناصر",
"base-ui" => "واجهة المستخدم الأساسية",
"alerts" => "تنبيهات",
"badges" => "ارات",
"buttons" => "أزرار",
"colors" => "الألوان",
"cards" => "البطاقات",
"carousel" => "دائري",
"dropdowns" => "هبوط قطرة",
"grid" => "جريد",
"images" => "الصور",
"tabs" => "نوافذ التبويب",
"accordion-collapse" => "الأكورديون والانهيار",
"modals" => "الوسائط",
"offcanvas" => "أوفاكانفاس",
"placeholders" => "العناصر النائبة",
"progress" => "تقدم",
"notifications" => "إشعارات",
"media-object" => "كائن الوسائط",
"embed-video" => "تضمين الفيديو",
"typography" => "الطباعة",
"lists" => "القوائم",
"general" => "عام",
"ribbons" => "شرائط",
"utilities" => "خدمات",
"advance-ui" => "واجهة المستخدم المتقدمة",
"new" => "جديد",
"hot" => "حار",
"sweet-alerts" => "تنبيهات حلوة",
"nestable-list" => "قائمة عش",
"scrollbar" => "شريط التمرير",
"animation" => "الرسوم المتحركة",
"tour" => "رحلة",
"swiper-slider" => "سويبر سلايدر",
"ratings" => "التقييمات",
"highlight" => "تسليط الضوء",
"scrollSpy" => "التمرير",
"widgets" => "الحاجيات",
"forms" => "نماذج",
"basic-elements" => "العناصر الأساسية",
"form-select" => "حدد النموذج",
"checkboxs-radios" => "خانة الاختيار والراديو",
"pickers" => "جامعي",
"input-masks" => "أقنعة الإدخال",
"advanced" => "متقدم",
"range-slider" => "نطاق المنزلق",
"validation" => "تصديق",
"wizard" => "ساحر",
"editors" => "المحررين",
"file-uploads" => "تحميلات الملف",
"form-layouts" => "تخطيطات النموذج",
"select2" => "حدد 2",
"tables" => "الجداول",
"basic-tables" => "الجداول الأساسية",
"grid-js" => "شبكة شبيبة",
"list-js" => "قائمة شبيبة",
"datatables" => "جداول البيانات",
"charts" => "الرسوم البيانية",
"apexcharts" => "أبكسشارتس",
"line" => "خط",
"area" => "منطقة",
"column" => "عمودي",
"bar" => "شريط",
"mixed" => "مختلط",
"candlstick" => "شمعدان",
"boxplot" => "مربع مؤامرة",
"bubble" => "فقاعة",
"scatter" => "مبعثر",
"heatmap" => "خريطة الحرارة",
"treemap" => "خريطة شجرة",
"pie" => "فطيرة",
"radialbar" => "شعاعي",
"radar" => "رادار",
"polar-area" => "المنطقة القطبية",
"chartjs" => "تشارتجس",
"echarts" => "الصدى",
"icons" => "الصدى",
"remix" => "ريمكس",
"boxicons" => "بوكسيكونس",
"material-design" => "تصميم المواد",
"line-awesome" => "خط رائع",
"feather" => "ريشة",
"crypto-svg" => "تشفير SVG",
"maps" => "خرائط",
"google" => "جوجل",
"vector" => "المتجه",
"leaflet" => "منشور",
"multi-level" => "متعدد المستويات",
"level-1.1" => "المستوى 1.1",
"level-1.2" => "المستوى 1.2",
"level-2.1" => "المستوى 2.1",
"level-2.2" => "المستوى 2.2",
"level-3.1" => "المستوى 3.1",
"level-3.2" => "المستوى 3.2",
];
?>

227
lang/ch/translation.php Normal file
View File

@ -0,0 +1,227 @@
<?php
return [
"menu"=>"菜单",
"dashboards"=>"仪表板",
"analytics"=>"分析",
"crm"=>"客户关系管理",
"ecommerce"=>"电子商务",
"crypto"=>"加密货币",
"projects"=>"项目",
"apps"=>"应用",
"calendar"=>"日历",
"chat"=>"聊天",
"mailbox"=>"邮箱",
"products"=>"产品",
"product-Details"=>"产品详情",
"create-product"=>"创建产品",
"orders"=>"命令",
"order-details"=>"订单详细信息",
"customers"=>"顾客",
"shopping-cart"=>"购物车",
"checkout"=>"查看",
"sellers"=>"卖家",
"sellers-details"=>"卖家详情",
"list"=>"列表",
"overview"=>"概述",
"create-project"=>"创建项目",
"tasks"=>"任务",
"kanbanboard"=>"看板",
"list-view"=>"列表显示",
"task-details"=>"任务详情",
"contacts"=>"联系人",
"companies"=>"公司",
"deals"=>"交易",
"leads"=>"潜在客户",
"transactions"=>"交易",
"buy-sell"=>"买卖",
"my-wallet"=>"我的钱包",
"ico-list"=>"ICO列表",
"kyc-application"=>"KYC 申请",
"invoices"=>"发票",
"details"=>"细节",
"create-invoice"=>"创建发票",
"supprt-tickets"=>"支持票",
"ticket-details"=>"门票详情",
"layouts"=>"布局",
"horizontal"=>"水平的",
"detached"=>"分离式",
"two-column"=>"两列",
"hovered"=>"悬停",
"pages"=>"页面",
"authentication"=>"验证",
"signin"=>"登入",
"basic"=>"基本的",
"cover"=>"覆盖",
"signup"=>"报名",
"password-reset"=>"重设密码",
"password-create"=>"重设密码",
"lock-screen"=>"锁屏",
"logout"=>"登出",
"success-message"=>"成功讯息",
"two-step-verification"=>"两步验证",
"errors"=>"错误",
"404-basic"=>"404 基本款",
"404-cover"=>"404封面",
"404-alt"=>"第404章",
"500"=>"五百",
"offline-page"=>"離線頁面",
"starter"=>"起动机",
"profile"=>"轮廓",
"simple-page"=>"简单页面",
"settings"=>"设置",
"team"=>"团队",
"timeline"=>"时间线",
"faqs"=>"常见问题",
"pricing"=>"价钱",
"gallery"=>"画廊",
"maintenance"=>"维护",
"coming-soon"=>"即将推出",
"sitemap"=>"网站地图",
"search-results"=>"搜索结果",
"components"=>"组件",
"base-ui"=>"基本用户界面",
"alerts"=>"警报",
"badges"=>"徽章",
"buttons"=>"纽扣",
"colors"=>"颜色",
"cards"=>"",
"carousel"=>"旋转木马",
"dropdowns"=>"下拉菜单",
"grid"=>"网格",
"images"=>"图片",
"tabs"=>"标签",
"accordion-collapse"=>"手风琴与折叠",
"modals"=>"模态",
"offcanvas"=>"画布外",
"placeholders"=>"占位符",
"progress"=>"进步",
"notifications"=>"通知",
"media-object"=>"媒体对象",
"embed-video"=>"嵌入视频",
"typography"=>"排版",
"lists"=>"列表",
"general"=>"一般的",
"ribbons"=>"丝带",
"utilities"=>"实用程序",
"advance-ui"=>"高级用户界面",
"new"=>"新的",
"sweet-alerts"=>"甜蜜的警报",
"nestable-list"=>"可嵌套列表",
"scrollbar"=>"滚动条",
"animation"=>"动画片",
"tour"=>"旅游",
"swiper-slider"=>"滑动滑块",
"ratings"=>"收视率",
"highlight"=>"强调",
"scrollSpy"=>"滚动间谍",
"widgets"=>"小部件",
"forms"=>"形式",
"basic-elements"=>"基本要素",
"form-select"=>"表格选择",
"checkboxs-radios"=>"复选框和收音机",
"pickers"=>"拣货员",
"input-masks"=>"输入掩码",
"advanced"=>"先进的",
"range-slider"=>"范围滑块",
"validation"=>"验证",
"wizard"=>"向导",
"editors"=>"编辑",
"file-uploads"=>"文件上传",
"form-layouts"=>"表单布局",
"tables"=>"",
"basic-tables"=>"基本表",
"grid-js"=>"网格 Js",
"list-js"=>"列出 Js",
"charts"=>"图表",
"apexcharts"=>"顶点图",
"line"=>"线",
"area"=>"区域",
"column"=>"柱子",
"bar"=>"酒吧",
"mixed"=>"混合",
"candlstick"=>"烛台",
"boxplot"=>"箱形图",
"bubble"=>"气泡",
"scatter"=>"分散",
"heatmap"=>"热图",
"treemap"=>"树状图",
"pie"=>"馅饼",
"radialbar"=>"径向杆",
"radar"=>"雷达",
"polar-area"=>"极地",
"chartjs"=>"Chartjs",
"echarts"=>"图表",
"icons"=>"图标",
"remix"=>"混音",
"boxicons"=>"方框图标",
"material-design"=>"材料设计",
"line-awesome"=>"线真棒",
"feather"=>"羽毛",
"maps"=>"地图",
"google"=>"谷歌",
"vector"=>"向量",
"leaflet"=>"传单",
"multi-level"=>"多层次",
"level-1.1"=>"1.1级",
"level-1.2"=>"1.2级",
"level-2.1"=>"2.1级",
"level-2.2"=>"2.2级",
"level-3.1"=>"3.1级",
"level-3.2"=>"3.2级",
"project-list"=>"项目列表",
"Apex_Line_Chart" => "顶点折线图",
"Apex_Area_Chart" => "顶点面积图",
"Apex_Column_Chart" => "顶点柱形图",
"Apex_Bar_Chart" => "顶点条形图",
"Apex_Mixed_Chart" => "Apex 混合图表",
"Apex_Timeline_Chart" => "Apex 时间线图",
"Apex_Candlstick_Chart" => "Apex 烛台图",
"Apex_Boxplot_Chart" => "Apex 箱线图",
"Apex_Cubble_Chart" => "Apex 气泡图",
"Apex_Scatter_Chart" => "顶点散点图",
"Apex_Heatmap_Chart" => "Apex 热图图表",
"Apex_Treemap_Chart" => "Apex 树状图",
"Apex_Pie_Chart" => "顶点饼图",
"Apex_Radialbar_Chart" => "顶点径向条形图",
"Apex_Line_Chart" => "顶点折线图",
"Apex_Radar_Chart" => "Apex 雷达图",
"Apex_Polar_area_Chart" => "Apex 极地区域图",
"nft"=> "NFT",
"email"=> "电子邮件",
"email-templates"=>"电子邮件模板",
"basic-action"=> "基本动作",
"ecommerce-action"=> "电子商务行动",
"nft-marketplace"=> "NFT 市场",
"marketplace"=> "市场",
"explore-now"=> "立即探索",
"live-auction"=> "现场拍卖",
"item-details"=> "项目详情",
"collections"=> "收藏品",
"creators"=> "创作者",
"ranking"=> "排行",
"wallet-connect"=> "钱包连接",
"create-nft"=> "创建 NFT",
"one-page"=> "一页",
"nft-landing"=> "NFT 登陆",
"landing" => "登陆",
"select2"=> "选择2",
"datatables"=> "数据表",
"file-manager"=> "文件管理器",
"to-do"=> "去做",
"crypto-svg"=> "加密 SVG",
"job" => "工作",
"jobs" => "工作",
"statistics" => "统计数据",
"job-lists" => "工作清单",
"candidate-lists" => "候选名单",
"grid-view" => "网格视图",
"application" => "应用",
"new-job" => "新工作",
"companies-list" => "公司名单",
"job-categories" => "工作类别",
"api-key" => "API Key",
"privacy-policy" => "降落",
"hot"=> "Hot",
];
?>

229
lang/en/translation.php Normal file
View File

@ -0,0 +1,229 @@
<?php
return [
"menu"=>"Menu",
"dashboards"=>"Dashboards",
"analytics"=>"Analytics",
"crm"=>"CRM",
"ecommerce"=>"Ecommerce",
"crypto"=>"Crypto",
"projects"=>"Projects",
"apps" =>"Apps",
"calendar"=>"Calendar",
"chat"=>"Chat",
"mailbox"=>"Mailbox",
"products"=>"Products",
"product-Details"=>"Product Details",
"create-product"=>"Create Product",
"orders"=>"Orders",
"order-details"=>"Order Details",
"customers"=>"Customers",
"shopping-cart"=>"Shopping Cart",
"checkout"=>"Checkout",
"sellers"=>"Sellers",
"sellers-details"=> "Seller Details",
"list"=>"List",
"overview"=>"Overview",
"create-project"=>"Create Project",
"tasks"=>"Tasks",
"kanbanboard"=>"Kanban Board",
"list-view"=>"List View",
"task-details"=>"Task Details",
"contacts"=>"Contacts",
"companies"=>"Companies",
"deals"=>"Deals",
"leads"=>"Leads",
"transactions"=>"Transactions",
"buy-sell"=>"Buy & Sell",
"my-wallet"=>"My Wallet",
"ico-list"=>"ICO List",
"kyc-application"=>"KYC Application",
"invoices"=>"Invoices",
"details"=>"Invoice Details",
"create-invoice"=>"Create Invoice",
"supprt-tickets"=>"Support Tickets",
"ticket-details"=>"Ticket Details",
"layouts"=>"Layouts",
"horizontal"=>"Horizontal",
"detached"=>"Detached",
"two-column"=>"Two Column",
"hovered"=>"Hovered",
"pages"=>"Pages",
"authentication"=>"Authentication",
"signin"=>"Sign In",
"basic"=>"Basic",
"cover"=>"Cover",
"signup"=>"Sign Up",
"password-reset"=>"Password Reset",
"password-create"=>"Password Create",
"lock-screen"=>"Lock Screen",
"logout"=>"Logout",
"success-message"=>"Success Message",
"two-step-verification"=>"Two Step Verification",
"errors"=>"Errors",
"404-basic"=>"404 Basic",
"404-cover"=>"404 Cover",
"404-alt"=>"404 Alt",
"500"=>"500",
"offline-page"=>"Offline Page",
"starter"=>"Starter",
"profile"=>"Profile",
"simple-page"=>"Simple Page",
"settings"=>"Settings",
"team"=>"Team",
"timeline"=>"Timeline",
"faqs"=>"FAQs",
"pricing"=>"Pricing",
"gallery"=>"Gallery",
"maintenance"=>"Maintenance",
"coming-soon"=>"Coming Soon",
"sitemap"=>"Sitemap",
"search-results"=>"Search Results",
"components"=>"Components",
"base-ui"=>"Base UI",
"alerts"=>"Alerts",
"badges"=>"Badges",
"buttons"=>"Buttons",
"colors"=>"Colors",
"cards"=>"Cards",
"carousel"=>"Carousel",
"dropdowns"=>"Dropdowns",
"grid"=>"Grid",
"images"=>"Images",
"tabs"=>"Tabs",
"accordion-collapse"=>"Accordion & Collapse",
"modals"=>"Modals",
"offcanvas"=>"Offcanvas",
"placeholders"=>"Placeholders",
"progress"=>"Progress",
"notifications"=>"Notifications",
"media-object"=>"Media object",
"embed-video"=>"Embed Video",
"typography"=>"Typography",
"lists"=>"Lists",
"general"=>"General",
"ribbons"=>"Ribbons",
"utilities"=>"Utilities",
"advance-ui"=>"Advance UI",
"new"=>"New",
"sweet-alerts"=>"Sweet Alerts",
"nestable-list"=>"Nestable List",
"scrollbar"=>"Scrollbar",
"animation"=>"Animation",
"tour"=>"Tour",
"swiper-slider"=>"Swiper Slider",
"ratings"=>"Ratings",
"highlight"=>"Highlight",
"scrollSpy"=>"ScrollSpy",
"widgets"=>"Widgets",
"forms"=>"Forms",
"basic-elements"=>"Basic Elements",
"form-select"=>"Form Select",
"checkboxs-radios"=>"Checkboxs & Radios",
"pickers"=>"Pickers",
"input-masks"=>"Input Masks",
"advanced"=>"Advanced",
"range-slider"=>"Range Slider",
"validation"=>"Validation",
"wizard"=>"Wizard",
"editors"=>"Editors",
"file-uploads"=>"File Uploads",
"form-layouts"=>"Form Layouts",
"tables"=>"Tables",
"basic-tables"=>"Basic Tables",
"grid-js"=>"Grid Js",
"list-js"=>"List Js",
"charts"=>"Charts",
"apexcharts"=>"Apexcharts",
"line"=>"Line",
"area"=>"Area",
"column"=>"Column",
"bar"=>"Bar",
"mixed"=>"Mixed",
"candlstick"=>"Candlstick",
"boxplot"=>"Boxplot",
"bubble"=>"Bubble",
"scatter"=>"Scatter",
"heatmap"=>"Heatmap",
"treemap"=>"Treemap",
"pie"=>"Pie",
"radialbar"=>"Radialbar",
"radar"=>"Radar",
"polar-area"=>"Polar Area",
"chartjs"=>"Chartjs",
"echarts"=>"Echarts",
"icons"=>"Icons",
"remix"=>"Remix",
"boxicons"=>"Boxicons",
"material-design"=>"Material Design",
"line-awesome"=>"Line Awesome",
"feather"=>"Feather",
"maps"=>"Maps",
"google"=>"Google",
"vector"=>"Vector",
"leaflet"=>"Leaflet",
"multi-level"=>"Multi Level",
"level-1.1"=>"Level 1.1",
"level-1.2"=>"Level 1.2",
"level-2.1"=>"Level 2.1",
"level-2.2"=>"Level 2.2",
"level-3.1"=>"Level 3.1",
"level-3.2"=>"Level 3.2",
"project-list"=>"Project list",
"Apex_Line_Chart" => "Apex Line Chart",
"Apex_Area_Chart" => "Apex Area Chart",
"Apex_Column_Chart" => "Apex Column Chart",
"Apex_Bar_Chart" => "Apex Bar Chart",
"Apex_Mixed_Chart" => "Apex Mixed Chart",
"Apex_Timeline_Chart" => "Apex Timeline Chart",
"Apex_Candlstick_Chart" => "Apex Candlestick Chart",
"Apex_Boxplot_Chart" => "Apex Boxplot Chart",
"Apex_Bubble_Chart" => "Apex Bubble Chart",
"Apex_Scatter_Chart" => "Apex Scatter Chart",
"Apex_Heatmap_Chart" => "Apex Heatmap Chart",
"Apex_Treemap_Chart" => "Apex Treemap Chart",
"Apex_Pie_Chart" => "Apex Pie Chart",
"Apex_Radialbar_Chart" => "Apex Radial Bar Chart",
"Apex_Line_Chart" => "Apex Line Chart",
"Apex_Radar_Chart" => "Apex Radar Chart",
"Apex_Polar_area_Chart" => "Apex Polar Area Chart",
"nft"=> "NFT",
"email"=> "Email",
"email-templates"=> "Email Templates",
"basic-action"=> "Basic Action",
"ecommerce-action"=> "Ecommerce Action",
"nft-marketplace"=> "NFT Marketplace",
"marketplace"=> "Marketplace",
"explore-now"=> "Explore Now",
"live-auction"=> "Live Auction",
"item-details"=> "Item Details",
"collections"=> "Collections",
"creators"=> "Creators",
"ranking"=> "Ranking",
"wallet-connect"=> "Wallet Connect",
"create-nft"=> "Create NFT",
"one-page"=> "One Page",
"nft-landing"=> "NFT Landing",
"landing" => "Landing",
"select2"=> "Select2",
"datatables"=> "Datatables",
"file-manager"=> "File Manager",
"to-do"=> "To Do",
"crypto-svg"=> "Crypto SVG",
"job" => "Job",
"jobs" => "Jobs",
"statistics" => "Statistics",
"job-lists" => "Job Lists",
"candidate-lists" => "Candidate Lists",
"grid-view" => "Grid View",
"application" => "Application",
"new-job" => "New Job",
"companies-list" => "Companies List",
"job-categories" => "Job Categories",
"api-key" => "API Key",
"privacy-policy" => "Privacy Policy",
"hot" => "Hot",
];
?>

230
lang/fr/translation.php Normal file
View File

@ -0,0 +1,230 @@
<?php
return [
"menu"=>"Menu",
"dashboards"=>"Tableaux de bord",
"analytics"=>"Analytique",
"crm"=>"GRC",
"ecommerce"=>"Commerce électronique",
"crypto"=>"Crypto",
"projects"=>"Projets",
"apps"=>"applications",
"calendar"=>"Calendrier",
"chat"=>"Discuter",
"mailbox"=>"Boites aux lettres",
"products"=>"Des produits",
"product-Details"=>"détails du produit",
"create-product"=>"Créer un produit",
"orders"=>"Ordres",
"order-details"=>"détails de la commande",
"customers"=>"Clients",
"shopping-cart"=>"Panier",
"checkout"=>"Vérifier",
"sellers"=>"Les vendeurs",
"sellers-details"=>"Détails du vendeur",
"list"=>"Lister",
"overview"=>"Aperçu",
"create-project"=>"Créer un projet",
"tasks"=>"Tâches",
"kanbanboard"=>"Tableau Kanban",
"list-view"=>"Affichage de liste",
"task-details"=>"Détails de la tâche",
"contacts"=>"Contacts",
"companies"=>"Entreprises",
"deals"=>"Offres",
"leads"=>"Pistes",
"transactions"=>"Transactions",
"buy-sell"=>"Acheter vendre",
"my-wallet"=>"Mon portefeuille",
"ico-list"=>"Liste des OIC",
"kyc-application"=>"Demande de connaissance du client",
"invoices"=>"Factures",
"details"=>"Des détails",
"create-invoice"=>"Créer une facture",
"supprt-tickets"=>"Billets d'assistance",
"ticket-details"=>"Détails du billet",
"layouts"=>"Dispositions",
"horizontal"=>"Horizontal",
"detached"=>"Détaché",
"two-column"=>"Deux colonnes",
"hovered"=>"Survolé",
"pages"=>"pages",
"authentication"=>"Authentification",
"signin"=>"S'identifier",
"basic"=>"De base",
"cover"=>"Couverture",
"signup"=>"S'inscrire",
"password-reset"=>"Réinitialisation du mot de passe",
"password-create"=>"Créer un mot de passe",
"lock-screen"=>"Écran verrouillé",
"logout"=>"Se déconnecter",
"success-message"=>"Message de réussite",
"two-step-verification"=>"Vérification en deux étapes",
"errors"=>"les erreurs",
"404-basic"=>"404 de base",
"404-cover"=>"404 Couverture",
"404-alt"=>"404 Autre",
"500"=>"500",
"offline-page"=>"Hors ligne",
"starter"=>"Entrée",
"profile"=>"Profil",
"simple-page"=>"Page simplifiée",
"settings"=>"Réglages",
"team"=>"Équipe",
"timeline"=>"Chronologie",
"faqs"=>"FAQ",
"pricing"=>"Tarification",
"gallery"=>"Galerie",
"maintenance"=>"Maintenance",
"coming-soon"=>"À venir",
"sitemap"=>"Plan du site",
"search-results"=>"Résultats de recherche",
"components"=>"Composants",
"base-ui"=>"Interface utilisateur de base",
"alerts"=>"Alertes",
"badges"=>"Insignes",
"buttons"=>"Boutons",
"colors"=>"Couleurs",
"cards"=>"Cartes",
"carousel"=>"Carrousel",
"dropdowns"=>"Listes déroulantes",
"grid"=>"Grille",
"images"=>"Images",
"tabs"=>"Onglets",
"accordion-collapse"=>"Accordéon et effondrement",
"modals"=>"Modaux",
"offcanvas"=>"Hors toile",
"placeholders"=>"Espaces réservés",
"progress"=>"Le progrès",
"notifications"=>"Avis",
"media-object"=>"Objet multimédia",
"embed-video"=>"Intégrer la vidéo",
"typography"=>"Typographie",
"lists"=>"Listes",
"general"=>"Général",
"ribbons"=>"Rubans",
"utilities"=>"Utilitaires",
"advance-ui"=>"Interface utilisateur avancée",
"new"=>"Nouveau",
"sweet-alerts"=>"Alertes sucrées",
"nestable-list"=>"Liste imbriquée",
"scrollbar"=>"Barre de défilement",
"animation"=>"Animation",
"tour"=>"Tour",
"swiper-slider"=>"Glissière Curseur",
"ratings"=>"Notes",
"highlight"=>"Surligner",
"scrollSpy"=>"DéfilementEspion",
"widgets"=>"Widget",
"forms"=>"Formes",
"basic-elements"=>"Éléments basiques",
"form-select"=>"Sélection de formulaire",
"checkboxs-radios"=>"Cases à cocher et radios",
"pickers"=>"Cueilleurs",
"input-masks"=>"Masques de saisie",
"advanced"=>"Avancée",
"range-slider"=>"Curseur de plage",
"validation"=>"Validation",
"wizard"=>"sorcier",
"editors"=>"Éditeurs",
"file-uploads"=>"Téléchargements de fichiers",
"form-layouts"=>"Dispositions de formulaire",
"tables"=>"les tables",
"basic-tables"=>"Tableaux de base",
"grid-js"=>"Grille Js",
"list-js"=>"Liste J",
"charts"=>"Graphiques",
"apexcharts"=>"Apexchart",
"line"=>"Ligne",
"area"=>"Zone",
"column"=>"Colonne",
"bar"=>"Bar",
"mixed"=>"Mixte",
"candlstick"=>"Chandelier",
"boxplot"=>"Boîte à moustaches",
"bubble"=>"Bulle",
"scatter"=>"Dispersion",
"heatmap"=>"Carte de chaleur",
"treemap"=>"Treemap",
"pie"=>"Tarte",
"radialbar"=>"Barre radiale",
"radar"=>"Radar",
"polar-area"=>"Zone polaire",
"chartjs"=>"Graphiques",
"echarts"=>"Cartes électroniques",
"icons"=>"Icônes",
"remix"=>"Remixer",
"boxicons"=>"Boxicons",
"material-design"=>"Conception matérielle",
"line-awesome"=>"Ligne Génial",
"feather"=>"Plume",
"maps"=>"Plans",
"google"=>"Google",
"vector"=>"Vecteur",
"leaflet"=>"Brochure",
"multi-level"=>"Multi-niveaux",
"level-1.1"=>"Niveau 1.1",
"level-1.2"=>"Niveau 1.2",
"level-2.1"=>"Niveau 2.1",
"level-2.2"=>"Niveau 2.2",
"level-3.1"=>"Niveau 3.1",
"level-3.2"=>"Niveau 3.2",
"project-list"=>"liste-de-projet",
"Apex_Line_Chart" => "Graphique linéaire Apex",
"Apex_Area_Chart" => "Graphique de zone d'apex",
"Apex_Column_Chart" => "Graphique à colonnes Apex",
"Apex_Bar_Chart" => "Graphique à barres Apex",
"Apex_Mixed_Chart" => "Graphique mixte Apex",
"Apex_Timeline_Chart" => "Graphique chronologique Apex",
"Apex_Candlstick_Chart" => "Graphique en chandelier Apex",
"Apex_Boxplot_Chart" => "Diagramme de boîte à moustaches Apex",
"Apex_Cubble_Chart" => "Tableau des cubes Apex",
"Apex_Scatter_Chart" => "Nuage de points Apex",
"Apex_Heatmap_Chart" => "Graphique de carte thermique Apex",
"Apex_Treemap_Chart" => "Graphique Treemap Apex",
"Apex_Pie_Chart" => "Graphique circulaire Apex",
"Apex_Radialbar_Chart" => "Graphique à barres radiales Apex",
"Apex_Line_Chart" => "Graphique linéaire Apex",
"Apex_Radar_Chart" => "Carte radar Apex",
"Apex_Polar_area_Chart" => "Carte de la zone polaire Apex",
"nft"=> "NFT",
"email"=> "E-mail",
"email-templates"=> "Modèles d'e-mails",
"basic-action"=> "Action de base",
"ecommerce-action"=> "Action de commerce électronique",
"nft-marketplace"=> "Marché NFT",
"marketplace"=> "Marché",
"explore-now"=> "Explorez maintenant",
"live-auction"=> "Enchère en direct",
"item-details"=> "Détails de l'article",
"collections"=> "Collections",
"creators"=> "Créatrices",
"ranking"=> "Classement",
"wallet-connect"=> "Portefeuille Connect",
"create-nft"=> "Créer NFT",
"one-page"=> "Une page",
"nft-landing"=> "Atterrissage NFT",
"landing" => "Atterrissage",
"select2"=> "Sélectionner2",
"datatables"=> "Tableaux de données",
"file-manager"=> "Gestionnaire de fichiers",
"to-do"=> "Faire",
"crypto-svg"=> "Crypto SVG",
"job" => "Emploi",
"jobs" => "travaux",
"statistics" => "Statistiques",
"job-lists" => "Listes de tâches",
"candidate-lists" => "Liste des candidats",
"grid-view" => "Vue Grille",
"application" => "Application",
"new-job" => "Nouveau travail",
"companies-list" => "Liste des entreprises",
"job-categories" => "Catégories d'emploi",
"api-key" => "clé API",
"privacy-policy" => "Politique de confidentialité",
"hot" => "chaud",
];
?>

212
lang/gr/translation.php Normal file
View File

@ -0,0 +1,212 @@
<?php
return [
"menu"=>"Speisekarte",
"dashboards"=>"Dashboards",
"analytics"=>"Analytik",
"crm"=>"CRM",
"ecommerce"=>"Ecommerce",
"crypto"=>"Krypto",
"projects"=>"Projekte",
"apps"=>"Anwendungen",
"calendar"=>"Kalender",
"chat"=>"Plaudern",
"mailbox"=>"Briefkasten",
"products"=>"Produkte",
"product-Details"=>"Produktdetails",
"create-product"=>"Produkt erstellen",
"orders"=>"Aufträge",
"order-details"=>"Bestelldetails",
"customers"=>"Kunden",
"shopping-cart"=>"Einkaufswagen",
"checkout"=>"Kasse",
"sellers"=>"Verkäufer",
"sellers-details"=> "Verkäuferdetails",
"list"=>"Aufführen",
"overview"=>"Überblick",
"create-project"=>"Projekt erstellen",
"tasks"=>"Aufgaben",
"kanbanboard"=>"Kanban-Board",
"list-view"=>"Listenansicht",
"task-details"=>"Aufgabendetails",
"contacts"=>"Kontakte",
"companies"=>"Firmen",
"deals"=>"Angebote",
"leads"=>"Führt",
"transactions"=>"Transaktionen",
"buy-sell"=>"Kaufen Verkaufen",
"my-wallet"=>"Mein Geldbeutel",
"ico-list"=>"ICO-Liste",
"kyc-application"=>"KYC-Anwendung",
"invoices"=>"Rechnungen",
"details"=>"Einzelheiten",
"create-invoice"=>"Rechnung erstellen",
"supprt-tickets"=>"Support-Tickets",
"ticket-details"=>"Ticketdetails",
"layouts"=>"Grundrisse",
"horizontal"=>"Horizontal",
"detached"=>"Losgelöst",
"two-column"=>"Zweispaltig",
"hovered"=>"Schwebte",
"pages"=>"Seiten",
"authentication"=>"Authentifizierung",
"signin"=>"Anmelden",
"basic"=>"Basic",
"cover"=>"Abdeckung",
"signup"=>"Anmeldung",
"password-reset"=>"Passwort zurücksetzen",
"password-create"=>"Passwort erstellen",
"lock-screen"=>"Bildschirm sperren",
"logout"=>"Ausloggen",
"success-message"=>"Erfolgsmeldung",
"two-step-verification"=>"Verifizierung in zwei Schritten",
"errors"=>"Fehler",
"404-basic"=>"404 Grundlegend",
"404-cover"=>"404 Abdeckung",
"404-alt"=>"404 Alt",
"500"=>"500",
"offline-page"=>"Offline-Seite",
"starter"=>"Anlasser",
"profile"=>"Profil",
"simple-page"=>"Einfache Seite",
"settings"=>"Einstellungen",
"team"=>"Team",
"timeline"=>"Zeitleiste",
"faqs"=>"Häufig gestellte Fragen",
"pricing"=>"Preisgestaltung",
"gallery"=>"Galerie",
"maintenance"=>"Wartung",
"coming-soon"=>"Kommt bald",
"sitemap"=>"Seitenverzeichnis",
"search-results"=>"Suchergebnisse",
"components"=>"Komponenten",
"base-ui"=>"Basis-Benutzeroberfläche",
"alerts"=>"Warnungen",
"badges"=>"Abzeichen",
"buttons"=>"Tasten",
"colors"=>"Farben",
"cards"=>"Karten",
"carousel"=>"Karussell",
"dropdowns"=>"Dropdowns",
"grid"=>"Netz",
"images"=>"Bilder",
"tabs"=>"Registerkarten",
"accordion-collapse"=>"Akkordeon & Zusammenbruch",
"modals"=>"Modale",
"offcanvas"=>"Leinwand",
"placeholders"=>"Platzhalter",
"progress"=>"Fortschritt",
"notifications"=>"Benachrichtigungen",
"media-object"=>"Medienobjekt",
"embed-video"=>"Video einbetten",
"typography"=>"Typografie",
"lists"=>"Listen",
"general"=>"Allgemein",
"ribbons"=>"Bänder",
"utilities"=>"Dienstprogramme",
"advance-ui"=>"Erweiterte Benutzeroberfläche",
"new"=>"Neu",
"sweet-alerts"=>"Süße Warnungen",
"nestable-list"=>"Verschachtelbare Liste",
"scrollbar"=>"Scrollleiste",
"animation"=>"Animation",
"tour"=>"Tour",
"swiper-slider"=>"Swiper-Schieberegler",
"ratings"=>"Bewertungen",
"highlight"=>"Markieren",
"scrollSpy"=>"ScrollSpy",
"widgets"=>"Widgets",
"forms"=>"Formen",
"basic-elements"=>"Grundelemente",
"form-select"=>"Formular auswählen",
"checkboxs-radios"=>"Kontrollkästchen & Radios",
"pickers"=>"Pflücker",
"input-masks"=>"Eingabemasken",
"advanced"=>"Fortschrittlich",
"range-slider"=>"Range-Schieberegler",
"validation"=>"Validierung",
"wizard"=>"Magier",
"editors"=>"Redakteure",
"file-uploads"=>"Datei-Uploads",
"form-layouts"=>"Formularlayouts",
"tables"=>"Tische",
"basic-tables"=>"Grundlegende Tabellen",
"grid-js"=>"Gitter Js",
"list-js"=>"Liste Js",
"charts"=>"Diagramme",
"apexcharts"=>"Apexcharts",
"line"=>"Linie",
"area"=>"Bereich",
"column"=>"Spalte",
"bar"=>"Bar",
"mixed"=>"Gemischt",
"candlstick"=>"Leuchter",
"boxplot"=>"Box-Plot",
"bubble"=>"Blase",
"scatter"=>"Streuen",
"heatmap"=>"Heatmap",
"treemap"=>"Baumkarte",
"pie"=>"Kuchen",
"radialbar"=>"Radialbar",
"radar"=>"Radar",
"polar-area"=>"Polargebiet",
"chartjs"=>"Chartjs",
"echarts"=>"Diagramme",
"icons"=>"Symbole",
"remix"=>"Remix",
"boxicons"=>"Boxicons",
"material-design"=>"Material Design",
"line-awesome"=>"Linie Super",
"feather"=>"Feder",
"maps"=>"Karten",
"google"=>"Google",
"vector"=>"Vektor",
"leaflet"=>"Flugblatt",
"multi-level"=>"Mehrstufig",
"level-1.1"=>"Stufe 1.1",
"level-1.2"=>"Stufe 1.2",
"level-2.1"=>"Stufe 2.1",
"level-2.2"=>"Stufe 2.2",
"level-3.1"=>"Stufe 3.1",
"level-3.2"=>"Stufe 3.2",
"project-list"=>"Projektliste",
"nft"=> "NFT",
"email"=> "Email",
"email-templates"=> "E-Mail-Vorlagen",
"basic-action"=> "Grundlegende Aktion",
"ecommerce-action"=> "E-Commerce-Aktion",
"nft-marketplace"=> "NFT-Marktplatz",
"marketplace"=> "Marktplatz",
"explore-now"=> "Jetzt erkunden",
"live-auction"=> "Live-Auktion",
"item-details"=> "Artikeldetails",
"collections"=> "Sammlungen",
"creators"=> "Schöpfer",
"ranking"=> "Rangfolge",
"wallet-connect"=> "Wallet Connect",
"create-nft"=> "NFT erstellen",
"one-page"=> "Eine Seite",
"nft-landing"=> "NFT-Landung",
"landing" => "Landung",
"select2"=> "Wählen Sie 2",
"datatables"=> "Datentabellen",
"file-manager"=> "Dateimanager",
"to-do"=> "Machen",
"crypto-svg"=> "Krypto-SVG",
"job" => "Arbeit",
"jobs" => "Arbeitsplätze",
"statistics" => "Statistiken",
"job-lists" => "Joblisten",
"candidate-lists" => "Kandidatenliste",
"grid-view" => "Rasteransicht",
"application" => "Anwendung",
"new-job" => "Neue Arbeit",
"companies-list" => "Firmenliste",
"job-categories" => "Berufskategorien",
"api-key" => "API-Schlüssel",
"privacy-policy" => "Datenschutz-Bestimmungen",
"hot" => "heiß",
];
?>

229
lang/it/translation.php Normal file
View File

@ -0,0 +1,229 @@
<?php
return [
"menu"=>"Menù",
"dashboards"=>"Cruscotti",
"analytics"=>"Analitica",
"crm"=>"CRM",
"ecommerce"=>"E-commerce",
"crypto"=>"Cripto",
"projects"=>"Progetti",
"apps"=>"App",
"calendar"=>"Calendario",
"chat"=>"Chiacchierata",
"mailbox"=>"Cassetta postale",
"products"=>"sperne",
"product-Details"=>"Dettagli del prodotto",
"create-product"=>"Crea prodotto",
"orders"=>"Ordini",
"order-details"=>"Dettagli dell'ordine",
"customers"=>"Clienti",
"shopping-cart"=>"Carrello della spesa",
"checkout"=>"Guardare",
"sellers"=>"Venditori",
"sellers-details"=> "Dettagli del venditore",
"list"=>"Elenco",
"overview"=>"Panoramica",
"create-project"=>"Create Project",
"tasks"=>"Compiti",
"kanbanboard"=>"Scheda Kanban",
"list-view"=>"Visualizzazione elenco",
"task-details"=>"Dettagli attività",
"contacts"=>"Contatti",
"companies"=>"Aziende",
"deals"=>"Offerte",
"leads"=>"Conduce",
"transactions"=>"Transazioni",
"buy-sell"=>"Comprare vendere",
"my-wallet"=>"Il mio portafoglio",
"ico-list"=>"Elenco ICO",
"kyc-application"=>"Applicazione KYC",
"invoices"=>"Fatture",
"details"=>"Particolari",
"create-invoice"=>"Crea fattura",
"supprt-tickets"=>"Biglietti di supporto",
"ticket-details"=>"Dettagli del biglietto",
"layouts"=>"Disposizione",
"horizontal"=>"Orizzontale",
"detached"=>"Distaccato",
"two-column"=>"Due colonne",
"hovered"=>"Aleggiava",
"pages"=>"Pagine",
"authentication"=>"Autenticazione",
"signin"=>"Registrazione",
"basic"=>"Di base",
"cover"=>"Coperchio",
"signup"=>"Iscriviti",
"password-reset"=>"Reimpostazione della password",
"password-create"=>"Password Crea",
"lock-screen"=>"Blocca schermo",
"logout"=>"Disconnettersi",
"success-message"=>"Messaggio di successo",
"two-step-verification"=>"Verifica in due fasi",
"errors"=>"Errori",
"404-basic"=>"404 Fondamentale",
"404-cover"=>"404 Copertina",
"404-alt"=>"404 Alt",
"500"=>"500",
"offline-page"=>"Pagina offline",
"starter"=>"Antipasto",
"profile"=>"Profilo",
"simple-page"=>"Pagina semplice",
"settings"=>"Impostazioni",
"team"=>"Squadra",
"timeline"=>"Sequenza temporale",
"faqs"=>"Domande frequenti",
"pricing"=>"Prezzo",
"gallery"=>"Galleria",
"maintenance"=>"Manutenzione",
"coming-soon"=>"Prossimamente",
"sitemap"=>"Mappa del sito",
"search-results"=>"risultati di ricerca",
"components"=>"Componenti",
"base-ui"=>"Interfaccia utente di base",
"alerts"=>"Avvisi",
"badges"=>"Distintivi",
"buttons"=>"Bottoni",
"colors"=>"Colori",
"cards"=>"Carte",
"carousel"=>"Giostra",
"dropdowns"=>"Dropdown",
"grid"=>"Griglia",
"images"=>"immagini",
"tabs"=>"Schede",
"accordion-collapse"=>"Fisarmonica e collasso",
"modals"=>"Modali",
"offcanvas"=>"Fuori tela",
"placeholders"=>"Segnaposto",
"progress"=>"Progresso",
"notifications"=>"Notifiche",
"media-object"=>"Oggetto multimediale",
"embed-video"=>"Incorpora video",
"typography"=>"Tipografia",
"lists"=>"Elenchi",
"general"=>"Generale",
"ribbons"=>"Nastri",
"utilities"=>"Utilità",
"advance-ui"=>"Interfaccia utente avanzata",
"new"=>"Nuovo",
"sweet-alerts"=>"Dolci avvisi",
"nestable-list"=>"Elenco annidabile",
"scrollbar"=>"Barra di scorrimento",
"animation"=>"Animazione",
"tour"=>"Tour",
"swiper-slider"=>"Dispositivo di scorrimento a scorrimento",
"ratings"=>"Giudizi",
"highlight"=>"Evidenziare",
"scrollSpy"=>"ScrollSpy",
"widgets"=>"Widget",
"forms"=>"Forme",
"basic-elements"=>"Elementi basici",
"form-select"=>"Seleziona modulo",
"checkboxs-radios"=>"Caselle di controllo e radio",
"pickers"=>"Raccoglitori",
"input-masks"=>"Maschere di input",
"advanced"=>"Avanzate",
"range-slider"=>"Dispositivo di scorrimento della gamma",
"validation"=>"Convalida",
"wizard"=>"procedura guidata",
"editors"=>"Editori",
"file-uploads"=>"Caricamenti di file",
"form-layouts"=>"Disposizione dei moduli",
"tables"=>"Tabelle",
"basic-tables"=>"Tabelle di base",
"grid-js"=>"Griglia Js",
"list-js"=>"Elenco Js",
"charts"=>"Grafici",
"apexcharts"=>"Apexchart",
"line"=>"Linea",
"area"=>"La zona",
"column"=>"Colonna",
"bar"=>"Sbarra",
"mixed"=>"Misto",
"candlstick"=>"Candeliere",
"boxplot"=>"Boxplot",
"bubble"=>"Bolla",
"scatter"=>"Dispersione",
"heatmap"=>"Mappa di calore",
"treemap"=>"Mappa ad albero",
"pie"=>"Torta",
"radialbar"=>"barra radiale",
"radar"=>"Radar",
"polar-area"=>"Zona Polare",
"chartjs"=>"Chartjs",
"echarts"=>"Carte",
"icons"=>"Icone",
"remix"=>"Remixa",
"boxicons"=>"Boxicone",
"material-design"=>"Progettazione materiale",
"line-awesome"=>"Linea fantastica",
"feather"=>"Piuma",
"maps"=>"Mappe",
"google"=>"Google",
"vector"=>"Vettore",
"leaflet"=>"Volantino",
"multi-level"=>"Multilivello",
"level-1.1"=>"Livello 1.1",
"level-1.2"=>"Livello 1.2",
"level-2.1"=>"Livello 2.1",
"level-2.2"=>"Livello 2.2",
"level-3.1"=>"Livello 3.1",
"level-3.2"=>"Livello 3.2",
"project-list"=>"elenco progetti",
"Apex_Line_Chart" => "Grafico a linee dell'apice",
"Apex_Area_Chart" => "Grafico dell'area dell'apice",
"Apex_Column_Chart" => "Grafico a colonne Apice",
"Apex_Bar_Chart" => "Grafico a barre dell'apice",
"Apex_Mixed_Chart" => "Grafico misto Apex",
"Apex_Timeline_Chart" => "Grafico della sequenza temporale dell'apice",
"Apex_Candlstick_Chart" => "Grafico a candela Apex",
"Apex_Boxplot_Chart" => "Grafico boxplot Apex",
"Apex_Cubble_Chart" => "Grafico a cubetti Apex",
"Apex_Scatter_Chart" => "Grafico a dispersione dell'apice",
"Apex_Heatmap_Chart" => "Grafico della mappa termica Apex",
"Apex_Treemap_Chart" => "Grafico della mappa ad albero di Apex",
"Apex_Pie_Chart" => "Grafico a torta Apex",
"Apex_Radialbar_Chart" => "Grafico a barre radiale Apex",
"Apex_Line_Chart" => "Grafico a linee dell'apice",
"Apex_Radar_Chart" => "Grafico radar Apex",
"Apex_Polar_area_Chart" => "Grafico dell'area polare dell'apice",
"nft"=> "NFT",
"email"=> "E-mail",
"email-templates"=> "Modelli di posta elettronica",
"basic-action"=> "Azione di base",
"ecommerce-action"=> "Azione di e-commerce",
"nft-marketplace"=> "Mercato NFT",
"marketplace"=> "Mercato",
"explore-now"=> "Esplora ora",
"live-auction"=> "Asta dal vivo",
"item-details"=> "Dettagli dell'articolo",
"collections"=> "Collezioni",
"creators"=> "Creatrici",
"ranking"=> "classifica",
"wallet-connect"=> "Portafoglio Connetti",
"create-nft"=> "Crea NFT",
"one-page"=> "Una pagina",
"nft-landing"=> "Atterraggio NFT",
"landing" => "Atterraggio",
"select2"=> "Seleziona2",
"datatables"=> "Datatables",
"file-manager"=> "Gestore di file",
"to-do"=> "Da fare",
"crypto-svg"=> "Cripto SVG",
"job" => "Lavoro",
"jobs" => "Lavori",
"statistics" => "Statistiche",
"job-lists" => "Liste di lavoro",
"candidate-lists" => "Elenco candidati",
"grid-view" => "Vista a griglia",
"application" => "Applicazione",
"new-job" => "Nuovo lavoro",
"companies-list" => "Elenco aziende",
"job-categories" => "Categorie di lavoro",
"api-key" => "Chiave API",
"privacy-policy" => "politica sulla riservatezza",
"hot" => "Piccante",
];
?>

229
lang/ru/translation.php Normal file
View File

@ -0,0 +1,229 @@
<?php
return [
"menu"=>"Меню",
"dashboards"=>"Панели мониторинга",
"analytics"=>"Аналитика",
"crm"=>"CRM",
"ecommerce"=>"Электронная торговля",
"crypto"=>"Крипто",
"projects"=>"Проекты",
"apps"=>"Программы",
"calendar"=>"Календарь",
"chat"=>"Чат",
"mailbox"=>"Почтовый ящик",
"products"=>"Продукты",
"product-Details"=>"информация о продукте",
"create-product"=>"Создать продукт",
"orders"=>"Заказы",
"order-details"=>"Информация для заказа",
"customers"=>"Клиенты",
"shopping-cart"=>"Корзина",
"checkout"=>"Проверить",
"sellers"=>"Продавцы",
"sellers-details"=> "Сведения о продавце",
"list"=>"Список",
"overview"=>"Обзор",
"create-project"=>"Создать проект",
"tasks"=>"Задания",
"kanbanboard"=>"Канбан-доска",
"list-view"=>"Посмотреть список",
"task-details"=>"Сведения о задаче",
"contacts"=>"Контакты",
"companies"=>"Компании",
"deals"=>"Предложения",
"leads"=>"Ведет",
"transactions"=>"Транзакции",
"buy-sell"=>"Купи продай",
"my-wallet"=>"Мой бумажник",
"ico-list"=>"Список ICO",
"kyc-application"=>"Приложение ЗСК",
"invoices"=>"Счета",
"details"=>"Подробности",
"create-invoice"=>"Создать счет",
"supprt-tickets"=>"Билеты в службу поддержки",
"ticket-details"=>"Детали билета",
"layouts"=>"Макеты",
"horizontal"=>"Горизонтальный",
"detached"=>"Отдельный",
"two-column"=>"Две колонки",
"hovered"=>"Парит",
"pages"=>"Страницы",
"authentication"=>"Аутентификация",
"signin"=>"Войти",
"basic"=>"Базовый",
"cover"=>"Обложка",
"signup"=>"Зарегистрироваться ",
"password-reset"=>"Сброс пароля",
"password-create"=>"Пароль Создать",
"lock-screen"=>"Экран блокировки",
"logout"=>"Выйти",
"success-message"=>"Сообщение об успехе",
"two-step-verification"=>"Двухэтапная проверка",
"errors"=>"Ошибки",
"404-basic"=>"404 Базовый",
"404-cover"=>"404 Обложка",
"404-alt"=>"404 Альт.",
"500"=>"500",
"offline-page"=>"Офлайн-страница",
"starter"=>"Стартер",
"profile"=>"Профиль",
"simple-page"=>"Простая страница",
"settings"=>"Настройки",
"team"=>"Команда",
"timeline"=>"Лента новостей",
"faqs"=>"Часто задаваемые вопросы",
"pricing"=>"Цены",
"gallery"=>"Галерея",
"maintenance"=>"техническое обслуживание",
"coming-soon"=>"Вскоре",
"sitemap"=>"Карта сайта",
"search-results"=>"результаты поиска",
"components"=>"Компоненты",
"base-ui"=>"Базовый интерфейс",
"alerts"=>"Оповещения",
"badges"=>"Значки",
"buttons"=>"Кнопки",
"colors"=>"Цвета",
"cards"=>"Открытки",
"carousel"=>"Карусель",
"dropdowns"=>"Выпадающие списки",
"grid"=>"Сетка",
"images"=>"Картинки",
"tabs"=>"Вкладки",
"accordion-collapse"=>"Аккордеон и свернуть",
"modals"=>"Модальные",
"offcanvas"=>"Offcanvas",
"placeholders"=>"Заполнители",
"progress"=>"Прогресс",
"notifications"=>"Уведомления",
"media-object"=>"Медиа объект",
"embed-video"=>"Встроенное видео",
"typography"=>"Типография",
"lists"=>"Списки",
"general"=>"Общий",
"ribbons"=>"ленты",
"utilities"=>"Утилиты",
"advance-ui"=>"Расширенный пользовательский интерфейс",
"new"=>"Новый",
"sweet-alerts"=>"Сладкие оповещения",
"nestable-list"=>"Вложенный список",
"scrollbar"=>"Полоса прокрутки",
"animation"=>"Анимация",
"tour"=>"Тур",
"swiper-slider"=>"Слайдер Swiper",
"ratings"=>"Рейтинги",
"highlight"=>"Выделять",
"scrollSpy"=>"ПрокруткаШпион",
"widgets"=>"Виджеты",
"forms"=>"Формы",
"basic-elements"=>"Основные элементы",
"form-select"=>"Выбор формы",
"checkboxs-radios"=>"Флажки и радио",
"pickers"=>"Сборщики",
"input-masks"=>"Маски ввода",
"advanced"=>"Передовой",
"range-slider"=>"Ползунок диапазона",
"validation"=>"Проверка",
"wizard"=>"волшебник",
"editors"=>"Редакторы",
"file-uploads"=>"Загрузка файлов",
"form-layouts"=>"Макеты форм",
"tables"=>"Столы",
"basic-tables"=>"Основные таблицы",
"grid-js"=>"Сетка Js",
"list-js"=>"Список J",
"charts"=>"Графики",
"apexcharts"=>"Апексчарты",
"line"=>"Линия",
"area"=>"Площадь",
"column"=>"Столбец",
"bar"=>"Бар",
"mixed"=>"Смешанный",
"candlstick"=>"Подсвечник",
"boxplot"=>"Блочная диаграмма",
"bubble"=>"Пузырь",
"scatter"=>"Разброс",
"heatmap"=>"Тепловая карта",
"treemap"=>"Древовидная карта",
"pie"=>"пирог",
"radialbar"=>"Радиальная полоса",
"radar"=>"Радар",
"polar-area"=>"Полярный район",
"chartjs"=>"Карты",
"echarts"=>"электронные карты",
"icons"=>"Иконки",
"remix"=>"Ремикс",
"boxicons"=>"Боксиконы",
"material-design"=>"Материальный дизайн",
"line-awesome"=>"Линия Потрясающая",
"feather"=>"Пух Перо",
"maps"=>"Карты",
"google"=>"Google",
"vector"=>"Вектор",
"leaflet"=>"Листовка",
"multi-level"=>"Многоуровневый",
"level-1.1"=>"Уровень 1.1",
"level-1.2"=>"Уровень 1.2",
"level-2.1"=>"Уровень 2.1",
"level-2.2"=>"Уровень 2.2",
"level-3.1"=>"Уровень 3.1",
"level-3.2"=>"Уровень 3.2",
"project-list"=>"список проектов",
"Apex_Line_Chart" => "Линейный график вершины",
"Apex_Area_Chart" => "Диаграмма области вершины",
"Apex_Column_Chart" => "Столбчатая диаграмма Apex",
"Apex_Bar_Chart" => "Столбчатая диаграмма Apex",
"Apex_Mixed_Chart" => "Смешанная диаграмма Apex",
"Apex_Timeline_Chart" => "Диаграмма временной шкалы Apex",
"Apex_Candlstick_Chart" => "Свечной график Apex",
"Apex_Boxplot_Chart" => "Диаграмма Apex Boxplot",
"Apex_Cubble_Chart" => "Диаграмма Apex Cubble",
"Apex_Scatter_Chart" => "Точечная диаграмма вершины",
"Apex_Heatmap_Chart" => "Диаграмма тепловой карты Apex",
"Apex_Treemap_Chart" => "Древовидная диаграмма Apex",
"Apex_Pie_Chart" => "Круговая диаграмма Apex",
"Apex_Radialbar_Chart" => "Радиальная гистограмма Apex",
"Apex_Line_Chart" => "Линейный график вершины",
"Apex_Radar_Chart" => "Диаграмма радара Apex",
"Apex_Polar_area_Chart" => "Диаграмма полярных областей Apex",
"nft"=> "NFT",
"email"=> "Эл. адрес",
"email-templates"=> "Шаблоны электронной почты",
"basic-action"=> "Основное действие",
"ecommerce-action"=> "Действие электронной торговли",
"nft-marketplace"=> "Торговая площадка NFT",
"marketplace"=> "Торговая площадка",
"explore-now"=> "Исследуйте сейчас",
"live-auction"=> "Живой аукцион",
"item-details"=> "Детали товара",
"collections"=> "Коллекции",
"creators"=> "Создатели",
"ranking"=> "Рейтинг",
"wallet-connect"=> "Подключить кошелек",
"create-nft"=> "Создать NFT",
"one-page"=> "Одна страница",
"nft-landing"=> "Посадка NFT",
"landing" => "Посадка",
"select2"=> "Выберите2",
"datatables"=> "Таблицы данных",
"file-manager"=> "Файловый менеджер",
"to-do"=> "Сделать",
"crypto-svg"=> "Крипто SVG",
"job" =>"Работа",
"jobs" =>"Работа",
"statistics" =>"Статистика",
"job-lists" =>"Списки вакансий",
"candidate-lists" =>"Список кандидатов",
"grid-view" =>"Вид сетки",
"application" =>"Заявление",
"new-job" =>"Новая работа",
"companies-list" =>"Новая работа",
"job-categories" =>"Категории работы",
"api-key" =>"API-ключ",
"privacy-policy" =>"Политика конфиденциальности",
"hot" =>"Горячий",
];
?>

230
lang/sp/translation.php Normal file
View File

@ -0,0 +1,230 @@
<?php
return [
"menu"=>"Menú",
"dashboards"=>"Tableros",
"analytics"=>"Analítica",
"crm"=>"CRM",
"ecommerce"=>"Comercio electrónico",
"crypto"=>"Cripto",
"projects"=>"Proyectos",
"apps"=>"aplicaciones",
"calendar"=>"Calendario",
"chat"=>"Chat",
"mailbox"=>"Buzón",
"products"=>"productos",
"product-Details"=>"Detalles de producto",
"create-product"=>"Crear producto",
"orders"=>"Pedidos",
"order-details"=>"Detalles del pedido",
"customers"=>"Clientes",
"shopping-cart"=>"Carro de compras",
"checkout"=>"Verificar",
"sellers"=>"Vendedores",
"sellers-details"=> "Detalles del vendedor",
"list"=>"Lista",
"overview"=>"Descripción general",
"create-project"=>"Crear proyecto",
"tasks"=>"Tareas",
"kanbanboard"=>"Tablero Kanban",
"list-view"=>"Vista de la lista",
"task-details"=>"Detalles de la tarea",
"contacts"=>"Contactos",
"companies"=>"Compañías",
"deals"=>"ofertas",
"leads"=>"Dirige",
"transactions"=>"Actas",
"buy-sell"=>"Compra venta",
"my-wallet"=>"Mi billetera",
"ico-list"=>"Lista de ICO",
"kyc-application"=>"Aplicación KYC",
"invoices"=>"Facturas",
"details"=>"Detalles",
"create-invoice"=>"Crear factura",
"supprt-tickets"=>"Tickets de soporte",
"ticket-details"=>"Detalles del billete",
"layouts"=>"Diseños",
"horizontal"=>"Horizontal",
"detached"=>"Separado",
"two-column"=>"dos columnas",
"hovered"=>"flotando",
"pages"=>"Paginas",
"authentication"=>"Autenticación",
"signin"=>"Iniciar sesión",
"basic"=>"Básico",
"cover"=>"Cubrir",
"signup"=>"Inscribirse",
"password-reset"=>"Restablecimiento de contraseña",
"password-reset"=>"Restablecimiento de contraseña",
"lock-screen"=>"Bloquear pantalla",
"logout"=>"Cerrar sesión",
"success-message"=>"Mensaje de éxito",
"two-step-verification"=>"Verificación de dos pasos",
"errors"=>"errores",
"404-basic"=>"404 Básico",
"404-cover"=>"404 cubierta",
"404-alt"=>"404 alternativa",
"500"=>"500",
"offline-page"=>"Página sin conexión",
"starter"=>"Arrancador",
"profile"=>"Perfil",
"simple-page"=>"Página sencilla",
"settings"=>"Ajustes",
"team"=>"Equipo",
"timeline"=>"Cronología",
"faqs"=>"preguntas frecuentes",
"pricing"=>"Precios",
"gallery"=>"Galería",
"maintenance"=>"Mantenimiento",
"coming-soon"=>"Próximamente",
"sitemap"=>"mapa del sitio",
"search-results"=>"Resultados de la búsqueda",
"components"=>"componentes",
"base-ui"=>"Interfaz de usuario básica",
"alerts"=>"Alertas",
"badges"=>"Insignias",
"buttons"=>"Botones",
"colors"=>"Colores",
"cards"=>"Tarjetas",
"carousel"=>"Carrusel",
"dropdowns"=>"Listas deplegables",
"grid"=>"Red",
"images"=>"Imágenes",
"tabs"=>"Pestañas",
"accordion-collapse"=>"Acordeón y colapsar",
"modals"=>"modales",
"offcanvas"=>"Offcanvas",
"placeholders"=>"Marcadores de posición",
"progress"=>"Progreso",
"notifications"=>"Notifications",
"media-object"=>"objeto multimedia",
"embed-video"=>"Insertar video",
"typography"=>"Tipografía",
"lists"=>"Liza",
"general"=>"General",
"ribbons"=>"Cintas",
"utilities"=>"Utilidades",
"advance-ui"=>"Interfaz de usuario avanzada",
"new"=>"Nuevo",
"sweet-alerts"=>"Dulces alertas",
"nestable-list"=>"Lista anidable",
"scrollbar"=>"Barra de desplazamiento",
"animation"=>"Animación",
"tour"=>"Excursión",
"swiper-slider"=>"Control deslizante Swiper",
"ratings"=>"Calificaciones",
"highlight"=>"Destacar",
"scrollSpy"=>"DesplazamientoEspía",
"widgets"=>"Widgets",
"forms"=>"Formularios",
"basic-elements"=>"Elementos basicos",
"form-select"=>"Selección de formulario",
"checkboxs-radios"=>"Casillas de verificación y radios",
"pickers"=>"Recolectores",
"input-masks"=>"Máscaras de entrada",
"advanced"=>"Avanzado",
"range-slider"=>"Deslizador de rango",
"validation"=>"Validación",
"wizard"=>"Mago",
"editors"=>"Editores",
"file-uploads"=>"Cargas de archivos",
"form-layouts"=>"Diseños de formulario",
"tables"=>"Mesas",
"basic-tables"=>"Tablas Básicas",
"grid-js"=>"Cuadrícula J",
"list-js"=>"Lista J",
"charts"=>"Gráficos",
"apexcharts"=>"Apexcharts",
"line"=>"Línea",
"area"=>"Área",
"column"=>"Columna",
"bar"=>"Bar",
"mixed"=>"Mezclado",
"candlstick"=>"Candelero",
"boxplot"=>"diagrama de caja",
"bubble"=>"Burbuja",
"scatter"=>"Dispersión",
"heatmap"=>"Mapa de calor",
"treemap"=>"Mapa de árbol",
"pie"=>"Tarta",
"radialbar"=>"barra radial",
"radar"=>"Radar",
"polar-area"=>"Área polar",
"chartjs"=>"Gráficos",
"echarts"=>"Gráficos electrónicos",
"icons"=>"Iconos",
"remix"=>"remezclar",
"boxicons"=>"iconos de caja",
"material-design"=>"Diseño de materiales",
"line-awesome"=>"línea impresionante",
"feather"=>"Pluma",
"maps"=>"mapas",
"google"=>"Google",
"vector"=>"Vector",
"leaflet"=>"Folleto",
"multi-level"=>"Multi nivel",
"level-1.1"=>"Nivel 1.1",
"level-1.2"=>"Nivel 1.2",
"level-2.1"=>"Nivel 2.1",
"level-2.2"=>"Nivel 2.2",
"level-3.1"=>"Nivel 3.1",
"level-3.2"=>"Nivel 3.2",
"project-list"=>"lista de proyectos",
"Apex_Line_Chart" => "Gráfico de líneas de vértice",
"Apex_Area_Chart" => "Gráfico de área de vértice",
"Apex_Column_Chart" => "Gráfico de columnas de Apex",
"Apex_Bar_Chart" => "Gráfico de barras de Apex",
"Apex_Mixed_Chart" => "Gráfico de mezcla de Apex",
"Apex_Timeline_Chart" => "Gráfico de línea de tiempo de Apex",
"Apex_Candlstick_Chart" => "Gráfico de velas de Apex",
"Apex_Boxplot_Chart" => "Gráfico de diagrama de caja de Apex",
"Apex_Cubble_Chart" => "Gráfico de cubículos de Apex",
"Apex_Scatter_Chart" => "Gráfico de dispersión de Apex",
"Apex_Heatmap_Chart" => "Gráfico de mapas de calor de Apex",
"Apex_Treemap_Chart" => "Gráfico de mapa de árbol de Apex",
"Apex_Pie_Chart" => "Gráfico circular de vértice",
"Apex_Radialbar_Chart" => "Gráfico de barras radiales de Apex",
"Apex_Line_Chart" => "Gráfico de líneas de vértice",
"Apex_Radar_Chart" => "Gráfico de radar de Apex",
"Apex_Polar_area_Chart" => "Gráfico de área polar de Apex",
"nft"=> "NFT",
"email"=> "Correo electrónico",
"email-templates"=> "Plantillas de correo electrónico",
"basic-action"=> "Acción básica",
"ecommerce-action"=> "Acción de comercio electrónico",
"nft-marketplace"=> "Mercado NFT",
"marketplace"=> "Mercado",
"explore-now"=> "Explorar ahora",
"live-auction"=> "Subasta en vivo",
"item-details"=> "detalles del artículo",
"collections"=> "Colecciones",
"creators"=> "Creadores",
"ranking"=> "Clasificación",
"wallet-connect"=> "Monedero Conectar",
"create-nft"=> "Crear NFT",
"one-page"=> "Una página",
"nft-landing"=> "Aterrizaje NFT",
"landing" => "Aterrizaje",
"select2"=> "Seleccionar2",
"datatables"=> "tablas de datos",
"file-manager"=> "Administradora de archivos",
"to-do"=> "Que hacer",
"crypto-svg"=> "Cripto SVG",
"job" => "Trabajo",
"jobs" => "Trabajos",
"statistics" => "Estadísticas",
"job-lists" => "Listas de trabajos",
"candidate-lists" => "Lista de candidatos",
"grid-view" => "Vista en cuadrícula",
"application" => "Solicitud",
"new-job" => "Nuevo trabajo",
"companies-list" => "Lista de empresas",
"job-categories" => "Categorías de trabajo",
"api-key" => "Clave API",
"privacy-policy" => "Política de privacidad",
"hot" => "Caliente",
];
?>

52
package-copy-config.json Normal file
View File

@ -0,0 +1,52 @@
{
"packagesToCopy": [
"@ckeditor/ckeditor5-build-classic",
"@simonwep/pickr",
"@tarekraafat/autocomplete.js",
"aos",
"apexcharts",
"bootstrap",
"card",
"chart.js",
"choices.js",
"cleave.js",
"dom-autoscroller",
"dragula",
"dropzone",
"echarts",
"feather-icons",
"fg-emoji-picker",
"filepond",
"filepond-plugin-file-encode",
"filepond-plugin-file-validate-size",
"filepond-plugin-image-exif-orientation",
"filepond-plugin-image-preview",
"flatpickr",
"fs",
"fullcalendar",
"glightbox",
"gmaps",
"gridjs",
"isotope-layout",
"jsvectormap",
"leaflet",
"list.js",
"list.pagination.js",
"masonry-layout",
"moment",
"multi.js",
"node-waves",
"nouislider",
"particles.js",
"prismjs",
"quill",
"rater-js",
"shepherd.js",
"simplebar",
"sortablejs",
"sweetalert2",
"swiper",
"toastify-js",
"wnumb"
]
}

4614
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

79
package.json Normal file
View File

@ -0,0 +1,79 @@
{
"private": true,
"name": "velzon",
"version": "4.2.0",
"type": "module",
"author": "Themesbrand",
"scripts": {
"clean": "rimraf public/build",
"dev": "vite",
"build": "npm run clean && vite build",
"build-rtl": "rtlcss public/build/css/app.min.css & rtlcss public/build/css/bootstrap.min.css"
},
"devDependencies": {
"@popperjs/core": "^2.10.2",
"axios": "^1.6.5",
"laravel-vite-plugin": "^1.0.1",
"lodash": "^4.17.19",
"popper.js": "^1.12",
"postcss": "^8.3.5",
"postcss-import": "^14.0.1",
"resolve-url-loader": "^5.0.0",
"rimraf": "^5.0.1",
"rtlcss": "^3.0.0",
"sass-loader": "^11.0.1",
"vite": "^5.0.12"
},
"dependencies": {
"@ckeditor/ckeditor5-build-classic": "^38.0.1",
"@simonwep/pickr": "^1.8.2",
"@tarekraafat/autocomplete.js": "^10.2.7",
"aos": "^2.3.4",
"apexcharts": "^3.41.0",
"bootstrap": "5.3.2",
"card": "^2.5.4",
"chart.js": "4.3.0",
"choices.js": "^10.2.0",
"cleave.js": "^1.6.0",
"dom-autoscroller": "^2.3.4",
"dragula": "^3.7.3",
"dropzone": "^6.0.0-beta.2",
"echarts": "^5.4.2",
"feather-icons": "^4.29.0",
"fg-emoji-picker": "^1.0.1",
"filepond": "^4.30.4",
"filepond-plugin-file-encode": "^2.1.10",
"filepond-plugin-file-validate-size": "^2.2.8",
"filepond-plugin-image-exif-orientation": "^1.0.11",
"filepond-plugin-image-preview": "^4.6.11",
"flatpickr": "^4.6.13",
"fs": "^0.0.1-security",
"fs-extra": "^11.2.0",
"fullcalendar": "^6.1.8",
"glightbox": "^3.2.0",
"gmaps": "^0.4.25",
"gridjs": "^6.0.6",
"isotope-layout": "^3.0.6",
"jsvectormap": "1.4.2",
"leaflet": "^1.9.4",
"list.js": "^2.3.1",
"list.pagination.js": "^0.1.1",
"masonry-layout": "^4.2.2",
"moment": "^2.30.1",
"multi.js": "^0.5.3",
"node-waves": "^0.7.6",
"nouislider": "^15.7.0",
"particles.js": "^2.0.0",
"prismjs": "^1.29.0",
"quill": "^2.0.3",
"rater-js": "^1.0.1",
"sass": "^1.69.5",
"shepherd.js": "^11.1.1",
"simplebar": "^6.2.5",
"sortablejs": "^1.15.0",
"sweetalert2": "^11.6.13",
"swiper": "^9.3.2",
"toastify-js": "^1.12.0",
"wnumb": "^1.2.0"
}
}

31
phpunit.xml Normal file
View File

@ -0,0 +1,31 @@
<?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 suffix="Test.php">./tests/Unit</directory>
</testsuite>
<testsuite name="Feature">
<directory suffix="Test.php">./tests/Feature</directory>
</testsuite>
</testsuites>
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">./app</directory>
</include>
</coverage>
<php>
<server name="APP_ENV" value="testing"/>
<server name="BCRYPT_ROUNDS" value="4"/>
<server name="CACHE_DRIVER" value="array"/>
<!-- <server name="DB_CONNECTION" value="sqlite"/> -->
<!-- <server name="DB_DATABASE" value=":memory:"/> -->
<server name="MAIL_MAILER" value="array"/>
<server name="QUEUE_CONNECTION" value="sync"/>
<server name="SESSION_DRIVER" value="array"/>
<server name="TELESCOPE_ENABLED" value="false"/>
</php>
</phpunit>

21
public/.htaccess Normal file
View File

@ -0,0 +1,21 @@
<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}]
# 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>

View File

@ -0,0 +1,293 @@
{
"resources/fonts/boxicons.eot": {
"file": "icons/boxicons.eot",
"src": "resources/fonts/boxicons.eot"
},
"resources/fonts/boxicons.svg": {
"file": "icons/boxicons.svg",
"src": "resources/fonts/boxicons.svg"
},
"resources/fonts/boxicons.ttf": {
"file": "icons/boxicons.ttf",
"src": "resources/fonts/boxicons.ttf"
},
"resources/fonts/boxicons.woff": {
"file": "icons/boxicons.woff",
"src": "resources/fonts/boxicons.woff"
},
"resources/fonts/boxicons.woff2": {
"file": "icons/boxicons.woff2",
"src": "resources/fonts/boxicons.woff2"
},
"resources/fonts/hkgrotesk-bold.woff": {
"file": "icons/hkgrotesk-bold.woff",
"src": "resources/fonts/hkgrotesk-bold.woff"
},
"resources/fonts/hkgrotesk-light.eot": {
"file": "icons/hkgrotesk-light.eot",
"src": "resources/fonts/hkgrotesk-light.eot"
},
"resources/fonts/hkgrotesk-light.woff": {
"file": "icons/hkgrotesk-light.woff",
"src": "resources/fonts/hkgrotesk-light.woff"
},
"resources/fonts/hkgrotesk-medium.eot": {
"file": "icons/hkgrotesk-medium.eot",
"src": "resources/fonts/hkgrotesk-medium.eot"
},
"resources/fonts/hkgrotesk-medium.woff": {
"file": "icons/hkgrotesk-medium.woff",
"src": "resources/fonts/hkgrotesk-medium.woff"
},
"resources/fonts/hkgrotesk-regular.eot": {
"file": "icons/hkgrotesk-regular.eot",
"src": "resources/fonts/hkgrotesk-regular.eot"
},
"resources/fonts/hkgrotesk-regular.woff": {
"file": "icons/hkgrotesk-regular.woff",
"src": "resources/fonts/hkgrotesk-regular.woff"
},
"resources/fonts/hkgrotesk-semibold.eot": {
"file": "icons/hkgrotesk-semibold.eot",
"src": "resources/fonts/hkgrotesk-semibold.eot"
},
"resources/fonts/hkgrotesk-semibold.woff": {
"file": "icons/hkgrotesk-semibold.woff",
"src": "resources/fonts/hkgrotesk-semibold.woff"
},
"resources/fonts/la-brands-400.eot": {
"file": "icons/la-brands-400.eot",
"src": "resources/fonts/la-brands-400.eot"
},
"resources/fonts/la-brands-400.svg": {
"file": "icons/la-brands-400.svg",
"src": "resources/fonts/la-brands-400.svg"
},
"resources/fonts/la-brands-400.ttf": {
"file": "icons/la-brands-400.ttf",
"src": "resources/fonts/la-brands-400.ttf"
},
"resources/fonts/la-brands-400.woff": {
"file": "icons/la-brands-400.woff",
"src": "resources/fonts/la-brands-400.woff"
},
"resources/fonts/la-brands-400.woff2": {
"file": "icons/la-brands-400.woff2",
"src": "resources/fonts/la-brands-400.woff2"
},
"resources/fonts/la-regular-400.eot": {
"file": "icons/la-regular-400.eot",
"src": "resources/fonts/la-regular-400.eot"
},
"resources/fonts/la-regular-400.svg": {
"file": "icons/la-regular-400.svg",
"src": "resources/fonts/la-regular-400.svg"
},
"resources/fonts/la-regular-400.ttf": {
"file": "icons/la-regular-400.ttf",
"src": "resources/fonts/la-regular-400.ttf"
},
"resources/fonts/la-regular-400.woff": {
"file": "icons/la-regular-400.woff",
"src": "resources/fonts/la-regular-400.woff"
},
"resources/fonts/la-regular-400.woff2": {
"file": "icons/la-regular-400.woff2",
"src": "resources/fonts/la-regular-400.woff2"
},
"resources/fonts/la-solid-900.eot": {
"file": "icons/la-solid-900.eot",
"src": "resources/fonts/la-solid-900.eot"
},
"resources/fonts/la-solid-900.svg": {
"file": "icons/la-solid-900.svg",
"src": "resources/fonts/la-solid-900.svg"
},
"resources/fonts/la-solid-900.ttf": {
"file": "icons/la-solid-900.ttf",
"src": "resources/fonts/la-solid-900.ttf"
},
"resources/fonts/la-solid-900.woff": {
"file": "icons/la-solid-900.woff",
"src": "resources/fonts/la-solid-900.woff"
},
"resources/fonts/la-solid-900.woff2": {
"file": "icons/la-solid-900.woff2",
"src": "resources/fonts/la-solid-900.woff2"
},
"resources/fonts/materialdesignicons-webfont.eot": {
"file": "icons/materialdesignicons-webfont.eot",
"src": "resources/fonts/materialdesignicons-webfont.eot"
},
"resources/fonts/materialdesignicons-webfont.ttf": {
"file": "icons/materialdesignicons-webfont.ttf",
"src": "resources/fonts/materialdesignicons-webfont.ttf"
},
"resources/fonts/materialdesignicons-webfont.woff": {
"file": "icons/materialdesignicons-webfont.woff",
"src": "resources/fonts/materialdesignicons-webfont.woff"
},
"resources/fonts/materialdesignicons-webfont.woff2": {
"file": "icons/materialdesignicons-webfont.woff2",
"src": "resources/fonts/materialdesignicons-webfont.woff2"
},
"resources/fonts/remixicon.eot": {
"file": "icons/remixicon.eot",
"src": "resources/fonts/remixicon.eot"
},
"resources/fonts/remixicon.svg": {
"file": "icons/remixicon.svg",
"src": "resources/fonts/remixicon.svg"
},
"resources/fonts/remixicon.ttf": {
"file": "icons/remixicon.ttf",
"src": "resources/fonts/remixicon.ttf"
},
"resources/fonts/remixicon.woff": {
"file": "icons/remixicon.woff",
"src": "resources/fonts/remixicon.woff"
},
"resources/fonts/remixicon.woff2": {
"file": "icons/remixicon.woff2",
"src": "resources/fonts/remixicon.woff2"
},
"resources/images/auth-one-bg.jpg": {
"file": "icons/auth-one-bg.jpg",
"src": "resources/images/auth-one-bg.jpg"
},
"resources/images/chat-bg-pattern.png": {
"file": "icons/chat-bg-pattern.png",
"src": "resources/images/chat-bg-pattern.png"
},
"resources/images/cover-pattern.png": {
"file": "icons/cover-pattern.png",
"src": "resources/images/cover-pattern.png"
},
"resources/images/file.png": {
"file": "icons/file.png",
"src": "resources/images/file.png"
},
"resources/images/flags/us.svg": {
"file": "icons/us.svg",
"src": "resources/images/flags/us.svg"
},
"resources/images/landing/bg-pattern.png": {
"file": "icons/bg-pattern.png",
"src": "resources/images/landing/bg-pattern.png"
},
"resources/images/modal-bg.png": {
"file": "icons/modal-bg.png",
"src": "resources/images/modal-bg.png"
},
"resources/images/new.png": {
"file": "icons/new.png",
"src": "resources/images/new.png"
},
"resources/images/nft/bg-home.jpg": {
"file": "icons/bg-home.jpg",
"src": "resources/images/nft/bg-home.jpg"
},
"resources/images/nft/marketplace.png": {
"file": "icons/marketplace.png",
"src": "resources/images/nft/marketplace.png"
},
"resources/images/sidebar/img-1.jpg": {
"file": "icons/img-1.jpg",
"src": "resources/images/sidebar/img-1.jpg"
},
"resources/images/sidebar/img-2.jpg": {
"file": "icons/img-2.jpg",
"src": "resources/images/sidebar/img-2.jpg"
},
"resources/images/sidebar/img-3.jpg": {
"file": "icons/img-3.jpg",
"src": "resources/images/sidebar/img-3.jpg"
},
"resources/images/sidebar/img-4.jpg": {
"file": "icons/img-4.jpg",
"src": "resources/images/sidebar/img-4.jpg"
},
"resources/js/app.js": {
"file": "js/app2.js",
"name": "app",
"src": "resources/js/app.js",
"isEntry": true,
"css": [
"css/app.min2.css"
],
"assets": [
"icons/materialdesignicons-webfont.eot",
"icons/materialdesignicons-webfont.woff2",
"icons/materialdesignicons-webfont.woff",
"icons/materialdesignicons-webfont.ttf",
"icons/boxicons.eot",
"icons/boxicons.woff2",
"icons/boxicons.woff",
"icons/boxicons.ttf",
"icons/boxicons.svg",
"icons/la-brands-400.eot",
"icons/la-brands-400.woff2",
"icons/la-brands-400.woff",
"icons/la-brands-400.ttf",
"icons/la-brands-400.svg",
"icons/la-regular-400.eot",
"icons/la-regular-400.woff2",
"icons/la-regular-400.woff",
"icons/la-regular-400.ttf",
"icons/la-regular-400.svg",
"icons/la-solid-900.eot",
"icons/la-solid-900.woff2",
"icons/la-solid-900.woff",
"icons/la-solid-900.ttf",
"icons/la-solid-900.svg",
"icons/remixicon.eot",
"icons/remixicon.woff2",
"icons/remixicon.woff",
"icons/remixicon.ttf",
"icons/remixicon.svg",
"icons/hkgrotesk-light.eot",
"icons/hkgrotesk-light.woff",
"icons/hkgrotesk-regular.eot",
"icons/hkgrotesk-regular.woff",
"icons/hkgrotesk-medium.eot",
"icons/hkgrotesk-medium.woff",
"icons/hkgrotesk-semibold.eot",
"icons/hkgrotesk-semibold.woff",
"icons/hkgrotesk-bold.woff",
"icons/img-1.jpg",
"icons/img-2.jpg",
"icons/img-3.jpg",
"icons/img-4.jpg",
"icons/modal-bg.png",
"icons/us.svg",
"icons/auth-one-bg.jpg",
"icons/cover-pattern.png",
"icons/marketplace.png",
"icons/chat-bg-pattern.png",
"icons/file.png",
"icons/bg-pattern.png",
"icons/bg-home.jpg",
"icons/new.png"
]
},
"resources/scss/app.scss": {
"file": "css/app.min.css",
"src": "resources/scss/app.scss",
"isEntry": true
},
"resources/scss/bootstrap.scss": {
"file": "css/bootstrap.min.css",
"src": "resources/scss/bootstrap.scss",
"isEntry": true
},
"resources/scss/custom.scss": {
"file": "css/custom.min.css",
"src": "resources/scss/custom.scss",
"isEntry": true
},
"resources/scss/icons.scss": {
"file": "css/icons.min.css",
"src": "resources/scss/icons.scss",
"isEntry": true
}
}

7
public/build/css/app.min.css vendored Normal file

File diff suppressed because one or more lines are too long

11
public/build/css/app.min2.css vendored Normal file

File diff suppressed because one or more lines are too long

5
public/build/css/bootstrap.min.css vendored Normal file

File diff suppressed because one or more lines are too long

0
public/build/css/custom.min.css vendored Normal file
View File

1
public/build/css/icons.min.css vendored Normal file

File diff suppressed because one or more lines are too long

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