Most likely, this is happening because array indexes can't be floats. Floats are truncated to integer values. This will change your data structure a bit, but you could try this and adjust rendering it accordingly.
$discounts = Discount::get(['dis_id', 'percentage'])->toArray();
array_unshift($discounts, ['p' => 'Select Percentage']);
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community