Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
zhazhahan committed Aug 31, 2022
1 parent dce2eec commit cd62fc5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions resources/views/home.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,25 +32,25 @@
<th class="border px-2 py-3 text-gray-500">ALL</th>
<!-- Level -->
@foreach ( $levels as $ll )
<th class="border px-2 py-3 hidden-md text-{{$ll['color']}}-500">{{ucfirst($ll['name'])}}</th>
<th class="border uppercase px-2 py-3 hidden-md text-{{$ll['color']}}-500">{{$ll['name']}}</th>
@endforeach
<!-- Level -->
</tr>
@foreach ( $files as $log )
<tr>
<td class="border p-2 text-left">
<td class="border p-2 capitalize text-left text-blue-900 font-bold hover:text-blue-600">
<a class="" href="{{route('log-viewer-home')}}?file={{$log['name']}}">
{{ucfirst($log['name']) ?? 'File'}}
{{$log['name'] ?? 'File'}}
</a>
</td>
<td class="border p-2">
<a class="hover:text-green-500" href="{{route('log-viewer-home')}}?file={{$log['name']}}">
<a class="hover:text-green-500 " href="{{route('log-viewer-home')}}?file={{$log['name']}}">
{{$log['sum'] ?? 0}}
</a>
</td>
<!-- Level -->
@foreach ( $levels as $ll )
<td class="border p-2 @if(isset($log[$ll['name']])) bg-{{$ll['color']}}-50 text-{{$ll['color']}}-800 @else text-white @endif">
<td class="border p-2 text-white @if(isset($log[$ll['name']])) bg-{{$ll['color']}}-500 @endif">
<a class="" href="{{route('log-viewer-home')}}?file={{$log['name']}}&level={{$ll['name']}}">
{{ $log[$ll['name']] ?? 0 }}
</a>
Expand Down
6 changes: 3 additions & 3 deletions resources/views/info.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
@foreach ($service->getLogContents() as $content)
@if( !isset($_GET['level']) || $_GET['level'] == $content['level'] )
<tr class="bg-{{ $service->getLevelColor($content['level']) }}-100 hover:bg-opacity-60 bg-opacity-10 text-{{ $service->getLevelColor($content['level']) }}-500">
<td class="border p-2 "><b>{{ ucwords($content['level']) }}</b></td>
<td class="border p-2">{{ $content['datetime'] }}</td>
<td class="border p-2">{{ $content['message'] }}</td>
<td class="border p-2 align-top uppercase"><b>{{ $content['level'] }}</b></td>
<td class="border p-2 align-top">{{ $content['datetime'] }}</td>
<td class="border p-2 align-top">{{ $content['message'] }}</td>
</tr>
@endif
@endforeach
Expand Down

0 comments on commit cd62fc5

Please sign in to comment.