liyinglin 2 years ago
parent f26262a260
commit 17530aee01

@ -412,7 +412,7 @@ class StatisticsController extends CommonController
$item->order_total = $order->sum('total');
$item->lies = $this->getLies($project_id, $order->pluck('id'));
}
dd($data->toArray());
// dd($data->toArray());
// 获取所有列
$lie = array_column($data[0]->lies,'name');
return view($this->bladePath . ".huli", compact("data","lie"));

@ -9,7 +9,7 @@
<thead>
<tr>
<th>
</th>
<th>病区</th>
<th>总收入</th>
@ -22,7 +22,7 @@
@foreach ($data as $row)
<tr data-id="{{$row->id}}">
<td>
{{ $row->building->date }}
{{ $row->building->name }}
</td>
<td>
{{ $row->name }}

Loading…
Cancel
Save