|
|
|
|
@ -200,9 +200,6 @@ class OrdersController extends CommonController
|
|
|
|
|
|
|
|
|
|
$order = $order->refreshTotal();
|
|
|
|
|
$order->balance = $order->customer->balance;
|
|
|
|
|
$order->paid_total = $order->orderItems->filter(function ($item) {
|
|
|
|
|
return $item->paid_at;
|
|
|
|
|
})->sum("total");
|
|
|
|
|
$paramedic_items = $order->orderItems->groupBy("paramedic_id");
|
|
|
|
|
$group_by_paramedic = [];
|
|
|
|
|
foreach ($paramedic_items as $k => $items) {
|
|
|
|
|
|