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.
63 lines
2.5 KiB
63 lines
2.5 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">
|
|
<div class="btn-group">
|
|
<button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown"
|
|
aria-expanded="false"> @lang("icons.action_create") @lang('actions.create'){{$modelName}}</button>
|
|
<div class="dropdown-menu">
|
|
@foreach($projects as $project)
|
|
<a class="dropdown-item"
|
|
href="{{url($urlPrefix.'/create?project_id='.$project->id)}}">{{ $project->name }}</a>
|
|
@endforeach
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<table class="table table-bordered" id="data-table">
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
{{$modelName}}
|
|
</th>
|
|
<th>所属项目/医院</th>
|
|
<th>操作</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach ($data as $row)
|
|
<tr data-id="{{$row->id}}">
|
|
<td>
|
|
{{ $row->name }}
|
|
</td>
|
|
<td>{{ $row->project->name }}</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
|