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.

70 lines
3.0 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">
<a class="btn btn-primary" href="{{url($urlPrefix.'/create')}}">
@lang("icons.action_create") @lang('actions.create'){{$modelName}}
</a>
</div>
<table class="table table-bordered" id="data-table">
<thead>
<tr>
<th>ID</th>
<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->id }}</td>
<td>{{ $row->project ? $row->project->name : '-' }}</td>
<td>
@if($row->order)
订单号:{{ $row->order->serial }}<br>
下单人:{{ $row->order->contact }}<br>
电话:{{ $row->order->mobile }}
@else
-
@endif
</td>
<td>{{ $row->type_text ?? '-' }}</td>
<td style="max-width: 300px;word-break: break-all;">{{ $row->description }}</td>
<td>{{ $row->status_text ?? '-' }}</td>
<td>{{ $row->solved_at ? date("Y-m-d", strtotime($row->solved_at)) : '-' }}</td>
<td>
<a class="btn btn-sm btn-primary"
href="{{url("{$urlPrefix}/edit?id={$row['id']}")}}">@lang("icons.action_edit") @lang("actions.edit")</a>
<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