From a59db7062dff747cd502fa539745725cb71983b7 Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 8 Jun 2017 18:59:53 -0700 Subject: [PATCH] Fix license datatable on license view --- resources/views/licenses/view.blade.php | 74 ++++++++----------------- 1 file changed, 24 insertions(+), 50 deletions(-) diff --git a/resources/views/licenses/view.blade.php b/resources/views/licenses/view.blade.php index c9eab472c2..d8745fed4d 100755 --- a/resources/views/licenses/view.blade.php +++ b/resources/views/licenses/view.blade.php @@ -339,58 +339,24 @@
- +
- - - - - - - - - + + + + + + + + + - - @if (count($license->assetlog) > 0) - @foreach ($license->assetlog as $log) - @php $result = $log->present()->forDataTable() - @endphp - - - - - - - - - - @endforeach - @endif - - - - - - - -
{{ trans('general.date') }}{{ trans('general.admin') }}{{ trans('button.actions') }}{{ trans('general.target') }}{{ trans('general.notes') }}
{{ trans('general.date') }}{{ trans('general.admin') }}{{ trans('general.action') }}{{ trans('general.item') }}{{ trans('general.target') }}{{ trans('general.notes') }}
{{ $result['created_at'] }} - {!! $result['admin'] !!} - {{ $result['action_type'] }} - {!! $result['target'] !!} - - {{ $result['note'] }} -
{{ $license->created_at }} - @if ($license->adminuser) - {{ $license->adminuser->present()->fullName() }} - @else - {{ trans('general.unknown_admin') }} - @endif - {{ trans('general.created_asset') }} - @if ($license->notes) - {{ $license->notes }} - @endif -
@@ -436,3 +402,11 @@
@stop + + +@section('moar_scripts') + @include ('partials.bootstrap-table', ['simple_view' => true]) + + +@stop +