⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.82
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
vhosts
/
raqmix.net
/
testpos.raqmix.net
/
app
/
View File Name :
TaxRate.php
ExcludeForTaxGroup(); } $result = $all_taxes->get(); $tax_rates = $result->pluck('name', 'id'); //Prepend none if ($prepend_none) { $tax_rates = $tax_rates->prepend(__('lang_v1.none'), ''); } //Add tax attributes $tax_attributes = null; if ($include_attributes) { $tax_attributes = collect($result)->mapWithKeys(function ($item) { return [$item->id => ['data-rate' => $item->amount]]; })->all(); } $output = ['tax_rates' => $tax_rates, 'attributes' => $tax_attributes]; return $output; } /** * Return list of tax rate for a business * * @return array */ public static function forBusiness($business_id) { $tax_rates = TaxRate::where('business_id', $business_id) ->select(['id', 'name', 'amount']) ->get() ->toArray(); return $tax_rates; } /** * Return list of tax rates associated with the group_tax * * @return object */ public function sub_taxes() { return $this->belongsToMany(\App\TaxRate::class, 'group_sub_taxes', 'group_tax_id', 'tax_id'); } /** * Return list of group taxes for a business * * @return array */ public static function groupTaxes($business_id) { $tax_rates = TaxRate::where('business_id', $business_id) ->where('is_tax_group', 1) ->with(['sub_taxes']) ->get(); return $tax_rates; } public function scopeExcludeForTaxGroup($query) { return $query->where('for_tax_group', 0); } }