Доработка апи
parent
33ddc91e79
commit
3a9b1d35a6
|
|
@ -234,10 +234,11 @@ class MobileApiController extends Controller
|
||||||
$tariffs_new = [];
|
$tariffs_new = [];
|
||||||
foreach ($tariffs as $tariff) {
|
foreach ($tariffs as $tariff) {
|
||||||
$tariffs_new[] = [
|
$tariffs_new[] = [
|
||||||
'name' => $tariff?->name,
|
'name' => $tariff?->name,
|
||||||
'price' => $tariff?->base_rate,
|
'price' => $tariff?->base_rate,
|
||||||
'min' => $tariff?->day_range_start,
|
'min' => $tariff?->day_range_start,
|
||||||
'max' => $tariff?->day_range_end,
|
'max' => $tariff?->day_range_end,
|
||||||
|
'deposit' => $tariff?->deposit,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
$carsByColor = $cars->groupBy('color_id');
|
$carsByColor = $cars->groupBy('color_id');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue