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.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
@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" >
< a class = "btn btn-primary" href = "{{url($urlPrefix.'/asksubmit_create?project_id='.$project_id)}}" >
@lang("icons.action_create") @lang('actions.create')新建满意度调查
< / a >
< button class = "btn btn-primary ml-1" type = "button" onclick = "doExport(this)" > 导出< / button >
< 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 >
< / form >
< / div >
< table class = "table table-bordered" id = "data-table" >
< thead >
< tr >
< th >
日期
< / th >
< th > 名字< / th >
< th > 医院< / th >
< th > 详情< / th >
< th > 建议< / th >
< th > 总分< / th >
< th > 操作< / th >
< / tr >
< / thead >
< tbody >
@foreach ($data as $row)
< tr data-id = "{{$row->id}}" >
< td >
{{ $row->date }}
< / td >
< td >
@if(!$row->mobile)
{{ $row->admin->name }}
@else
{{ $row->name }}({{ $row->mobile }})
@endif
< / td >
< td > {{ $row->project->name }}< / td >
< td >
@foreach ($row->content as $item)
{{ $item['ask'] }}: {{ $item['score'] }}< br / >
@endforeach
< / td >
< td > {{ $row->tip }}< / td >
< td > {{ $row->score }}< / td >
< td >
< a class = "btn btn-sm btn-primary"
href = "{{url(" { $ urlPrefix } / asksubmit_edit ? id = {$row['id']}")}}" > @lang("icons.action_edit") @lang("actions.edit")< / a >
< a class = "btn btn-sm btn-danger btn-delete" data-id = "ask-{{$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 >
function doExport ( ele ) {
var url = window . location . href ;
url += window . location . search ? ( "&export=1" ) : ( "?export=1" ) ;
window . open ( url ) ;
}
< / script >
@endpush