Advertisement
majweb

Untitled

May 13th, 2017
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.06 KB | None | 0 0
  1. //Controler
  2. $clientone = $user->body()->first();
  3. //view
  4. @foreach($clientone->revisionHistory as $history)            
  5.     <div class="col-xs-12 col-sm-6 col-md-3">
  6.         <div class="panel panel-violet text-center">
  7.             <div class="panel-heading">
  8.                 <p class="text-muted white-head-color">
  9.                    {{Date::createFromFormat('Y-m-d H:i:s', $history->created_at)->format('D j F Y H:i')}}                                            
  10.                 </p>
  11.             </div>
  12.         <div class="panel-body">
  13.            <p><strong>{{ $history->fieldName() }}: </strong><span class="label label-blue">{{ $history->oldValue() }}</span></p>
  14.             <p><strong>Aktualizacja: </strong><span class="label label-blue">{{number_format($history->newValue(), 2, '.', '' )}}
  15.            </span></p>
  16.          </div>
  17.          <div class="panel-footer">
  18.             Zmienione parametry: <label class="label label-blue">{{ $history->fieldName() }</label>
  19.          </div>
  20.        </div>
  21.    </div>                                        
  22. @endforeach
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement