This commit is contained in:
gholak tala
2026-01-31 08:25:18 +00:00
parent 40e78212e5
commit b6e8040d82
@@ -128,6 +128,7 @@ class ReportController extends Controller
$main_product_id = Cnt::where('key', 'main_product')->first()['value'];
$pr_product = Product::find($main_product_id);
$priceValue = $pr_product['price'] + $pr_product['price_profit'];//$tala_ir;//4000
$lastPrice = Price::latest()->first();
if (!$lastPrice || $lastPrice->price != $priceValue and $priceValue > 30000000) {
@@ -166,6 +167,7 @@ class ReportController extends Controller
// 'henzagold' => $henzagold_18,
// 'Ounce' => $henzagold_ons_gold,
// 'milli' => $milli,
'main_product' => $pr_product['price'] + $pr_product['price_profit']
];
} else {
return [];