|
|
|
|
@ -65,23 +65,23 @@
|
|
|
|
|
<tbody>
|
|
|
|
|
@foreach ($data as $row)
|
|
|
|
|
<tr data-id="{{$row->id}}">
|
|
|
|
|
<td>
|
|
|
|
|
<td style="word-wrap:break-word;">
|
|
|
|
|
{{ $row->serial }}
|
|
|
|
|
</td>
|
|
|
|
|
<td>{{ $row->project->name }}</td>
|
|
|
|
|
<td>{{ $row->bed->building->name }}</td>
|
|
|
|
|
<td>{{ $row->bed->area->name }}</td>
|
|
|
|
|
<td>{{ $row->department }}</td>
|
|
|
|
|
<td>{{ $row->customer->name ?: $row->patient->name }}</td>
|
|
|
|
|
<td>{{ $row->customer->balance }}</td>
|
|
|
|
|
<td>{{ $row->customer->mobile }}</td>
|
|
|
|
|
<td>{{ $row->patient->name }}</td>
|
|
|
|
|
<td>{{ $row->from_date }}</td>
|
|
|
|
|
<td>{!! $row->status == \App\Models\Orders::STATUS_FINISHED ? $row->to_date : "<label class='badge badge-danger'>未结</label> {$row->to_date}" !!}</td>
|
|
|
|
|
<td>{!! $row->getStatusLabelAttribute() !!} </td>
|
|
|
|
|
<td>{!! $row->status == \App\Models\Orders::STATUS_FINISHED ? "" : "<label class='badge badge-danger'>预计</label>" !!} {{ $row->total }} </td>
|
|
|
|
|
<td style="word-wrap:break-word;">{{ $row->project->name }}</td>
|
|
|
|
|
<td style="word-wrap:break-word;">{{ $row->bed->building->name }}</td>
|
|
|
|
|
<td style="word-wrap:break-word;">{{ $row->bed->area->name }}</td>
|
|
|
|
|
<td style="word-wrap:break-word;">{{ $row->department }}</td>
|
|
|
|
|
<td style="word-wrap:break-word;">{{ $row->customer->name ?: $row->patient->name }}</td>
|
|
|
|
|
<td style="word-wrap:break-word;">{{ $row->customer->balance }}</td>
|
|
|
|
|
<td style="word-wrap:break-word;">{{ $row->customer->mobile }}</td>
|
|
|
|
|
<td style="word-wrap:break-word;">{{ $row->patient->name }}</td>
|
|
|
|
|
<td style="word-wrap:break-word;">{{ $row->from_date }}</td>
|
|
|
|
|
<td style="word-wrap:break-word;">{!! $row->status == \App\Models\Orders::STATUS_FINISHED ? $row->to_date : "<label class='badge badge-danger'>未结</label> {$row->to_date}" !!}</td>
|
|
|
|
|
<td style="word-wrap:break-word;">{!! $row->getStatusLabelAttribute() !!} </td>
|
|
|
|
|
<td style="word-wrap:break-word;">{!! $row->status == \App\Models\Orders::STATUS_FINISHED ? "" : "<label class='badge badge-danger'>预计</label>" !!} {{ $row->total }} </td>
|
|
|
|
|
@if (!$hushizhang || !$yuanfang)
|
|
|
|
|
<td>
|
|
|
|
|
<td style="word-wrap:break-word;">
|
|
|
|
|
<a class="btn btn-sm btn-primary"
|
|
|
|
|
href="javascript:;" onclick="toggleItems(this)"><i
|
|
|
|
|
class="mdi mdi-arrow-down"></i> 查看</a>
|
|
|
|
|
|