You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

81 lines
3.3 KiB

@extends("admin.layouts.layout")
@section("content")
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-body">
<div class="mb-3">
<form class="form-inline" id="search-form" autocomplete="off">
<select class="form-control mr-1" name="project_id" onchange="$(this).closest('form').submit()">
@foreach($projects as $pp)
<option value="{{$pp->id}}" @if($pp->id == $project_id) {{ "selected" }}@endif>{{$pp->name}}
</option>
@endforeach
</select>
<select class="form-control" name="month" onchange="$(this).closest('form').submit()">
@foreach($months as $mm)
<option value="{{$mm}}" @if($mm == $month) {{ "selected" }}@endif>{{$mm}}</option>
@endforeach
</select>
</form>
</div>
<div>合计:{{$sumOrderTotal}}</div>
<table class="table table-bordered" id="data-table">
<thead>
<tr>
<th>医院</th>
<th>
楼栋
</th>
<th>病区</th>
<th>总收入</th>
@if(!empty($lie))
@foreach ($lie as $lieItem)
<th>
<div>{{$lieItem['name'] ?? ''}}</div>
</th>
@endforeach
@endif
</tr>
</thead>
<tbody>
@foreach ($data as $row)
<tr data-id="{{$row->id}}">
<td>
{{ $row->project->name }}
</td>
<td>
{{ $row->building->name }}
</td>
<td>
{{ $row->name }}
</td>
<td>{{ $row->order_total }}</td>
@foreach ($row->lies as $r)
<td>
{{$r['total']}}
</td>
@endforeach
</tr>
@endforeach
</tbody>
</table>
@include("public._pages")
</div>
</div>
</div>
</div>
@include("public._delete")
@endsection
@push("footer")
<script>
</script>
@endpush