formatting
This commit is contained in:
		@@ -17,7 +17,6 @@ use App\Models\Setting\Category;
 | 
			
		||||
use App\Traits\Charts;
 | 
			
		||||
use App\Traits\DateTime;
 | 
			
		||||
use App\Traits\SearchString;
 | 
			
		||||
use App\Traits\Tailwind;
 | 
			
		||||
use App\Traits\Translations;
 | 
			
		||||
use App\Utilities\Date;
 | 
			
		||||
use App\Utilities\Export as ExportHelper;
 | 
			
		||||
@@ -25,7 +24,7 @@ use Illuminate\Support\Str;
 | 
			
		||||
 | 
			
		||||
abstract class Report
 | 
			
		||||
{
 | 
			
		||||
    use Charts, DateTime, SearchString, Tailwind, Translations;
 | 
			
		||||
    use Charts, DateTime, SearchString, Translations;
 | 
			
		||||
 | 
			
		||||
    public $model;
 | 
			
		||||
 | 
			
		||||
@@ -236,9 +235,7 @@ abstract class Report
 | 
			
		||||
        foreach ($tmp_values as $id => $value) {
 | 
			
		||||
            $labels[$id] = $this->row_names[$table_key][$id];
 | 
			
		||||
 | 
			
		||||
            $color = ($group == 'category') ? Category::withSubCategory()->find($id)?->color : '#' . dechex(rand(0x000000, 0xFFFFFF));
 | 
			
		||||
 | 
			
		||||
            $colors[$id] = $this->getHexCodeOfTailwindClass($color);
 | 
			
		||||
            $colors[$id] = ($group == 'category') ? Category::withSubCategory()->find($id)?->colorHexCode : '#' . dechex(rand(0x000000, 0xFFFFFF));
 | 
			
		||||
 | 
			
		||||
            $values[$id] = round(($value * 100 / $total), 0);
 | 
			
		||||
        }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user