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.

78 lines
3.0 KiB

3 years ago
@extends("admin.layouts.layout")
@section("content")
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-body">
3 years ago
<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>
3 years ago
<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>
3 years ago
</form>
</div>
2 years ago
<div>合计:{{$sumOrderTotal}}</div>
3 years ago
<table class="table table-bordered" id="data-table">
<thead>
<tr>
3 years ago
<th>医院</th>
3 years ago
<th>
3 years ago
楼栋
3 years ago
</th>
3 years ago
<th>病区</th>
<th>总收入</th>
3 years ago
@foreach ($lie as $v)
3 years ago
<th>{{$v}}</th>
3 years ago
@endforeach
3 years ago
</tr>
</thead>
<tbody>
3 years ago
@foreach ($data as $row)
<tr data-id="{{$row->id}}">
3 years ago
<td>
{{ $row->project->name }}
</td>
3 years ago
<td>
3 years ago
{{ $row->building->name }}
3 years ago
</td>
<td>
{{ $row->name }}
</td>
<td>{{ $row->order_total }}</td>
3 years ago
@foreach ($row->lies as $r)
3 years ago
<td>
3 years ago
{{$r['total']}}
3 years ago
</td>
3 years ago
@endforeach
3 years ago
3 years ago
</tr>
@endforeach
3 years ago
</tbody>
</table>
@include("public._pages")
</div>
</div>
</div>
</div>
@include("public._delete")
@endsection
@push("footer")
<script>
</script>
@endpush