Доработка апи

pull/7/head
Rustem 2025-04-18 14:04:43 +05:00
parent 33ddc91e79
commit 3a9b1d35a6
1 changed files with 5 additions and 4 deletions

View File

@ -234,10 +234,11 @@ class MobileApiController extends Controller
$tariffs_new = [];
foreach ($tariffs as $tariff) {
$tariffs_new[] = [
'name' => $tariff?->name,
'price' => $tariff?->base_rate,
'min' => $tariff?->day_range_start,
'max' => $tariff?->day_range_end,
'name' => $tariff?->name,
'price' => $tariff?->base_rate,
'min' => $tariff?->day_range_start,
'max' => $tariff?->day_range_end,
'deposit' => $tariff?->deposit,
];
}
$carsByColor = $cars->groupBy('color_id');