Skip to content

Commit 06a35dc

Browse files
committed
layout
1 parent 6968d3f commit 06a35dc

File tree

2 files changed

+222
-225
lines changed

2 files changed

+222
-225
lines changed
Lines changed: 93 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -1,104 +1,102 @@
11
@extends("layout")
22

33
@section("content")
4-
<div class="p-3">
5-
<div data-role="panel" data-title-caption="{{ trans('cruds.log.title') }}" data-collapsible="true" data-title-icon="<span class='mif-log-file'></span>">
4+
<div data-role="panel" data-title-caption="{{ trans('cruds.log.title') }}" data-collapsible="true" data-title-icon="<span class='mif-log-file'></span>">
65

7-
<table class="table table-border cell-border">
8-
<tbody>
9-
<tr>
10-
<th>
11-
id
12-
</th>
13-
<td>
14-
{{ $auditLog->id }}
15-
</td>
16-
</tr>
17-
<tr>
18-
<th>
19-
{{ trans('cruds.log.subject_type') }}
20-
</th>
21-
<td>
22-
{{ $auditLog->subject_type }}
23-
</td>
24-
</tr>
25-
<tr>
26-
<th>
27-
{{ trans('cruds.log.subject_id') }}
28-
</th>
29-
<td>
30-
@if ($auditLog->subject_type=='App\\Models\\Measure')
31-
<a href="/alice/show/{{ $auditLog->subject_id }} ">
32-
{{ $auditLog->subject_id }}
33-
</a>
34-
@elseif ($auditLog->subject_type=='App\\Models\\Control')
35-
<a href="/bob/show/{{ $auditLog->subject_id }} ">
36-
{{ $auditLog->subject_id }}
37-
</a>
38-
@elseif ($auditLog->subject_type=='App\\Models\\Action')
39-
<a href="/action/show/{{ $auditLog->subject_id }} ">
40-
{{ $auditLog->subject_id }}
41-
</a>
42-
@elseif ($auditLog->subject_type=='App\\Models\\User')
43-
<a href="/users/{{ $auditLog->subject_id }} ">
44-
{{ $auditLog->subject_id }}
45-
</a>
46-
@else
6+
<table class="table table-border cell-border">
7+
<tbody>
8+
<tr>
9+
<th>
10+
id
11+
</th>
12+
<td>
13+
{{ $auditLog->id }}
14+
</td>
15+
</tr>
16+
<tr>
17+
<th>
18+
{{ trans('cruds.log.subject_type') }}
19+
</th>
20+
<td>
21+
{{ $auditLog->subject_type }}
22+
</td>
23+
</tr>
24+
<tr>
25+
<th>
26+
{{ trans('cruds.log.subject_id') }}
27+
</th>
28+
<td>
29+
@if ($auditLog->subject_type=='App\\Models\\Measure')
30+
<a href="/alice/show/{{ $auditLog->subject_id }} ">
4731
{{ $auditLog->subject_id }}
48-
@endif
32+
</a>
33+
@elseif ($auditLog->subject_type=='App\\Models\\Control')
34+
<a href="/bob/show/{{ $auditLog->subject_id }} ">
35+
{{ $auditLog->subject_id }}
36+
</a>
37+
@elseif ($auditLog->subject_type=='App\\Models\\Action')
38+
<a href="/action/show/{{ $auditLog->subject_id }} ">
39+
{{ $auditLog->subject_id }}
40+
</a>
41+
@elseif ($auditLog->subject_type=='App\\Models\\User')
42+
<a href="/users/{{ $auditLog->subject_id }} ">
43+
{{ $auditLog->subject_id }}
44+
</a>
45+
@else
46+
{{ $auditLog->subject_id }}
47+
@endif
4948

50-
</td>
51-
</tr>
52-
<tr>
53-
<th>
54-
{{ trans('cruds.log.action') }}
55-
</th>
56-
<td>
57-
{{ $auditLog->description }}
58-
</td>
59-
</tr>
60-
<tr>
61-
<th>
62-
{{ trans('cruds.log.user') }}
63-
</th>
64-
<td>
65-
<a href="/users/{{ $auditLog->user_id }}">
66-
{!! $auditLog->user->name !!}
67-
</a>
68-
</td>
69-
</tr>
70-
<tr>
71-
<th>
72-
{{ trans('cruds.log.properties') }}
73-
</th>
74-
<td>
75-
{{ $auditLog->properties }}
76-
</td>
77-
</tr>
78-
<tr>
79-
<th>
80-
{{ trans('cruds.log.host') }}
81-
</th>
82-
<td>
83-
{{ $auditLog->host }}
84-
</td>
85-
</tr>
86-
<tr>
87-
<th>
88-
{{ trans('cruds.log.timestamp') }}
89-
</th>
90-
<td>
91-
{{ $auditLog->created_at }}
92-
</td>
93-
</tr>
94-
</tbody>
95-
</table>
96-
<div>
97-
<br>
98-
<a class="button btn-default" href="/logs">
99-
{{ trans('common.cancel') }}
100-
</a>
101-
</div>
49+
</td>
50+
</tr>
51+
<tr>
52+
<th>
53+
{{ trans('cruds.log.action') }}
54+
</th>
55+
<td>
56+
{{ $auditLog->description }}
57+
</td>
58+
</tr>
59+
<tr>
60+
<th>
61+
{{ trans('cruds.log.user') }}
62+
</th>
63+
<td>
64+
<a href="/users/{{ $auditLog->user_id }}">
65+
{!! $auditLog->user->name !!}
66+
</a>
67+
</td>
68+
</tr>
69+
<tr>
70+
<th>
71+
{{ trans('cruds.log.properties') }}
72+
</th>
73+
<td>
74+
{{ $auditLog->properties }}
75+
</td>
76+
</tr>
77+
<tr>
78+
<th>
79+
{{ trans('cruds.log.host') }}
80+
</th>
81+
<td>
82+
{{ $auditLog->host }}
83+
</td>
84+
</tr>
85+
<tr>
86+
<th>
87+
{{ trans('cruds.log.timestamp') }}
88+
</th>
89+
<td>
90+
{{ $auditLog->created_at }}
91+
</td>
92+
</tr>
93+
</tbody>
94+
</table>
95+
<div>
96+
<br>
97+
<a class="button btn-default" href="/logs">
98+
{{ trans('common.cancel') }}
99+
</a>
102100
</div>
103101
</div>
104102
@endsection

0 commit comments

Comments
 (0)