INIT: initial commit
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
@extends('admin.layoutWithNavigation')
|
||||
|
||||
@section('pageHeading', trans('profiler::module.name'))
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="card">
|
||||
<div class="card-block">
|
||||
<table class="table stripped">
|
||||
<thead>
|
||||
<tr>
|
||||
<td>@lang('profiler::module.queries.sql')</td>
|
||||
<td>@lang('profiler::module.queries.time')</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
|
||||
@foreach($queries as $query)
|
||||
<tr>
|
||||
<td>
|
||||
@php $sql = $query->query; @endphp
|
||||
@foreach($query->bindings as $value)
|
||||
@php
|
||||
if (is_array($value) && isset($value['date']))
|
||||
{$value = \Carbon\Carbon::parse($value['date'])->toDateTimeString();}
|
||||
$sql = preg_replace('/\?/', $value, $sql, 1);
|
||||
@endphp
|
||||
@endforeach
|
||||
|
||||
{{$sql}}
|
||||
</td>
|
||||
<td>{{number_format($query->time, 3)}} ms</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user