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.

68 lines
2.6 KiB

2 years ago
@extends("admin.layouts.layout")
@section("content")
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-body">
<div class="mb-3">
2 years ago
<a class="btn btn-primary" href="{{url($urlPrefix.'/asksubmit_create?project_id='.$project_id)}}">
2 years ago
@lang("icons.action_create") @lang('actions.create')新建满意度调查
2 years ago
</a>
</div>
<table class="table table-bordered" id="data-table">
<thead>
<tr>
<th>
2 years ago
ID
2 years ago
</th>
<th>护士长</th>
<th>医院</th>
<th>详情</th>
<th>总分</th>
<th>操作</th>
</tr>
</thead>
<tbody>
@foreach ($data as $row)
<tr data-id="{{$row->id}}">
2 years ago
<td>
{{ $row->id }}
</td>
2 years ago
<td>
{{ $row->admin->name }}
</td>
<td>{{ $row->project->name }}</td>
2 years ago
<td>
2 years ago
@foreach ($row->content as $item)
2 years ago
{{ $item->ask }}{{ $item->score }}
@endforeach
</td>
2 years ago
<td>{{ $row->score }}</td>
<td>
<a class="btn btn-sm btn-primary"
2 years ago
href="{{url("{$urlPrefix}/asksubmit_edit?id={$row['id']}")}}">@lang("icons.action_edit") @lang("actions.edit")</a>
2 years ago
<a class="btn btn-sm btn-danger btn-delete" data-id="{{$row['id']}}"
href="javascript:;">@lang("icons.action_delete") @lang("actions.delete")</a>
</td>
</tr>
@endforeach
</tbody>
</table>
@include("public._pages")
</div>
</div>
</div>
</div>
@include("public._delete")
@endsection
@push("footer")
<script>
</script>
@endpush