Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Controler
- $clientone = $user->body()->first();
- //view
- @foreach($clientone->revisionHistory as $history)
- <div class="col-xs-12 col-sm-6 col-md-3">
- <div class="panel panel-violet text-center">
- <div class="panel-heading">
- <p class="text-muted white-head-color">
- {{Date::createFromFormat('Y-m-d H:i:s', $history->created_at)->format('D j F Y H:i')}}
- </p>
- </div>
- <div class="panel-body">
- <p><strong>{{ $history->fieldName() }}: </strong><span class="label label-blue">{{ $history->oldValue() }}</span></p>
- <p><strong>Aktualizacja: </strong><span class="label label-blue">{{number_format($history->newValue(), 2, '.', '' )}}
- </span></p>
- </div>
- <div class="panel-footer">
- Zmienione parametry: <label class="label label-blue">{{ $history->fieldName() }</label>
- </div>
- </div>
- </div>
- @endforeach
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement